private function setAppOnContext() { if ($this->context instanceof KernelAwareContext) { $this->context->setApp($this->kernel); } }