for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace League\Container\ServiceProvider;
use League\Container\ContainerAwareTrait;
abstract class AbstractServiceProvider implements ServiceProviderInterface
{
use ContainerAwareTrait;
/**
* @var string
*/
protected $identifier;
public function getIdentifier(): string
return $this->identifier ?? get_class($this);
}
public function setIdentifier(string $id): ServiceProviderInterface
$this->identifier = $id;
return $this;