vendor/nzo/url-encryptor-bundle/NzoUrlEncryptorBundle.php line 20

Open in your IDE?
  1. <?php
  2. /*
  3. * This file is part of the NzoUrlEncryptorBundle package.
  4. *
  5. * (c) Ala Eddine Khefifi <alakfpro@gmail.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 Nzo\UrlEncryptorBundle;
  11. use Nzo\UrlEncryptorBundle\DependencyInjection\Compiler\LoadAnnotationService;
  12. use Nzo\UrlEncryptorBundle\DependencyInjection\NzoEncryptorExtension;
  13. use Symfony\Component\DependencyInjection\ContainerBuilder;
  14. use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
  15. use Symfony\Component\HttpKernel\Bundle\Bundle;
  16. class NzoUrlEncryptorBundle extends Bundle
  17. {
  18. public function getContainerExtension(): ?ExtensionInterface
  19. {
  20. return new NzoEncryptorExtension();
  21. }
  22. public function build(ContainerBuilder $container): void
  23. {
  24. $container->addCompilerPass(new LoadAnnotationService());
  25. }
  26. }