src/Core/Injector/SilverStripeServiceConfigurationLocator.php
protected function configFor($name)
    {
        // Return cached result
        if (array_key_exists($name, $this->configs)) {
            return $this->configs[$name];
        }

        $config = Config::inst()->get(Injector::class, $name);
        $this->configs[$name] = $config;
        return $config;
    }
protected function configFor($name)
    {
        // Return cached result
        if (array_key_exists($name, $this->configs)) {
            return $this->configs[$name];
        }

        $config = Config::inst()->get(Injector::class, $name);
        $this->configs[$name] = $config;
        return $config;
    }
protected function configFor ( $ name ) { // Return cached result if ( array_key_exists ( $ name , $ this -> configs ) ) { return $ this -> configs [ $ name ] ; } $ config = Config :: inst ( ) -> get ( Injector :: class , $ name ) ; $ this -> configs [ $ name ] = $ config ; return $ config ; }
Retrieves the config for a named service without performing a hierarchy walk

@param string $name Name of service
@return mixed Get config for this service
Retrieves the config for a named service without performing a hierarchy walk