equal
deleted
inserted
replaced
|
1 <?php |
|
2 |
|
3 /* |
|
4 * This file is part of the FOSUserBundle package. |
|
5 * |
|
6 * (c) FriendsOfSymfony <http://friendsofsymfony.github.com/> |
|
7 * |
|
8 * For the full copyright and license information, please view the LICENSE |
|
9 * file that was distributed with this source code. |
|
10 */ |
|
11 |
|
12 namespace FOS\UserBundle; |
|
13 |
|
14 use Symfony\Component\HttpKernel\Bundle\Bundle; |
|
15 use Symfony\Component\DependencyInjection\ContainerBuilder; |
|
16 use FOS\UserBundle\DependencyInjection\Compiler\SecurityEncoderFactoryPass; |
|
17 |
|
18 /** |
|
19 * @author Matthieu Bontemps <matthieu@knplabs.com> |
|
20 * @author Thibault Duplessis <thibault.duplessis@gmail.com> |
|
21 */ |
|
22 class FOSUserBundle extends Bundle |
|
23 { |
|
24 /** |
|
25 * {@inheritdoc} |
|
26 */ |
|
27 public function build(ContainerBuilder $container) |
|
28 { |
|
29 parent::build($container); |
|
30 |
|
31 $container->addCompilerPass(new SecurityEncoderFactoryPass()); |
|
32 } |
|
33 } |