components/BaseController.php
protected function storeContext($context, $location)
    {
        $cacheFile = $location . '/cache/apidoc.data';
        if (!is_dir($dir = dirname($cacheFile))) {
            mkdir($dir, 0777, true);
        }
        file_put_contents($cacheFile, serialize($context));
    }
protected function storeContext($context, $location)
    {
        $cacheFile = $location . '/cache/apidoc.data';
        if (!is_dir($dir = dirname($cacheFile))) {
            mkdir($dir, 0777, true);
        }
        file_put_contents($cacheFile, serialize($context));
    }
protected function storeContext ( $ context , $ location ) { $ cacheFile = $ location . '/cache/apidoc.data' ; if ( ! is_dir ( $ dir = dirname ( $ cacheFile ) ) ) { mkdir ( $ dir , 0777 , true ) ; } file_put_contents ( $ cacheFile , serialize ( $ context ) ) ; }
Writes context into cache file
@param Context $context
@param string $location
Writes context into cache file