for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Rj\FrontendBundle\DependencyInjection\Compiler\Packages;
class TemplatingCompilerPass extends BasePackagesCompilerPass
{
protected function getTaggedPackages($container)
return $container->findTaggedServiceIds($this->namespaceService('package.templating'));
}
protected function getPackagesService($container)
if (!$container->hasDefinition('templating.helper.assets')) {
throw new \LogicException("The 'assets' templating helper is not registered in the container");
return $container->getDefinition('templating.helper.assets');
protected function setDefaultPackage($container)
parent::setDefaultPackage($container);
if ($this->getPackagesService($container)->getScope() === 'request') {
$container->getDefinition($this->namespaceService('package.fallback'))
->setScope('request')
;