src/core/DB.php
public static function configureObject($name)
    {
        Eresus_Kernel::log(__METHOD__, LOG_DEBUG, '(%s)', $name);

        if (!isset(self::$lazyConnectionDSNs[$name]))
        {
            throw new Eresus_DB_Exception('DSN for lazy connection "' . $name . '" not found');
        }

        $dsn = self::$lazyConnectionDSNs[$name];
        $db = self::connect($dsn, $name);

        return $db;
    }
public static function configureObject($name)
    {
        Eresus_Kernel::log(__METHOD__, LOG_DEBUG, '(%s)', $name);

        if (!isset(self::$lazyConnectionDSNs[$name]))
        {
            throw new Eresus_DB_Exception('DSN for lazy connection "' . $name . '" not found');
        }

        $dsn = self::$lazyConnectionDSNs[$name];
        $db = self::connect($dsn, $name);

        return $db;
    }
public static function configureObject ( $ name ) { Eresus_Kernel :: log ( __METHOD__ , LOG_DEBUG , '(%s)' , $ name ) ; if ( ! isset ( self :: $ lazyConnectionDSNs [ $ name ] ) ) { throw new Eresus_DB_Exception ( 'DSN for lazy connection "' . $ name . '" not found' ) ; } $ dsn = self :: $ lazyConnectionDSNs [ $ name ] ; $ db = self :: connect ( $ dsn , $ name ) ; return $ db ; }
eZ Components lazy init

@param bool|string $name  Connection name

@throws Eresus_DB_Exception

@return ezcDbHandler
eZ Components lazy init