|
0
|
1 |
<?php |
|
|
2 |
|
|
|
3 |
/* |
|
|
4 |
* This file is part of the Symfony package. |
|
|
5 |
* |
|
|
6 |
* (c) Fabien Potencier <fabien@symfony.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 Sensio\Bundle\DistributionBundle; |
|
|
13 |
|
|
|
14 |
use Symfony\Component\HttpKernel\Bundle\Bundle; |
|
|
15 |
use Sensio\Bundle\DistributionBundle\Configurator\Step\DoctrineStep; |
|
|
16 |
use Sensio\Bundle\DistributionBundle\Configurator\Step\SecretStep; |
|
|
17 |
|
|
|
18 |
/** |
|
|
19 |
* SensioDistributionBundle. |
|
|
20 |
* |
|
|
21 |
* @author Fabien Potencier <fabien@symfony.com> |
|
|
22 |
* @author Marc Weistroff <marc.weistroff@sensio.com> |
|
|
23 |
*/ |
|
|
24 |
class SensioDistributionBundle extends Bundle |
|
|
25 |
{ |
|
|
26 |
public function boot() |
|
|
27 |
{ |
|
|
28 |
$configurator = $this->container->get('sensio.distribution.webconfigurator'); |
|
|
29 |
$configurator->addStep(new DoctrineStep($configurator->getParameters())); |
|
|
30 |
$configurator->addStep(new SecretStep($configurator->getParameters())); |
|
|
31 |
} |
|
|
32 |
} |