/** * @return ICacheJournal */ protected function getJournal() { return $this->context->getService('Nette\\Caching\\ICacheJournal'); }
/** * @return Nette\Web\Session */ protected function getSession($namespace = NULL) { $handler = $this->context->getService('Nette\\Web\\Session'); return $namespace === NULL ? $handler : $handler->getNamespace($namespace); }