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 94d63eb commit bf76a2eCopy full SHA for bf76a2e
src/Application/UI/Presenter.php
@@ -1420,7 +1420,10 @@ public function getContext(): Nette\DI\Container
1420
throw new Nette\InvalidStateException('Context has not been set.');
1421
}
1422
1423
- trigger_error(__METHOD__ . '() is deprecated, use dependency injection.', E_USER_DEPRECATED);
+ if (!function_exists('xdebug_is_debugger_active') || !xdebug_is_debugger_active()) {
1424
+ trigger_error(__METHOD__ . '() is deprecated, use constructor injection instead.', E_USER_DEPRECATED);
1425
+ }
1426
+
1427
return $this->context;
1428
1429
0 commit comments