File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed
TwigComponent/src/DependencyInjection Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 5353 service ('logger ' )->ignoreOnInvalid (),
5454 ])
5555 ->tag ('twig.runtime ' )
56+ ->tag ('.ux.twig_component.twig_renderer ' , ['key ' => 'ux:icon ' ])
5657
5758 ->set ('.ux_icons.icon_renderer ' , IconRenderer::class)
5859 ->args ([
Original file line number Diff line number Diff line change 4747 service ('ux_map.renderers ' ),
4848 ])
4949 ->tag ('twig.runtime ' )
50+ ->tag ('.ux.twig_component.twig_renderer ' , ['key ' => 'ux:map ' ])
5051 ;
5152};
Original file line number Diff line number Diff line change 1717use Symfony \Component \Config \Definition \Exception \InvalidConfigurationException ;
1818use Symfony \Component \Config \FileLocator ;
1919use Symfony \Component \DependencyInjection \Argument \AbstractArgument ;
20+ use Symfony \Component \DependencyInjection \Argument \ServiceLocatorArgument ;
21+ use Symfony \Component \DependencyInjection \Argument \TaggedIteratorArgument ;
2022use Symfony \Component \DependencyInjection \ChildDefinition ;
2123use Symfony \Component \DependencyInjection \ContainerBuilder ;
2224use Symfony \Component \DependencyInjection \Exception \LogicException ;
3638use Symfony \UX \TwigComponent \Twig \ComponentLexer ;
3739use Symfony \UX \TwigComponent \Twig \ComponentRuntime ;
3840use Symfony \UX \TwigComponent \Twig \TwigEnvironmentConfigurator ;
39- use function Symfony \Component \DependencyInjection \Loader \Configurator \service ;
40- use function Symfony \Component \DependencyInjection \Loader \Configurator \service_locator ;
4141
4242/**
4343 * @author Kevin Bond <[email protected] > @@ -110,10 +110,7 @@ class_exists(AbstractArgument::class) ? new AbstractArgument(\sprintf('Added in
110110 $ container ->register ('.ux.twig_component.twig.component_runtime ' , ComponentRuntime::class)
111111 ->setArguments ([
112112 new Reference ('ux.twig_component.component_renderer ' ),
113- service_locator ([
114- 'ux:icon ' => service ('.ux_icons.twig_icon_runtime ' )->nullOnInvalid (),
115- 'ux:map ' => service ('ux_map.twig_runtime ' )->nullOnInvalid (),
116- ]),
113+ new ServiceLocatorArgument (new TaggedIteratorArgument ('.ux.twig_component.twig_renderer ' )),
117114 ])
118115 ->addTag ('twig.runtime ' )
119116 ;
You can’t perform that action at this time.
0 commit comments