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,
];
public function register(): void {
$this->getLeagueContainer()
->share( PostInterface::class, Post::class );
->share( TermInterface::class, Term::class );
}