We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec39bf4 commit 9177991Copy full SHA for 9177991
src/Application/UI/Presenter.php
@@ -24,7 +24,6 @@
24
* @property string $view
25
* @property string|bool $layout
26
* @property-read \stdClass $payload
27
- * @property-read Nette\DI\Container $context
28
* @property-read Nette\Http\Session $session
29
* @property-read Nette\Security\User $user
30
*/
@@ -1290,6 +1289,7 @@ final public function getContext(): Nette\DI\Container
1290
1289
if (!$this->context) {
1291
throw new Nette\InvalidStateException('Context has not been set.');
1292
}
+ trigger_error(__METHOD__ . '() is deprecated, use Dependency Injection.', E_USER_DEPRECATED);
1293
return $this->context;
1294
1295
0 commit comments