src/Graviton/RestBundle/Routing/Loader/BasicLoader.php
private function loadService($service, $serviceConfig)
    {
        list($app, $bundle, , $entity) = explode('.', $service);
        $resource = implode('.', array($app, $bundle, 'rest', $entity));

        $this->loadReadOnlyRoutes($service, $resource, $serviceConfig);
        if (!($serviceConfig[0] && array_key_exists('read-only', $serviceConfig[0]))) {
            $this->loadWriteRoutes($service, $resource, $serviceConfig);
        }
    }
private function loadService($service, $serviceConfig)
    {
        list($app, $bundle, , $entity) = explode('.', $service);
        $resource = implode('.', array($app, $bundle, 'rest', $entity));

        $this->loadReadOnlyRoutes($service, $resource, $serviceConfig);
        if (!($serviceConfig[0] && array_key_exists('read-only', $serviceConfig[0]))) {
            $this->loadWriteRoutes($service, $resource, $serviceConfig);
        }
    }
private function loadService ( $ service , $ serviceConfig ) { list ( $ app , $ bundle , , $ entity ) = explode ( '.' , $ service ) ; $ resource = implode ( '.' , array ( $ app , $ bundle , 'rest' , $ entity ) ) ; $ this -> loadReadOnlyRoutes ( $ service , $ resource , $ serviceConfig ) ; if ( ! ( $ serviceConfig [ 0 ] && array_key_exists ( 'read-only' , $ serviceConfig [ 0 ] ) ) ) { $ this -> loadWriteRoutes ( $ service , $ resource , $ serviceConfig ) ; } }
load routes for a single service

@param string $service       service name
@param array  $serviceConfig service configuration

@return void
load routes for a single service