src/Graviton/RestBundle/DependencyInjection/Compiler/RqlQueryRoutesCompilerPass.php
public function process(ContainerBuilder $container)
    {
        $routes = [];
        foreach ($container->getParameter('graviton.rest.services') as $service => $params) {
            list($app, $bundle, , $entity) = explode('.', $service);
            $routes[] = implode('.', [$app, $bundle, 'rest', $entity, 'all']);
            $routes[] = implode('.', [$app, $bundle, 'rest', $entity, 'get']);
        }

        $container->setParameter('graviton.rest.listener.rqlqueryrequestlistener.allowedroutes', $routes);
    }
public function process(ContainerBuilder $container)
    {
        $routes = [];
        foreach ($container->getParameter('graviton.rest.services') as $service => $params) {
            list($app, $bundle, , $entity) = explode('.', $service);
            $routes[] = implode('.', [$app, $bundle, 'rest', $entity, 'all']);
            $routes[] = implode('.', [$app, $bundle, 'rest', $entity, 'get']);
        }

        $container->setParameter('graviton.rest.listener.rqlqueryrequestlistener.allowedroutes', $routes);
    }
public function process ( ContainerBuilder $ container ) { $ routes = [ ] ; foreach ( $ container -> getParameter ( 'graviton.rest.services' ) as $ service => $ params ) { list ( $ app , $ bundle , , $ entity ) = explode ( '.' , $ service ) ; $ routes [ ] = implode ( '.' , [ $ app , $ bundle , 'rest' , $ entity , 'all' ] ) ; $ routes [ ] = implode ( '.' , [ $ app , $ bundle , 'rest' , $ entity , 'get' ] ) ; } $ container -> setParameter ( 'graviton.rest.listener.rqlqueryrequestlistener.allowedroutes' , $ routes ) ; }
Find "allAction" routes and set it to allowed routes for RQL parsing

@param ContainerBuilder $container Container builder
@return void
Find allAction routes and set it to allowed routes for RQL parsing