Skip to content

Commit

Permalink
fix: avoid error with Symfony 6.4 LTS downgrade (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
COil authored Dec 20, 2024
1 parent 0412956 commit 4156921
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config/packages/csrf.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@
declare(strict_types=1);

use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use Symfony\Component\HttpKernel\Kernel;

return static function (ContainerConfigurator $containerConfigurator): void {
// This configutation file is specific to Symfony 7.2+
if (Kernel::VERSION_ID < 70200) {
return;
}

// Enable stateless CSRF protection for forms and logins/logouts
$containerConfigurator->extension('framework', [
'form' => [
Expand Down

0 comments on commit 4156921

Please sign in to comment.