File tree Expand file tree Collapse file tree 5 files changed +20
-15
lines changed Expand file tree Collapse file tree 5 files changed +20
-15
lines changed Original file line number Diff line number Diff line change @@ -30,11 +30,16 @@ jobs:
30
30
deps : stable
31
31
symfony : ' ^4.4'
32
32
33
- # Test latest php/ Symfony
33
+ # Test Symfony 6
34
34
- php : 8.1
35
35
deps : stable
36
36
symfony : ' ^6.0'
37
37
38
+ # Test latest php/Symfony
39
+ - php : 8.3
40
+ deps : stable
41
+ symfony : ' ^7.0'
42
+
38
43
steps :
39
44
- name : Checkout code
40
45
uses : ' actions/checkout@v2'
Original file line number Diff line number Diff line change 18
18
"require" : {
19
19
"php" : " >=7.2.9" ,
20
20
"ext-xml" : " *" ,
21
- "symfony/dependency-injection" : " ^4.4|^5.0|^6.0" ,
22
- "symfony/http-kernel" : " ^4.4|^5.0|^6.0" ,
21
+ "symfony/dependency-injection" : " ^4.4|^5.0|^6.0|^7.0 " ,
22
+ "symfony/http-kernel" : " ^4.4|^5.0|^6.0|^7.0 " ,
23
23
"symfony/security-acl" : " ^3.0" ,
24
- "symfony/security-bundle" : " ^4.4|^5.0|^6.0"
24
+ "symfony/security-bundle" : " ^4.4|^5.0|^6.0|^7.0 "
25
25
},
26
26
"require-dev" : {
27
27
"doctrine/doctrine-bundle" : " ^1.6.12|^2.0" ,
28
28
"doctrine/dbal" : " ^2.13.1|^3.1" ,
29
29
"doctrine/orm" : " ^2.7.3" ,
30
- "symfony/console" : " ^4.4|^5.0|^6.0" ,
31
- "symfony/framework-bundle" : " ^4.4|^5.0|^6.0" ,
32
- "symfony/phpunit-bridge" : " ^5.0|^6.0" ,
33
- "symfony/yaml" : " ^4.4|^5.0|^6.0"
30
+ "symfony/console" : " ^4.4|^5.0|^6.0|^7.0 " ,
31
+ "symfony/framework-bundle" : " ^4.4|^5.0|^6.0|^7.0 " ,
32
+ "symfony/phpunit-bridge" : " ^5.0|^6.0|^7.0 " ,
33
+ "symfony/yaml" : " ^4.4|^5.0|^6.0|^7.0 "
34
34
},
35
35
"suggest" : {
36
36
"doctrine/doctrine-bundle" : " To use the default dbal configuration"
Original file line number Diff line number Diff line change 13
13
14
14
use Doctrine \DBAL \Connection ;
15
15
use Doctrine \DBAL \Schema \SchemaException ;
16
+ use Symfony \Component \Console \Attribute \AsCommand ;
16
17
use Symfony \Component \Console \Command \Command ;
17
18
use Symfony \Component \Console \Input \InputInterface ;
18
19
use Symfony \Component \Console \Output \OutputInterface ;
23
24
*
24
25
* @author Johannes M. Schmitt <[email protected] >
25
26
*/
27
+ #[AsCommand(name: 'acl:init ' , description: 'Creates ACL tables in the database ' )]
26
28
final class InitAclCommand extends Command
27
29
{
28
- protected static $ defaultName = 'acl:init ' ;
29
-
30
30
private $ connection ;
31
31
private $ schema ;
32
32
@@ -62,7 +62,7 @@ protected function configure()
62
62
/**
63
63
* {@inheritdoc}
64
64
*/
65
- protected function execute (InputInterface $ input , OutputInterface $ output )
65
+ protected function execute (InputInterface $ input , OutputInterface $ output ): int
66
66
{
67
67
try {
68
68
$ this ->schema ->addToSchema ($ this ->connection ->getSchemaManager ()->createSchema ());
Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Bundle \AclBundle \Command ;
13
13
14
+ use Symfony \Component \Console \Attribute \AsCommand ;
14
15
use Symfony \Component \Console \Command \Command ;
15
16
use Symfony \Component \Console \Input \InputArgument ;
16
17
use Symfony \Component \Console \Input \InputInterface ;
28
29
*
29
30
* @author Kévin Dunglas <[email protected] >
30
31
*/
32
+ #[AsCommand(name: 'acl:set ' , description: 'Sets ACL for objects ' )]
31
33
final class SetAclCommand extends Command
32
34
{
33
- protected static $ defaultName = 'acl:set ' ;
34
-
35
35
private $ provider ;
36
36
37
37
public function __construct (MutableAclProviderInterface $ provider )
@@ -80,7 +80,7 @@ protected function configure()
80
80
/**
81
81
* {@inheritdoc}
82
82
*/
83
- protected function execute (InputInterface $ input , OutputInterface $ output )
83
+ protected function execute (InputInterface $ input , OutputInterface $ output ): int
84
84
{
85
85
// Parse arguments
86
86
$ objectIdentities = [];
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ class Configuration implements ConfigurationInterface
26
26
*
27
27
* @return TreeBuilder The tree builder
28
28
*/
29
- public function getConfigTreeBuilder ()
29
+ public function getConfigTreeBuilder (): TreeBuilder
30
30
{
31
31
$ builder = new TreeBuilder ('acl ' );
32
32
$ rootNode = $ builder ->getRootNode ();
You can’t perform that action at this time.
0 commit comments