vendor/terminal42/notification_center/src/Terminal42NotificationCenterBundle.php line 12

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace Terminal42\NotificationCenterBundle;
  4. use Symfony\Component\DependencyInjection\ContainerBuilder;
  5. use Symfony\Component\HttpKernel\Bundle\Bundle;
  6. use Terminal42\NotificationCenterBundle\DependencyInjection\CompilerPass\AbstractGatewayPass;
  7. use Terminal42\NotificationCenterBundle\DependencyInjection\CompilerPass\TokenDefinitionFactoryPass;
  8. class Terminal42NotificationCenterBundle extends Bundle
  9. {
  10. public function build(ContainerBuilder $container): void
  11. {
  12. $container->addCompilerPass(new TokenDefinitionFactoryPass());
  13. $container->addCompilerPass(new AbstractGatewayPass());
  14. }
  15. public function getPath(): string
  16. {
  17. return \dirname(__DIR__);
  18. }
  19. }