public function RegisterLazyRouteEnhancers::process
public RegisterLazyRouteEnhancers::process(ContainerBuilder $container)
You can modify the container here before it is dumped to PHP code.
Parameters
ContainerBuilder $container:
Overrides CompilerPassInterface::process
File
- core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterLazyRouteEnhancers.php, line 16
Class
- RegisterLazyRouteEnhancers
- Registers all lazy route enhancers onto the lazy route enhancers.
Namespace
Drupal\Core\DependencyInjection\CompilerCode
public function process(ContainerBuilder $container) { if (!$container->hasDefinition('route_enhancer.lazy_collector')) { return; } $service_ids = []; foreach ($container->findTaggedServiceIds('route_enhancer') as $id => $attributes) { $service_ids[$id] = $id; } $container ->getDefinition('route_enhancer.lazy_collector') ->addArgument($service_ids); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!DependencyInjection!Compiler!RegisterLazyRouteEnhancers.php/function/RegisterLazyRouteEnhancers::process/8.1.x