Skip to content

Commit b54e6cc

Browse files
Fix deprecation for call_service twig function
1 parent d1da80d commit b54e6cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ComponentExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ public function getFunctions()
5151
new TwigFunction('prepare_component', [$this, 'prepareComponent']),
5252
new TwigFunction('get_components', [$this, 'getComponents'], ['is_safe' => ['html']]),
5353
new TwigFunction('get_component_list', [$this, 'getComponentList'], ['is_safe' => ['html']]),
54-
new TwigFunction('call_service', [$this, 'callService']),
55-
new TwigFunction('prepare_service', [$this, 'prepareService'], ['deprecated' => true]),
54+
new TwigFunction('call_service', [$this, 'callService'], ['deprecated' => true]),
55+
new TwigFunction('prepare_service', [$this, 'prepareService']),
5656
new TwigFunction('get_services', [$this, 'getServices'], ['is_safe' => ['html']]),
5757
new TwigFunction('get_service_list', [$this, 'getServiceList'], ['is_safe' => ['html']]),
5858
new TwigFunction('set_component_prefix', [$this, 'setComponentPrefix']),

0 commit comments

Comments
 (0)