for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php 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 {
* {@inheritDoc}
protected $provides = [
PostInterface::class,
TermInterface::class,
];
* @link https://github.com/thephpleague/container/issues/159
public function register(): void {
$this->getContainer()
->/* @scrutinizer ignore-call */ share( PostInterface::class, Post::class );
->/* @scrutinizer ignore-call */ share( TermInterface::class, Term::class );
}