src/Factory/ConfigurableFactory.php
protected function get($service, array &$options)
    {
        if (isset($options[$service]) && is_object($options[$service])) {
            return $options[$service];
        }

        $service = explode('_', $service);
        $service = array_map('ucfirst', $service);
        $service = 'get' . implode('', $service);

        return $options[$service] = $this->$service($options);
    }
protected function get($service, array &$options)
    {
        if (isset($options[$service]) && is_object($options[$service])) {
            return $options[$service];
        }

        $service = explode('_', $service);
        $service = array_map('ucfirst', $service);
        $service = 'get' . implode('', $service);

        return $options[$service] = $this->$service($options);
    }
protected function get ( $ service , array & $ options ) { if ( isset ( $ options [ $ service ] ) && is_object ( $ options [ $ service ] ) ) { return $ options [ $ service ] ; } $ service = explode ( '_' , $ service ) ; $ service = array_map ( 'ucfirst' , $ service ) ; $ service = 'get' . implode ( '' , $ service ) ; return $ options [ $ service ] = $ this -> $ service ( $ options ) ; }
Generic service getter.

@param string $service Service name.
@param array  $options Option array

@return mixed
Generic service getter .