vendor/monofony/core-bundle/MonofonyCoreBundle.php line 24

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of the Monofony package.
  4.  *
  5.  * (c) Monofony
  6.  *
  7.  * For the full copyright and license information, please view the LICENSE
  8.  * file that was distributed with this source code.
  9.  */
  10. declare(strict_types=1);
  11. namespace Monofony\Bundle\CoreBundle;
  12. use Monofony\Bundle\CoreBundle\DependencyInjection\Compiler\ChangeCustomerContextVisibilityPass;
  13. use Monofony\Bundle\CoreBundle\DependencyInjection\Compiler\RegisterDashboardStatisticsPass;
  14. use Monofony\Bundle\CoreBundle\DependencyInjection\Compiler\RegisterOAuthClientManager;
  15. use Monofony\Bundle\CoreBundle\DependencyInjection\Compiler\RegisterObjectManagerAliasPass;
  16. use Monofony\Bundle\CoreBundle\DependencyInjection\Compiler\RegisterPasswordListenerForResourcesPass;
  17. use Symfony\Component\DependencyInjection\ContainerBuilder;
  18. use Symfony\Component\HttpKernel\Bundle\Bundle;
  19. class MonofonyCoreBundle extends Bundle
  20. {
  21.     public const VERSION '0.5.2';
  22.     /**
  23.      * {@inheritdoc}
  24.      */
  25.     public function build(ContainerBuilder $container): void
  26.     {
  27.         $container->addCompilerPass(new RegisterPasswordListenerForResourcesPass());
  28.         $container->addCompilerPass(new ChangeCustomerContextVisibilityPass());
  29.         $container->addCompilerPass(new RegisterDashboardStatisticsPass());
  30.         $container->addCompilerPass(new RegisterOAuthClientManager());
  31.         $container->addCompilerPass(new RegisterObjectManagerAliasPass());
  32.     }
  33. }