Skip to content

Commit

Permalink
addClassesToCompile is deprecated since Symfony 3.3
Browse files Browse the repository at this point in the history
https://github.com/symfony/symfony/blob/master/UPGRADE-3.3.md#httpkernel
\Symfony\Component\DependencyInjection\Extension\Extension::addClassesToCompile() is deprecated since version 3.3, to be removed in 4.0.
Use only addClassesToCompile with PHP < 7
  • Loading branch information
Christophe authored May 31, 2017
1 parent bd261ce commit 5793a5e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions DependencyInjection/JMSDiExtraExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,11 @@ public function load(array $configs, ContainerBuilder $container)
$this->generateEntityManagerProxyClass($config, $container);
}

$this->addClassesToCompile(array(
'JMS\\DiExtraBundle\\HttpKernel\ControllerResolver',
));
if (PHP_VERSION_ID < 70000) {
$this->addClassesToCompile(array(
'JMS\\DiExtraBundle\\HttpKernel\ControllerResolver',
));
}
}

public function blackListControllerFile($filename)
Expand Down

0 comments on commit 5793a5e

Please sign in to comment.