Skip to content

Commit

Permalink
Merge branch '4.3' into 4.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobion committed Jul 5, 2019
2 parents 42899cd + d27c530 commit 6811aaa
Showing 1 changed file with 9 additions and 3 deletions.
Expand Up @@ -34,7 +34,8 @@
use Symfony\Component\Security\Core\Encoder\SodiumPasswordEncoder;
use Symfony\Component\Security\Core\User\UserProviderInterface;
use Symfony\Component\Security\Http\Controller\UserValueResolver;
use Symfony\Component\Templating\PhpEngine;
use Symfony\Component\Templating\Helper\Helper;
use Twig\Extension\AbstractExtension;

/**
* SecurityExtension.
Expand Down Expand Up @@ -100,10 +101,15 @@ public function load(array $configs, ContainerBuilder $container)
$loader->load('security.xml');
$loader->load('security_listeners.xml');
$loader->load('security_rememberme.xml');
if (class_exists(PhpEngine::class)) {

if (class_exists(Helper::class)) {
$loader->load('templating_php.xml');
}
$loader->load('templating_twig.xml');

if (class_exists(AbstractExtension::class)) {
$loader->load('templating_twig.xml');
}

$loader->load('collectors.xml');
$loader->load('guard.xml');

Expand Down

0 comments on commit 6811aaa

Please sign in to comment.