Skip to content

Commit 4155ded

Browse files
authoredDec 11, 2023
Added Symfony 7 support (#133)
* Added Symfony 7 support * Fix deprecations
1 parent 1bc5e1c commit 4155ded

File tree

7 files changed

+22
-23
lines changed

7 files changed

+22
-23
lines changed
 

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ $ composer require artgris/filemanager-bundle
6666
# app/config/routes.yaml
6767
artgris_bundle_file_manager:
6868
resource: "@ArtgrisFileManagerBundle/Controller"
69-
type: annotation
69+
type: attribute
7070
prefix: /manager
7171
```
7272
### Step 3: Enable the translator service

‎Resources/config/routing.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
interactive:
22
resource: "@ArtgrisFileManagerBundle/Controller"
3-
type: annotation
3+
type: attribute

‎Resources/doc/book/0-installation.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ $ composer require artgris/filemanager-bundle
1919
# app/config/routing.yml
2020
artgris_bundle_file_manager:
2121
resource: "@ArtgrisFileManagerBundle/Controller"
22-
type: annotation
22+
type: attribute
2323
prefix: /manager
2424
```
2525

‎Tests/Fixtures/App/AppKernel.php

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ public function registerBundles() :iterable
1414
return [
1515
new Artgris\Bundle\FileManagerBundle\ArtgrisFileManagerBundle(),
1616
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
17-
new Symfony\Bundle\SecurityBundle\SecurityBundle(),
1817
new Symfony\Bundle\TwigBundle\TwigBundle(),
1918
];
2019
}

‎Tests/Fixtures/App/config/config.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
framework:
22
secret: '%env(APP_SECRET)%'
33
#csrf_protection: true
4-
#http_method_override: true
4+
http_method_override: false
5+
handle_all_throwables: true
56

67
# Enables session support. Note that the session will ONLY be started if you read or write from it.
78
# Remove or comment this section to explicitly disable session support.

‎Tests/Fixtures/App/config/routing.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
artgris_bundle_file_manager:
22
resource: "@ArtgrisFileManagerBundle/Controller"
3-
type: annotation
3+
type: attribute
44
prefix: /manager/

‎composer.json

+16-17
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,26 @@
1818
"require": {
1919
"php": ">=8.1",
2020
"oomphinc/composer-installers-extender": "^2.0",
21-
"symfony/asset": "^6.0",
22-
"symfony/event-dispatcher": "^6.0",
23-
"symfony/expression-language": "^6.0",
21+
"symfony/asset": "^6.0||^7.0",
22+
"symfony/event-dispatcher": "^6.0||^7.0",
23+
"symfony/expression-language": "^6.0||^7.0",
2424
"symfony/flex": "^2.3",
25-
"symfony/form": "^6.0",
26-
"symfony/framework-bundle": "^6.0",
27-
"symfony/mime": "^6.0",
28-
"symfony/translation": "^6.0",
29-
"symfony/twig-bridge": "^6.0",
30-
"symfony/twig-bundle": "^6.0",
31-
"symfony/validator": "^6.0"
25+
"symfony/form": "^6.0||^7.0",
26+
"symfony/framework-bundle": "^6.0||^7.0",
27+
"symfony/mime": "^6.0||^7.0",
28+
"symfony/translation": "^6.0||^7.0",
29+
"symfony/twig-bridge": "^6.0||^7.0",
30+
"symfony/twig-bundle": "^6.0||^7.0",
31+
"symfony/validator": "^6.0||^7.0"
3232
},
3333
"require-dev": {
3434
"phpunit/phpunit": "^9.5",
35-
"symfony/browser-kit": "^6.0",
36-
"symfony/css-selector": "^6.0",
37-
"symfony/phpunit-bridge": "^6.0",
38-
"symfony/security-bundle": "^6.0",
39-
"symfony/templating": "^6.0",
40-
"symfony/var-dumper": "^6.0",
41-
"symfony/yaml": "^6.0"
35+
"symfony/browser-kit": "^6.0||^7.0",
36+
"symfony/css-selector": "^6.0||^7.0",
37+
"symfony/phpunit-bridge": "^6.0||^7.0",
38+
"symfony/templating": "^6.0||^7.0",
39+
"symfony/var-dumper": "^6.0||^7.0",
40+
"symfony/yaml": "^6.0||^7.0"
4241
},
4342
"config": {
4443
"sort-packages": true,

0 commit comments

Comments
 (0)
Please sign in to comment.