Completed
Push — l10n_master ( 67e2d3...a09cbd )
by Sander
539:06 queued 523:44
created

FixUserManagerPass   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 12
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A process() 0 6 1
1
<?php
2
3
namespace Kunstmaan\UserManagementBundle\DependencyInjection\Compiler;
4
5
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
6
use Symfony\Component\DependencyInjection\ContainerBuilder;
7
8
class FixUserManagerPass implements CompilerPassInterface
9
{
10
    /**
11
     * @param ContainerBuilder $container
12
     */
13
    public function process(ContainerBuilder $container)
14
    {
15
        // Mark the fos user manager and related aliases specifically as public.
16
        $container->getAlias('fos_user.user_manager')->setPublic(true);
17
        $container->getAlias('fos_user.group_manager')->setPublic(true);
18
    }
19
}