SensioDistributionBundle.php 948B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Sensio\Bundle\DistributionBundle;
  11. use Symfony\Component\HttpKernel\Bundle\Bundle;
  12. use Sensio\Bundle\DistributionBundle\Configurator\Step\DoctrineStep;
  13. use Sensio\Bundle\DistributionBundle\Configurator\Step\SecretStep;
  14. /**
  15. * SensioDistributionBundle.
  16. *
  17. * @author Fabien Potencier <fabien@symfony.com>
  18. * @author Marc Weistroff <marc.weistroff@sensio.com>
  19. */
  20. class SensioDistributionBundle extends Bundle
  21. {
  22. public function boot()
  23. {
  24. $configurator = $this->container->get('sensio.distribution.webconfigurator');
  25. $configurator->addStep(new DoctrineStep($configurator->getParameters()));
  26. $configurator->addStep(new SecretStep($configurator->getParameters()));
  27. }
  28. }