082a0130c2
Signed-off-by: Gergely POLONKAI (W00d5t0ck) <polesz@w00d5t0ck.info>
22 lines
731 B
PHP
22 lines
731 B
PHP
<?php
|
|
|
|
namespace JMS\SecurityExtraBundle\DependencyInjection\Compiler;
|
|
|
|
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
|
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
|
|
|
|
class IntegrationPass implements CompilerPassInterface
|
|
{
|
|
public function process(ContainerBuilder $container)
|
|
{
|
|
if (!$container->hasAlias('security.acl.provider')
|
|
&& !$container->hasDefinition('security.acl.provider')) {
|
|
$container->removeDefinition('security.acl.permission_evaluator');
|
|
}
|
|
|
|
if ($container->hasDefinition('security.role_hierarchy')) {
|
|
$container->getDefinition('security.role_hierarchy')
|
|
->setPublic(true);
|
|
}
|
|
}
|
|
} |