src/Graviton/CoreBundle/Controller/MainController.php
protected function determineThirdPartyServices(array $thirdApiRoutes)
    {
        $definition = $this->apiLoader;
        $mainRoute = $this->router->generate(
            'graviton.core.static.main.all',
            [],
            UrlGeneratorInterface::ABSOLUTE_URL
        );
        $services = array_map(
            function ($apiRoute) use ($mainRoute, $definition) {

                return array (
                    '$ref' => $mainRoute.$apiRoute,
                    'profile' => $mainRoute."schema/".$apiRoute."/item",
                );
            },
            $thirdApiRoutes
        );

        return $services;
    }
protected function determineThirdPartyServices(array $thirdApiRoutes)
    {
        $definition = $this->apiLoader;
        $mainRoute = $this->router->generate(
            'graviton.core.static.main.all',
            [],
            UrlGeneratorInterface::ABSOLUTE_URL
        );
        $services = array_map(
            function ($apiRoute) use ($mainRoute, $definition) {

                return array (
                    '$ref' => $mainRoute.$apiRoute,
                    'profile' => $mainRoute."schema/".$apiRoute."/item",
                );
            },
            $thirdApiRoutes
        );

        return $services;
    }
protected function determineThirdPartyServices ( array $ thirdApiRoutes ) { $ definition = $ this -> apiLoader ; $ mainRoute = $ this -> router -> generate ( 'graviton.core.static.main.all' , [ ] , UrlGeneratorInterface :: ABSOLUTE_URL ) ; $ services = array_map ( function ( $ apiRoute ) use ( $ mainRoute , $ definition ) { return array ( '$ref' => $ mainRoute . $ apiRoute , 'profile' => $ mainRoute . "schema/" . $ apiRoute . "/item" , ) ; } , $ thirdApiRoutes ) ; return $ services ; }
Resolves all third party routes and add schema info

@param array $thirdApiRoutes list of all routes from an API

@return array
Resolves all third party routes and add schema info