for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is a part of Sculpin.
*
* (c) Dragonfly Development Inc.
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symplify\PHP7_Sculpin\Bundle\StandaloneBundle;
use Nette\DI\Compiler;
use Nette\DI\CompilerExtension;
use Symplify\PHP7_Sculpin\Bundle\StandaloneBundle\DependencyInjection\Compiler\RegisterKernelListenersPass;
use Symfony\Component\DependencyInjection\Compiler\PassConfig;
use Symfony\Component\DependencyInjection\ContainerBuilder;
final class SculpinStandaloneExtension extends CompilerExtension
{
public function loadConfiguration()
Compiler::loadDefinitions(
$this->getContainerBuilder(),
$this->loadFromFile(__DIR__.'/Resources/config/services.yml')
);
}
public function build(ContainerBuilder $container)
$container->addCompilerPass(new RegisterKernelListenersPass(), PassConfig::TYPE_AFTER_REMOVING);
protected function getServicesFile() : string
return __DIR__.'/Resources/config/services.yml';