/**
* @return \Nette\Application\IPresenter|\Nette\Application\UI\Presenter
* @throws \Kdyby\Console\InvalidStateException
*/
public function getPresenter()
{
if (!($presenter = $this->app->getPresenter())) {
throw new Kdyby\Console\InvalidStateException("There is currently no presenter");
}
return $presenter;
}