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:
@@ -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
|
||||
*/
|
||||
|
@@ -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'));
|
||||
|
Reference in New Issue
Block a user