/** * @param Nette\ComponentModel\Container $obj */ protected function attached($obj) { parent::attached($obj); if ($obj instanceof Nette\Application\IPresenter) { $this->client->getConsumer()->setCallbackUrl(new Http\UrlScript($this->link('//response!'))); } }