php - Slim 3 access response/request object from another class -


i have utils class, need use $response/$request slim 3 use useful methods (ex: $request->geturi()->getpath()), how can access $request or $response that:

 class appcore {      public static function allowroutepass($request, $response)     {         $reqmethod =$request->geturi()->getpath();         if (in_array($reqmethod, appconfig::ignore_routes))             return true;         return false;     }  }  

thank everyone!

ok, create question in githup slim repository here: slim 3 access response/request object class.
there no way implement util class described above. check out link see more informations. in case, must change logics , implement util class in way.


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -