Skip to content

Commit

Permalink
Define missing services in the Container. (#106)
Browse files Browse the repository at this point in the history
Co-authored-by: Matthew Batchelder <[email protected]>
  • Loading branch information
TimothyBJacobs and borkweb authored Jan 8, 2024
1 parent 572c105 commit 88e6c76
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Telemetry/Core.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
use StellarWP\Telemetry\Events\Event_Subscriber;
use StellarWP\Telemetry\Exit_Interview\Exit_Interview_Subscriber;
use StellarWP\Telemetry\Exit_Interview\Template;
use StellarWP\Telemetry\Last_Send\Last_Send;
use StellarWP\Telemetry\Last_Send\Last_Send_Subscriber;
use StellarWP\Telemetry\Opt_In\Opt_In_Subscriber;
use StellarWP\Telemetry\Opt_In\Opt_In_Template;
Expand Down Expand Up @@ -140,6 +141,8 @@ private function init_container( string $plugin_path ) {
$container->bind( self::PLUGIN_FILE, $plugin_path );
$container->bind( self::SITE_PLUGIN_DIR, dirname( plugin_dir_path( $plugin_path ) ) );
$container->bind( Data_Provider::class, Debug_Data::class );
$container->bind( Status::class, Status::class );
$container->bind( Last_Send::class, Last_Send::class );
$container->bind(
Opt_In_Template::class,
static function () use ( $container ) {
Expand Down

0 comments on commit 88e6c76

Please sign in to comment.