protected function getCoreInstance($className)
    {
        $className = self::prepareClassName($className);

        switch ($className) {
            case '\\Zepi\\Turbo\\Backend\\VirtualModuleBackend':
                $path = $this->rootDirectory . '/data/modules.data';
                return new \Zepi\Turbo\Backend\FileObjectBackend($path);
                break;
            case '\\Zepi\\Turbo\\Backend\\VirtualHandlerBackend':
                $path = $this->rootDirectory . '/data/handlers.data';
                return new \Zepi\Turbo\Backend\FileObjectBackend($path);
                break;
            case '\\Zepi\\Turbo\\Backend\\VirtualRouteBackend':
                $path = $this->rootDirectory . '/data/routes.data';
                return new \Zepi\Turbo\Backend\FileObjectBackend($path);
                break;
            case '\\Zepi\\Turbo\\Backend\\VirtualDataSourceBackend':
                $path = $this->rootDirectory . '/data/data-sources.data';
                return new \Zepi\Turbo\Backend\FileObjectBackend($path);
                break;
            default:
                if (class_exists($className, true)) {
                    return new $className();
                } else {
                    throw new Exception('Class "' . $className . '" is not defined.');
                }
                break;
        }
    }
protected function getCoreInstance($className)
    {
        $className = self::prepareClassName($className);

        switch ($className) {
            case '\\Zepi\\Turbo\\Backend\\VirtualModuleBackend':
                $path = $this->rootDirectory . '/data/modules.data';
                return new \Zepi\Turbo\Backend\FileObjectBackend($path);
                break;
            case '\\Zepi\\Turbo\\Backend\\VirtualHandlerBackend':
                $path = $this->rootDirectory . '/data/handlers.data';
                return new \Zepi\Turbo\Backend\FileObjectBackend($path);
                break;
            case '\\Zepi\\Turbo\\Backend\\VirtualRouteBackend':
                $path = $this->rootDirectory . '/data/routes.data';
                return new \Zepi\Turbo\Backend\FileObjectBackend($path);
                break;
            case '\\Zepi\\Turbo\\Backend\\VirtualDataSourceBackend':
                $path = $this->rootDirectory . '/data/data-sources.data';
                return new \Zepi\Turbo\Backend\FileObjectBackend($path);
                break;
            default:
                if (class_exists($className, true)) {
                    return new $className();
                } else {
                    throw new Exception('Class "' . $className . '" is not defined.');
                }
                break;
        }
    }
protected function getCoreInstance ( $ className ) { $ className = self :: prepareClassName ( $ className ) ; switch ( $ className ) { case '\\Zepi\\Turbo\\Backend\\VirtualModuleBackend' : $ path = $ this -> rootDirectory . '/data/modules.data' ; return new \ Zepi \ Turbo \ Backend \ FileObjectBackend ( $ path ) ; break ; case '\\Zepi\\Turbo\\Backend\\VirtualHandlerBackend' : $ path = $ this -> rootDirectory . '/data/handlers.data' ; return new \ Zepi \ Turbo \ Backend \ FileObjectBackend ( $ path ) ; break ; case '\\Zepi\\Turbo\\Backend\\VirtualRouteBackend' : $ path = $ this -> rootDirectory . '/data/routes.data' ; return new \ Zepi \ Turbo \ Backend \ FileObjectBackend ( $ path ) ; break ; case '\\Zepi\\Turbo\\Backend\\VirtualDataSourceBackend' : $ path = $ this -> rootDirectory . '/data/data-sources.data' ; return new \ Zepi \ Turbo \ Backend \ FileObjectBackend ( $ path ) ; break ; default : if ( class_exists ( $ className , true ) ) { return new $ className ( ) ; } else { throw new Exception ( 'Class "' . $ className . '" is not defined.' ) ; } break ; } }
Returns the instance of a framework object

@access protected
@param string $className
@return mixed

@throws \Zepi\Turbo\Exception Class "{className}" is not defined.
Returns the instance of a framework object