vendor/drosalys-web/web-socket-bundle/src/DrosalysWebWebSocketBundle.php line 25

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of the web-socket-bundle package.
  4.  *
  5.  * (c) Benjamin Georgeault <https://www.drosalys.fr/>
  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 DrosalysWeb\Bundle\WebSocketBundle;
  11. use DrosalysWeb\Bundle\WebSocketBundle\DependencyInjection\Compiler\MonitoringPass;
  12. use DrosalysWeb\Bundle\WebSocketBundle\DependencyInjection\DrosalysWebWebSocketExtension;
  13. use Symfony\Component\DependencyInjection\ContainerBuilder;
  14. use Symfony\Component\HttpKernel\Bundle\Bundle;
  15. use Symfony\Component\Routing\DependencyInjection\RoutingResolverPass;
  16. /**
  17.  * Class DrosalysWebWebSocketBundle
  18.  *
  19.  * @author Benjamin Georgeault
  20.  */
  21. class DrosalysWebWebSocketBundle extends Bundle
  22. {
  23.     /**
  24.      * @inheritDoc
  25.      */
  26.     public function getContainerExtension()
  27.     {
  28.         return new DrosalysWebWebSocketExtension();
  29.     }
  30.     /**
  31.      * @inheritDoc
  32.      */
  33.     public function build(ContainerBuilder $container)
  34.     {
  35.         $container->addCompilerPass(new MonitoringPass());
  36.         $container->addCompilerPass(new RoutingResolverPass(
  37.             'drosalys.web_socket.routing.resolver',
  38.             'drosalys.ws.routing.loader'
  39.         ));
  40.     }
  41. }