src/Graviton/CoreBundle/Controller/MainController.php
private function registerThirdPartyServices()
    {
        $services = [];

        // getenv()... it's a workaround for run all tests on travis! will be removed!
        if (getenv('USER') !== 'travis' && getenv('HAS_JOSH_K_SEAL_OF_APPROVAL') !== true) {
            foreach (array_keys($this->proxySourceConfiguration) as $source) {
                foreach ($this->proxySourceConfiguration[$source] as $thirdparty => $option) {
                    $this->apiLoader->resetDefinitionLoader();
                    $this->apiLoader->setOption($option);
                    $this->apiLoader->addOptions($this->decideApiAndEndpoint($option));
                    $services[$thirdparty] = $this->determineThirdPartyServices(
                        $this->apiLoader->getAllEndpoints(false, true)
                    );
                }
            }
        }

        return $services;
    }
private function registerThirdPartyServices()
    {
        $services = [];

        // getenv()... it's a workaround for run all tests on travis! will be removed!
        if (getenv('USER') !== 'travis' && getenv('HAS_JOSH_K_SEAL_OF_APPROVAL') !== true) {
            foreach (array_keys($this->proxySourceConfiguration) as $source) {
                foreach ($this->proxySourceConfiguration[$source] as $thirdparty => $option) {
                    $this->apiLoader->resetDefinitionLoader();
                    $this->apiLoader->setOption($option);
                    $this->apiLoader->addOptions($this->decideApiAndEndpoint($option));
                    $services[$thirdparty] = $this->determineThirdPartyServices(
                        $this->apiLoader->getAllEndpoints(false, true)
                    );
                }
            }
        }

        return $services;
    }
private function registerThirdPartyServices ( ) { $ services = [ ] ; // getenv()... it's a workaround for run all tests on travis! will be removed! if ( getenv ( 'USER' ) !== 'travis' && getenv ( 'HAS_JOSH_K_SEAL_OF_APPROVAL' ) !== true ) { foreach ( array_keys ( $ this -> proxySourceConfiguration ) as $ source ) { foreach ( $ this -> proxySourceConfiguration [ $ source ] as $ thirdparty => $ option ) { $ this -> apiLoader -> resetDefinitionLoader ( ) ; $ this -> apiLoader -> setOption ( $ option ) ; $ this -> apiLoader -> addOptions ( $ this -> decideApiAndEndpoint ( $ option ) ) ; $ services [ $ thirdparty ] = $ this -> determineThirdPartyServices ( $ this -> apiLoader -> getAllEndpoints ( false , true ) ) ; } } } return $ services ; }
Finds configured external apis to be exposed via G2.

@return array
Finds configured external apis to be exposed via G2 .