src/RpcServerBundle.php
public function build(ContainerBuilder $container)
    {
        parent::build($container);

        $container->addCompilerPass(
            new RegisterListenersPass(
                'rpc.server.event_dispatcher',
                'rpc.server.event_listener',
                'rpc.server.event_subscriber'
            )
        );
        // Compile prc methods
        $container->addCompilerPass(new RpcMethodPass());
    }
public function build(ContainerBuilder $container)
    {
        parent::build($container);

        $container->addCompilerPass(
            new RegisterListenersPass(
                'rpc.server.event_dispatcher',
                'rpc.server.event_listener',
                'rpc.server.event_subscriber'
            )
        );
        // Compile prc methods
        $container->addCompilerPass(new RpcMethodPass());
    }
{@inheritdoc}