| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | public function __invoke($request,$response,$next) |
||
| 12 | { |
||
| 13 | $this->container->view->getEnvironment()->addGlobal('csrf',[ |
||
| 14 | 'field' => ' |
||
| 15 | <input type="hidden" name="'. $this->container->csrf->getTokenNameKey() .'" |
||
| 16 | value="'. $this->container->csrf->getTokenName() .'"> |
||
| 17 | <input type="hidden" name="'. $this->container->csrf->getTokenValueKey() .'" |
||
| 18 | value="'. $this->container->csrf->getTokenValue() .'"> |
||
| 19 | ', |
||
| 20 | ]); |
||
| 21 | |||
| 22 | $response = $next($request,$response); |
||
| 23 | return $response; |
||
| 24 | |||
| 25 | } |
||
| 26 | } |