for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Service provider.
*
* @package App
*/
declare(strict_types=1);
namespace App\Services\Meta;
use WPSteak\Services\Meta\Post;
use WPSteak\Services\Meta\PostInterface;
use WPSteak\Services\Meta\Term;
use WPSteak\Services\Meta\TermInterface;
* Service provider class.
* @codeCoverageIgnore
class ServiceProvider extends \League\Container\ServiceProvider\AbstractServiceProvider {
* Provides.
* @var string[]
protected $provides = [
PostInterface::class,
TermInterface::class,
];
* Register.
* @link https://github.com/thephpleague/container/issues/159
* @return void
public function register() {
$this->getContainer()
->/* @scrutinizer ignore-call */ share( PostInterface::class, Post::class );
->/* @scrutinizer ignore-call */ share( TermInterface::class, Term::class );
}