1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-08 22:26:46 +02:00

refactor(core): remove csrf from the core #414

This commit is contained in:
Awilum
2020-03-15 11:56:16 +03:00
parent 8646a7d623
commit 90181feba2
2 changed files with 0 additions and 12 deletions

View File

@@ -57,13 +57,6 @@ $flextype['registry'] = static function ($container) use ($registry) {
return $registry;
};
/**
* Add CSRF (cross-site request forgery) protection service to Flextype container
*/
$flextype['csrf'] = static function ($container) {
return new Guard();
};
/**
* Add logger service to Flextype container
*/

View File

@@ -8,8 +8,3 @@ declare(strict_types=1);
*/
namespace Flextype;
/**
* Add middleware CSRF (cross-site request forgery) protection for all routes
*/
$app->add($flextype->get('csrf'));