|
44 | 44 | "symfony/http-kernel": "^6.4 || ^7.0 || ^8.0", |
45 | 45 | "symfony/routing": "^6.4 || ^7.0 || ^8.0", |
46 | 46 | "symfony/security-csrf": "^6.4 || ^7.0 || ^8.0", |
47 | | - "symfony/twig-bundle": "^6.4 || ^7.0 || ^8.0" |
| 47 | + "symfony/twig-bundle": "^6.4 || ^7.0 || ^8.0", |
| 48 | + "twig/extra-bundle": "^3.12", |
| 49 | + "twig/string-extra": "^3.12" |
48 | 50 | }, |
49 | 51 | "require-dev": { |
50 | 52 | "friendsofphp/php-cs-fixer": "^3.0", |
|
55 | 57 | "phpstan/phpstan-symfony": "^2.0", |
56 | 58 | "phpunit/phpunit": "^11.0", |
57 | 59 | "rector/rector": "^2.0", |
58 | | - "symfony/yaml": "^6.4 || ^7.0 || ^8.0" |
| 60 | + "symfony/yaml": "^6.4 || ^7.0 || ^8.0", |
| 61 | + "vincentlanglet/twig-cs-fixer": "^3.0" |
59 | 62 | }, |
60 | 63 | "autoload": { |
61 | 64 | "psr-4": { |
|
80 | 83 | "minimum-stability": "stable", |
81 | 84 | "prefer-stable": true, |
82 | 85 | "archive": { |
83 | | - "exclude": ["/demo", "/.cursor"] |
| 86 | + "exclude": [ |
| 87 | + "/demo", |
| 88 | + "/.cursor" |
| 89 | + ] |
84 | 90 | }, |
85 | 91 | "scripts": { |
86 | 92 | "test": "@php vendor/bin/phpunit --color=always", |
|
93 | 99 | "rector": "@php vendor/bin/rector process", |
94 | 100 | "rector-dry": "@php vendor/bin/rector process --dry-run --no-progress-bar", |
95 | 101 | "phpstan": "@php vendor/bin/phpstan analyse --memory-limit=512M", |
96 | | - "qa": ["@cs-check", "@test"] |
| 102 | + "qa": [ |
| 103 | + "@cs-check", |
| 104 | + "@test" |
| 105 | + ], |
| 106 | + "twig:lint": "twig-cs-fixer lint --config=.twig-cs-fixer.php", |
| 107 | + "twig:fix": "twig-cs-fixer fix --config=.twig-cs-fixer.php", |
| 108 | + "twig:fix:check": "twig-cs-fixer lint --config=.twig-cs-fixer.php --fix" |
97 | 109 | } |
98 | 110 | } |
0 commit comments