forked from symfony/ux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minor symfony#2210 [TwigComponent] Fix ux:icon & ux:map renders (smna…
…ndre) This PR was squashed before being merged into the 2.x branch. Discussion ---------- [TwigComponent] Fix ux:icon & ux:map renders Change implementation to avoid many dispatched events for nothing Add a conflict in symfony/ux-map and symfony/ux-icons to synchronise the 3 packages to 2.21 Performance gain around 20% Commits ------- 24c1cb2 [TwigComponent] Fix ux:icon & ux:map renders
- Loading branch information
Showing
10 changed files
with
40 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,8 @@ | |
use Symfony\UX\TwigComponent\Twig\ComponentLexer; | ||
use Symfony\UX\TwigComponent\Twig\ComponentRuntime; | ||
use Symfony\UX\TwigComponent\Twig\TwigEnvironmentConfigurator; | ||
use function Symfony\Component\DependencyInjection\Loader\Configurator\service; | ||
use function Symfony\Component\DependencyInjection\Loader\Configurator\service_locator; | ||
|
||
/** | ||
* @author Kevin Bond <[email protected]> | ||
|
@@ -108,6 +110,10 @@ class_exists(AbstractArgument::class) ? new AbstractArgument(\sprintf('Added in | |
$container->register('.ux.twig_component.twig.component_runtime', ComponentRuntime::class) | ||
->setArguments([ | ||
new Reference('ux.twig_component.component_renderer'), | ||
service_locator([ | ||
'ux:icon' => service('.ux_icons.twig_icon_runtime')->nullOnInvalid(), | ||
'ux:map' => service('ux_map.twig_runtime')->nullOnInvalid(), | ||
]), | ||
]) | ||
->addTag('twig.runtime') | ||
; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters