Skip to content

Commit

Permalink
minor #22694 [TwigBundle] Remove ClassExistenceResource usage (ogizan…
Browse files Browse the repository at this point in the history
…agi)

This PR was merged into the 3.3-dev branch.

Discussion
----------

[TwigBundle] Remove ClassExistenceResource usage

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes/no
| Fixed tickets | N/A
| License       | MIT
| Doc PR        | N/A

Usage of this class were removed in #21466

Commits
-------

85f6710 [TwigBundle] Remove ClassExistenceResource usage
  • Loading branch information
fabpot committed May 11, 2017
2 parents 1ccc3de + 85f6710 commit 8d27128
Showing 1 changed file with 0 additions and 1 deletion.
Expand Up @@ -107,7 +107,6 @@ public function process(ContainerBuilder $container)
$container->getDefinition('twig.extension.expression')->addTag('twig.extension');
}

$container->addResource(new ClassExistenceResource(Workflow::class));
if (!class_exists(Workflow::class) || !$container->has('workflow.registry')) {
$container->removeDefinition('workflow.twig_extension');
} else {
Expand Down

0 comments on commit 8d27128

Please sign in to comment.