PQueueBundle.php 584 B

12345678910111213141516171819202122
  1. <?php
  2. namespace Michel\PQueueBundle;
  3. use Michel\PQueueBundle\DependencyInjection\Compiler\HandlerPass;
  4. use Michel\PQueueBundle\DependencyInjection\PQueueExtension;
  5. use Symfony\Component\DependencyInjection\ContainerBuilder;
  6. use Symfony\Component\HttpKernel\Bundle\Bundle;
  7. class PQueueBundle extends Bundle
  8. {
  9. public function build(ContainerBuilder $container)
  10. {
  11. parent::build($container);
  12. $container->addCompilerPass(new HandlerPass());
  13. }
  14. public function getContainerExtension(): ?PQueueExtension
  15. {
  16. return new PQueueExtension();
  17. }
  18. }