src/Graviton/AnalyticsBundle/Manager/ServiceManager.php
public function getServices()
    {
        $services = $this->cacheProvider->fetch(self::CACHE_KEY_SERVICES_URLS);
        if (is_array($services)) {
            return $services;
        }

        $services = [];
        foreach ($this->analyticsServices as $name => $service) {
            if (is_numeric($name)) {
                continue;
            }

            $services[] = [
                '$ref' => $this->router->generate(
                    'graviton_analytics_service',
                    [
                        'service' => $service['route']
                    ],
                    false
                ),
                'profile' => $this->router->generate(
                    'graviton_analytics_service_schema',
                    [
                        'service' => $service['route']
                    ],
                    true
                )
            ];
        }
        $this->cacheProvider->save(
            self::CACHE_KEY_SERVICES_URLS,
            $services,
            $this->cacheTimeMetadata
        );
        return $services;
    }
public function getServices()
    {
        $services = $this->cacheProvider->fetch(self::CACHE_KEY_SERVICES_URLS);
        if (is_array($services)) {
            return $services;
        }

        $services = [];
        foreach ($this->analyticsServices as $name => $service) {
            if (is_numeric($name)) {
                continue;
            }

            $services[] = [
                '$ref' => $this->router->generate(
                    'graviton_analytics_service',
                    [
                        'service' => $service['route']
                    ],
                    false
                ),
                'profile' => $this->router->generate(
                    'graviton_analytics_service_schema',
                    [
                        'service' => $service['route']
                    ],
                    true
                )
            ];
        }
        $this->cacheProvider->save(
            self::CACHE_KEY_SERVICES_URLS,
            $services,
            $this->cacheTimeMetadata
        );
        return $services;
    }
public function getServices ( ) { $ services = $ this -> cacheProvider -> fetch ( self :: CACHE_KEY_SERVICES_URLS ) ; if ( is_array ( $ services ) ) { return $ services ; } $ services = [ ] ; foreach ( $ this -> analyticsServices as $ name => $ service ) { if ( is_numeric ( $ name ) ) { continue ; } $ services [ ] = [ '$ref' => $ this -> router -> generate ( 'graviton_analytics_service' , [ 'service' => $ service [ 'route' ] ] , false ) , 'profile' => $ this -> router -> generate ( 'graviton_analytics_service_schema' , [ 'service' => $ service [ 'route' ] ] , true ) ] ; } $ this -> cacheProvider -> save ( self :: CACHE_KEY_SERVICES_URLS , $ services , $ this -> cacheTimeMetadata ) ; return $ services ; }
Return array of available services

@return array
Return array of available services