Prado\TApplicationStatePersister::load PHP Method

load() public method

Loads application state from persistent storage.
public load ( ) : mixed
return mixed application state
    public function load()
    {
        if (($cache = $this->getApplication()->getCache()) !== null && ($value = $cache->get(self::CACHE_NAME)) !== false) {
            return unserialize($value);
        } else {
            if (($content = @file_get_contents($this->getStateFilePath())) !== false) {
                return unserialize($content);
            } else {
                return null;
            }
        }
    }
TApplicationStatePersister