Welcome Guest, Not a member yet? Register   Sign In
Depractaion request warning
#1

(This post was last modified: 04-19-2024, 10:14 PM by ozornick.)

I am queite new to codeigniter and having some issues with the request object.

I am trying to pass some tokens from before filter to the request object but getting some depracation warning when trying to access it from controller

```
// before filter
$request->decodedToken = $decoded;
```
```
// after filter
   public function logout()
   {
       $originalToken = $this->request->originalToken ?? null;
   }

```

WARNING - 2024-04-19 12:40:09 --> [DEPRECATED] Creation of dynamic property CodeIgniter\HTTP\IncomingRequest::$originalToken is deprecated in APPPATH/Filters/AuthFilter.php
Reply


Messages In This Thread
Depractaion request warning - by chxgbx - 04-19-2024, 05:52 AM
RE: Depractaion request warning - by ozornick - 04-19-2024, 10:21 PM
RE: Depractaion request warning - by kenjis - 04-20-2024, 02:14 AM



Theme © iAndrew 2016 - Forum software by © MyBB