Skip to content

Commit

Permalink
Fix deprecation for call_service twig function
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-schranz committed Sep 17, 2021
1 parent d1da80d commit b54e6cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ComponentExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ public function getFunctions()
new TwigFunction('prepare_component', [$this, 'prepareComponent']),
new TwigFunction('get_components', [$this, 'getComponents'], ['is_safe' => ['html']]),
new TwigFunction('get_component_list', [$this, 'getComponentList'], ['is_safe' => ['html']]),
new TwigFunction('call_service', [$this, 'callService']),
new TwigFunction('prepare_service', [$this, 'prepareService'], ['deprecated' => true]),
new TwigFunction('call_service', [$this, 'callService'], ['deprecated' => true]),
new TwigFunction('prepare_service', [$this, 'prepareService']),
new TwigFunction('get_services', [$this, 'getServices'], ['is_safe' => ['html']]),
new TwigFunction('get_service_list', [$this, 'getServiceList'], ['is_safe' => ['html']]),
new TwigFunction('set_component_prefix', [$this, 'setComponentPrefix']),
Expand Down

0 comments on commit b54e6cc

Please sign in to comment.