File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ public function __construct(ILogger $logger = NULL)
3232 */
3333 public function run (Application \Request $ request )
3434 {
35- $ e = $ request ->parameters [ 'exception ' ] ;
35+ $ e = $ request ->getParameter ( 'exception ' ) ;
3636 if ($ e instanceof Application \BadRequestException) {
3737 $ code = $ e ->getCode ();
3838 } else {
Original file line number Diff line number Diff line change @@ -138,11 +138,11 @@ private function findSource()
138138 $ rc = new \ReflectionClass ($ class );
139139
140140 if ($ rc ->isSubclassOf (Nette \Application \UI \Presenter::class)) {
141- if (isset ( $ request ->parameters [ Presenter::SIGNAL_KEY ] )) {
142- $ method = $ class ::formatSignalMethod ($ request ->parameters [ Presenter::SIGNAL_KEY ] );
141+ if ($ request ->getParameter ( Presenter::SIGNAL_KEY )) {
142+ $ method = $ class ::formatSignalMethod ($ request ->getParameter ( Presenter::SIGNAL_KEY ) );
143143
144- } elseif (isset ( $ request ->parameters [ Presenter::ACTION_KEY ] )) {
145- $ action = $ request ->parameters [ Presenter::ACTION_KEY ] ;
144+ } elseif ($ request ->getParameter ( Presenter::ACTION_KEY )) {
145+ $ action = $ request ->getParameter ( Presenter::ACTION_KEY ) ;
146146 $ method = $ class ::formatActionMethod ($ action );
147147 if (!$ rc ->hasMethod ($ method )) {
148148 $ method = $ class ::formatRenderMethod ($ action );
You can’t perform that action at this time.
0 commit comments