Skip to content

Commit 6a39889

Browse files
committed
fix: Remove HTML compression from templates to fix Twig 3.12 compatibility
- Remove htmlcompress blocks from header_main.html - Install modern Twig extensions (cache-extra, extra-bundle) - Fix Twig syntax errors caused by deprecated html-compress-twig
1 parent 0d24622 commit 6a39889

3 files changed

Lines changed: 1366 additions & 115 deletions

File tree

app/Views/header_main.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% htmlcompress tag="htmlcompress" %}
1+
{% htmlcompress %}
22
<!doctype html>
33
<html lang="pl">
44
<html>
@@ -84,4 +84,4 @@
8484
</body>
8585

8686
</html>
87-
{% endhtmlcompress tag="htmlcompress" %}
87+
{% endhtmlcompress %}

composer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@
3232
"phpunit/phpunit": "^10.0",
3333
"phpstan/phpstan": "^2.1",
3434
"squizlabs/php_codesniffer": "^4.0",
35-
"phpunit/php-code-coverage": "^10.1"
35+
"phpunit/php-code-coverage": "^10.1",
36+
"twig/cache-extra": "^3.22",
37+
"twig/extra-bundle": "^3.22"
3638
},
3739
"config": {
3840
"allow-plugins": {

0 commit comments

Comments
 (0)