vendor/maxbeckers/amazon-alexa-bundle/src/MaxBeckersAmazonAlexaBundle.php line 12

Open in your IDE?
  1. <?php
  2. namespace MaxBeckers\AmazonAlexaBundle;
  3. use MaxBeckers\AmazonAlexaBundle\DependencyInjection\CompilerPass;
  4. use Symfony\Component\DependencyInjection\ContainerBuilder;
  5. use Symfony\Component\HttpKernel\Bundle\Bundle;
  6. /**
  7.  * @author Maximilian Beckers <beckers.maximilian@gmail.com>
  8.  */
  9. class MaxBeckersAmazonAlexaBundle extends Bundle
  10. {
  11.     /**
  12.      * {@inheritdoc}
  13.      */
  14.     public function build(ContainerBuilder $container)
  15.     {
  16.         parent::build($container);
  17.         // add all request handlers tagged by "maxbeckers_amazon_alexa.request_handler" to registry.
  18.         $container->addCompilerPass(new CompilerPass\RequestHandlerResolverPass());
  19.     }
  20. }