Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #20799 [TwigBundle] do not try to register incomplete definitions…
… (xabbuh) This PR was merged into the 2.7 branch. Discussion ---------- [TwigBundle] do not try to register incomplete definitions | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #20212 | License | MIT | Doc PR | Commits ------- 2c9dc66 do not try to register incomplete definitions
- Loading branch information
Showing
6 changed files
with
80 additions
and
29 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" ?> | ||
<container xmlns="http://symfony.com/schema/dic/services" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd"> | ||
|
||
<services> | ||
<service id="twig.extension.form" class="%twig.extension.form.class%" public="false"> | ||
<argument type="service" id="twig.form.renderer" /> | ||
</service> | ||
|
||
<service id="twig.form.engine" class="%twig.form.engine.class%" public="false"> | ||
<argument>%twig.form.resources%</argument> | ||
</service> | ||
|
||
<service id="twig.form.renderer" class="%twig.form.renderer.class%" public="false"> | ||
<argument type="service" id="twig.form.engine" /> | ||
<argument type="service" id="security.csrf.token_manager" on-invalid="null" /> | ||
</service> | ||
</services> | ||
</container> |
21 changes: 21 additions & 0 deletions
21
src/Symfony/Bundle/TwigBundle/Resources/config/templating.xml
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" ?> | ||
<container xmlns="http://symfony.com/schema/dic/services" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd"> | ||
|
||
<services> | ||
<service id="twig.loader.filesystem" class="%twig.loader.filesystem.class%" public="false"> | ||
<argument type="service" id="templating.locator" /> | ||
<argument type="service" id="templating.name_parser" /> | ||
<tag name="twig.loader"/> | ||
</service> | ||
|
||
<service id="twig.loader" alias="twig.loader.filesystem" /> | ||
|
||
<service id="templating.engine.twig" class="%templating.engine.twig.class%" public="false"> | ||
<argument type="service" id="twig" /> | ||
<argument type="service" id="templating.name_parser" /> | ||
<argument type="service" id="templating.locator" /> | ||
</service> | ||
</services> | ||
</container> |
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