Exponential 5.x Kernel 7.5.40 Exponential New Stack (Symfony-based) Kernel — PHP Class Reference

AsseticPass.php
Go to the documentation of this file.
1 <?php
2
7 namespace eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Compiler;
8
9 use eZ\Bundle\EzPublishCoreBundle\Assetic\AssetFactory;
10 use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
11 use Symfony\Component\DependencyInjection\ContainerBuilder;
12 use Symfony\Component\DependencyInjection\Reference;
13
17 class AsseticPass implements CompilerPassInterface
18 {
19 public function process(ContainerBuilder $container)
20 {
21 if (!$container->hasDefinition('assetic.asset_factory')) {
22 return;
23 }
24
25 $assetFactoryDef = $container->findDefinition('assetic.asset_factory');
26 $assetFactoryDef
27 ->setClass(AssetFactory::class)
28 ->addMethodCall('setConfigResolver', [new Reference('ezpublish.config.resolver')])
29 ->addMethodCall(
30 'setDynamicSettingParser',
31 [new Reference('ezpublish.config.dynamic_setting.parser')]
32 );
33 }
34 }
eZ\Bundle\EzPublishCoreBundle\Assetic\AssetFactory
Definition: AssetFactory.php:14
eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Compiler\AsseticPass
Tweaks Assetic services.
Definition: AsseticPass.php:18
eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Compiler\AsseticPass\process
process(ContainerBuilder $container)
Definition: AsseticPass.php:19
eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Compiler
Definition: AsseticPass.php:7
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.