Skip to content

Commit

Permalink
fix atf serviceprovider to match the new container
Browse files Browse the repository at this point in the history
  • Loading branch information
wordpressfan committed Apr 17, 2024
1 parent 3c7281a commit 132a9f0
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion inc/Engine/Media/AboveTheFold/Activation/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,23 @@ class ServiceProvider extends AbstractServiceProvider {
'atf_activation',
];

/**
* Check if the service provider provides a specific service.
*
* @param string $id The id of the service.
*
* @return bool
*/
public function provides( string $id ): bool {
return in_array( $id, $this->provides, true );
}

/**
* Registers items with the container
*
* @return void
*/
public function register() {
public function register(): void {
$this->getContainer()->add( 'atf_context', Context::class );

$this->getContainer()->add( 'warmup_apiclient', APIClient::class )
Expand Down

0 comments on commit 132a9f0

Please sign in to comment.