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