private function getDefinitionForServiceId($serviceId, ServiceConfig $serviceConfig)
    {

        if ($serviceConfig->has(ServiceConfig::LAZY) && !$serviceConfig->get(ServiceConfig::LAZY)) {
            return new Reference($serviceId);
        } else {
            return new Definition($this->invokeClass, array(new Reference('service_container'), $serviceId));
        }
    }
private function getDefinitionForServiceId($serviceId, ServiceConfig $serviceConfig)
    {

        if ($serviceConfig->has(ServiceConfig::LAZY) && !$serviceConfig->get(ServiceConfig::LAZY)) {
            return new Reference($serviceId);
        } else {
            return new Definition($this->invokeClass, array(new Reference('service_container'), $serviceId));
        }
    }
private function getDefinitionForServiceId ( $ serviceId , ServiceConfig $ serviceConfig ) { if ( $ serviceConfig -> has ( ServiceConfig :: LAZY ) && ! $ serviceConfig -> get ( ServiceConfig :: LAZY ) ) { return new Reference ( $ serviceId ) ; } else { return new Definition ( $ this -> invokeClass , array ( new Reference ( 'service_container' ) , $ serviceId ) ) ; } }
return a InvokeClass for lazyLoading or a reference of the service

@param string        $serviceId
@param ServiceConfig $serviceConfig

@return object|Definition
return a InvokeClass for lazyLoading or a reference of the service