components/BaseController.php
protected function loadContext($location)
    {
        $context = new Context();

        $cacheFile = $location . '/cache/apidoc.data';
        $this->stdout('Loading apidoc data from cache... ');
        if (file_exists($cacheFile)) {
            $context = unserialize(file_get_contents($cacheFile));
            $this->stdout('done.' . PHP_EOL, Console::FG_GREEN);
        } else {
            $this->stdout('no data available.' . PHP_EOL, Console::FG_YELLOW);
        }

        return $context;
    }
protected function loadContext($location)
    {
        $context = new Context();

        $cacheFile = $location . '/cache/apidoc.data';
        $this->stdout('Loading apidoc data from cache... ');
        if (file_exists($cacheFile)) {
            $context = unserialize(file_get_contents($cacheFile));
            $this->stdout('done.' . PHP_EOL, Console::FG_GREEN);
        } else {
            $this->stdout('no data available.' . PHP_EOL, Console::FG_YELLOW);
        }

        return $context;
    }
protected function loadContext ( $ location ) { $ context = new Context ( ) ; $ cacheFile = $ location . '/cache/apidoc.data' ; $ this -> stdout ( 'Loading apidoc data from cache... ' ) ; if ( file_exists ( $ cacheFile ) ) { $ context = unserialize ( file_get_contents ( $ cacheFile ) ) ; $ this -> stdout ( 'done.' . PHP_EOL , Console :: FG_GREEN ) ; } else { $ this -> stdout ( 'no data available.' . PHP_EOL , Console :: FG_YELLOW ) ; } return $ context ; }
Loads context from cache
@param string $location
@return Context
Loads context from cache