Skip to content

Commit

Permalink
Merge pull request #278 from chrjean/master
Browse files Browse the repository at this point in the history
addClassesToCompile is deprecated since symfony/http-kernel 3.3
  • Loading branch information
GuilhemN authored Jul 11, 2017
2 parents 251bd72 + 5793a5e commit 4adca6b
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 4adca6b

Please sign in to comment.