Skip to content

Commit a5e1313

Browse files
committed
minor symfony#54808 [TwigBundle] Remove obsolete class_exists() call (derrabus)
This PR was merged into the 7.1 branch. Discussion ---------- [TwigBundle] Remove obsolete class_exists() call | Q | A | ------------- | --- | Branch? | 7.1 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | N/A | License | MIT Given that we require Twig >= 3, I believe we don't need to trigger the autoloader at this point anymore. Commits ------- f2a13b2 [TwigBundle] Remove obsolete class_exists() check
2 parents 4c84578 + f2a13b2 commit a5e1313

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/Symfony/Bundle/TwigBundle/DependencyInjection/Configurator/EnvironmentConfigurator.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@
1515
use Twig\Environment;
1616
use Twig\Extension\CoreExtension;
1717

18-
// BC/FC with namespaced Twig
19-
class_exists(Environment::class);
20-
2118
/**
2219
* Twig environment configurator.
2320
*

0 commit comments

Comments
 (0)