Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3eba934

Browse filesBrowse files
committed
Deprecate the TemplatingPass
1 parent 65af813 commit 3eba934
Copy full SHA for 3eba934

File tree

1 file changed

+5
-0
lines changed
Filter options

1 file changed

+5
-0
lines changed

‎src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/TemplatingPass.php

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/TemplatingPass.php
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
1818
use Symfony\Component\Templating\EngineInterface as ComponentEngineInterface;
1919

20+
/**
21+
* @deprecated The TemplatingPass class will be removed in Symfony 4.0. You should use Twig instead.
22+
*/
2023
class TemplatingPass implements CompilerPassInterface
2124
{
2225
public function process(ContainerBuilder $container)
@@ -33,6 +36,8 @@ public function process(ContainerBuilder $container)
3336
if ($container->hasDefinition('templating.engine.php')) {
3437
$helpers = array();
3538
foreach ($container->findTaggedServiceIds('templating.helper') as $id => $attributes) {
39+
@trigger_error('The '.TemplatingPass::class.' class is deprecated since version 3.3 and will be removed in 4.0. Use Twig instead.', E_USER_DEPRECATED);
40+
3641
if (isset($attributes[0]['alias'])) {
3742
$helpers[$attributes[0]['alias']] = $id;
3843
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.