for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace TomPHP\ConfigServiceProvider\League;
use TomPHP\ConfigServiceProvider\ContainerConfigurator;
use TomPHP\ConfigServiceProvider\ApplicationConfig;
use League\Container\ServiceProvider\AbstractServiceProvider;
final class Configurator implements ContainerConfigurator
{
/** @var ApplicationConfigServiceProvider */
private $provider;
public function addConfig(ApplicationConfig $config, $prefix = 'config')
$this->provider = new ApplicationConfigServiceProvider($config, $prefix);
}
/**
* @internal
*
* @return ServiceProviderInterface
ApplicationConfigServiceProvider
This check compares the return type specified in the @return annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.
@return
*/
public function getServiceProvider()
return $this->provider;
This check compares the return type specified in the
@returnannotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.