for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace TomPHP\ConfigServiceProvider\League;
use League\Container\ServiceProvider\ServiceProviderInterface;
use TomPHP\ConfigServiceProvider\ApplicationConfig;
use TomPHP\ConfigServiceProvider\ContainerConfigurator;
use TomPHP\ConfigServiceProvider\InflectorConfig;
use TomPHP\ConfigServiceProvider\ServiceConfig;
final class Configurator implements ContainerConfigurator
{
/**
* @var ServiceProviderInterface[]
*/
private $providers = [];
public function addApplicationConfig(ApplicationConfig $config, $prefix = 'config')
$this->providers[] = new ApplicationConfigServiceProvider($config, $prefix);
}
public function addServiceConfig(ServiceConfig $config)
$this->providers[] = new ServiceServiceProvider($config);
public function addInflectorConfig(InflectorConfig $config)
$this->providers[] = new InflectorServiceProvider($config);
* @internal
*
* @return ServiceProviderInterface
public function getServiceProvider()
return new AggregateServiceProvider($this->providers);