for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*
* @see https://github.com/ecphp
*/
declare(strict_types=1);
namespace EcPhp\PhpDirectiveBundle\DependencyInjection;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Extension\Extension;
use Symfony\Component\DependencyInjection\Loader\PhpFileLoader;
final class PhpDirectiveExtension extends Extension
{
* @phpstan-ignore-next-line
public function load(array $configs, ContainerBuilder $container): void
$container
->setParameter(
'php_directive',
$this->processConfiguration(new Configuration(), $configs)
);
$loader = new PhpFileLoader(
$container,
new FileLocator(__DIR__ . '/../Resources/config')
$loader->load('services.php');
}