protected function getFlywheelRepo()
    {
        $module = \jacmoe\mdpages\Module::getInstance();

        if(!isset($this->flywheel_config)) {
            $config_dir = Yii::getAlias($module->flywheel_config);
            if(!file_exists($config_dir)) {
                FileHelper::createDirectory($config_dir);
            }
            $this->flywheel_config = new Config($config_dir);
        }
        if(!isset($this->flywheel_repo)) {
            $this->flywheel_repo = new Repository($module->flywheel_repo, $this->flywheel_config);
        }
        return $this->flywheel_repo;
    }
protected function getFlywheelRepo()
    {
        $module = \jacmoe\mdpages\Module::getInstance();

        if(!isset($this->flywheel_config)) {
            $config_dir = Yii::getAlias($module->flywheel_config);
            if(!file_exists($config_dir)) {
                FileHelper::createDirectory($config_dir);
            }
            $this->flywheel_config = new Config($config_dir);
        }
        if(!isset($this->flywheel_repo)) {
            $this->flywheel_repo = new Repository($module->flywheel_repo, $this->flywheel_config);
        }
        return $this->flywheel_repo;
    }
protected function getFlywheelRepo ( ) { $ module = \ jacmoe \ mdpages \ Module :: getInstance ( ) ; if ( ! isset ( $ this -> flywheel_config ) ) { $ config_dir = Yii :: getAlias ( $ module -> flywheel_config ) ; if ( ! file_exists ( $ config_dir ) ) { FileHelper :: createDirectory ( $ config_dir ) ; } $ this -> flywheel_config = new Config ( $ config_dir ) ; } if ( ! isset ( $ this -> flywheel_repo ) ) { $ this -> flywheel_repo = new Repository ( $ module -> flywheel_repo , $ this -> flywheel_config ) ; } return $ this -> flywheel_repo ; }
Gets the Flywheel Repository instance. Creates it if it doesn't exist.
@return JamesMoss\Flywheel\Repository A handle to the repository
Gets the Flywheel Repository instance . Creates it if it doesn t exist .