File tree 19 files changed +43
-127
lines changed
19 files changed +43
-127
lines changed Original file line number Diff line number Diff line change @@ -22,10 +22,10 @@ jobs:
22
22
- php-version : ' 7.3'
23
23
- php-version : ' 7.4'
24
24
- php-version : ' 8.0'
25
- - php-version : ' 8.0'
26
- dev-dependencies : true
27
25
- php-version : ' 8.1'
28
26
- php-version : ' 8.2'
27
+ - php-version : ' 8.3'
28
+ - php-version : ' 8.3'
29
29
30
30
steps :
31
31
- name : Checkout project
Original file line number Diff line number Diff line change 1
1
Changelog
2
2
=========
3
3
4
+ 2.x
5
+ ---
6
+
7
+ 2.0.0 (unreleased)
8
+ ------------------
9
+
10
+ * Support Symfony 7
11
+ * Test with PHP 8.3
12
+ * Adjusted commands to have the return type declarations.
13
+
4
14
1.x
5
15
---
6
16
Original file line number Diff line number Diff line change 29
29
"require" : {
30
30
"php" : " ^7.2 || ^8.0" ,
31
31
"phpcr/phpcr" : " ~2.1.0" ,
32
- "symfony/console" : " ^2.3 || ^3.0 || ^4.0 || ^5.0 || ^6.0"
32
+ "symfony/console" : " ^2.3 || ^3.0 || ^4.0 || ^5.0 || ^6.0 || ^7.0 "
33
33
},
34
34
"require-dev" : {
35
35
"ramsey/uuid" : " ^3.5" ,
Original file line number Diff line number Diff line change 23
23
*/
24
24
class NodeDumpCommand extends BaseCommand
25
25
{
26
- /**
27
- * {@inheritdoc}
28
- *
29
- * @throws InvalidArgumentException
30
- */
31
- protected function configure ()
26
+ protected function configure (): void
32
27
{
33
28
$ this
34
29
->setName ('phpcr:node:dump ' )
@@ -56,13 +51,11 @@ protected function configure()
56
51
}
57
52
58
53
/**
59
- * {@inheritdoc}
60
- *
61
54
* @throws InvalidArgumentException
62
55
* @throws Exception
63
56
* @throws RepositoryException
64
57
*/
65
- protected function execute (InputInterface $ input , OutputInterface $ output )
58
+ protected function execute (InputInterface $ input , OutputInterface $ output ): int
66
59
{
67
60
$ session = $ this ->getPhpcrSession ();
68
61
$ dumperHelper = $ this ->getPhpcrConsoleDumperHelper ();
Original file line number Diff line number Diff line change 17
17
*/
18
18
class NodeMoveCommand extends BaseCommand
19
19
{
20
- /**
21
- * {@inheritdoc}
22
- *
23
- * @throws InvalidArgumentException
24
- */
25
- protected function configure ()
20
+ protected function configure (): void
26
21
{
27
22
$ this
28
23
->setName ('phpcr:node:move ' )
@@ -43,11 +38,9 @@ protected function configure()
43
38
}
44
39
45
40
/**
46
- * {@inheritdoc}
47
- *
48
41
* @throws InvalidArgumentException
49
42
*/
50
- protected function execute (InputInterface $ input , OutputInterface $ output )
43
+ protected function execute (InputInterface $ input , OutputInterface $ output ): int
51
44
{
52
45
$ session = $ this ->getPhpcrSession ();
53
46
Original file line number Diff line number Diff line change 21
21
*/
22
22
class NodeRemoveCommand extends BaseCommand
23
23
{
24
- /**
25
- * {@inheritdoc}
26
- *
27
- * @throws CliInvalidArgumentException
28
- */
29
- protected function configure ()
24
+ protected function configure (): void
30
25
{
31
26
parent ::configure ();
32
27
@@ -53,12 +48,10 @@ protected function configure()
53
48
}
54
49
55
50
/**
56
- * {@inheritdoc}
57
- *
58
51
* @throws CliInvalidArgumentException
59
52
* @throws InvalidArgumentException
60
53
*/
61
- protected function execute (InputInterface $ input , OutputInterface $ output )
54
+ protected function execute (InputInterface $ input , OutputInterface $ output ): int
62
55
{
63
56
$ session = $ this ->getPhpcrSession ();
64
57
Original file line number Diff line number Diff line change 21
21
*/
22
22
class NodeTouchCommand extends BaseNodeManipulationCommand
23
23
{
24
- /**
25
- * {@inheritdoc}
26
- *
27
- * @throws InvalidArgumentException
28
- */
29
- protected function configure ()
24
+ protected function configure (): void
30
25
{
31
26
parent ::configure ();
32
27
@@ -73,11 +68,9 @@ protected function configure()
73
68
}
74
69
75
70
/**
76
- * {@inheritdoc}
77
- *
78
71
* @throws InvalidArgumentException
79
72
*/
80
- protected function execute (InputInterface $ input , OutputInterface $ output )
73
+ protected function execute (InputInterface $ input , OutputInterface $ output ): int
81
74
{
82
75
$ helper = $ this ->getPhpcrHelper ();
83
76
$ session = $ this ->getPhpcrSession ();
Original file line number Diff line number Diff line change 15
15
*/
16
16
class NodeTypeListCommand extends BaseCommand
17
17
{
18
- /**
19
- * {@inheritdoc}
20
- */
21
- protected function configure ()
18
+ protected function configure (): void
22
19
{
23
20
$ this
24
21
->setName ('phpcr:node-type:list ' )
@@ -31,10 +28,7 @@ protected function configure()
31
28
);
32
29
}
33
30
34
- /**
35
- * {@inheritdoc}
36
- */
37
- protected function execute (InputInterface $ input , OutputInterface $ output )
31
+ protected function execute (InputInterface $ input , OutputInterface $ output ): int
38
32
{
39
33
$ session = $ this ->getPhpcrSession ();
40
34
$ ntm = $ session ->getWorkspace ()->getNodeTypeManager ();
Original file line number Diff line number Diff line change 26
26
*/
27
27
class NodeTypeRegisterCommand extends BaseCommand
28
28
{
29
- /**
30
- * {@inheritdoc}
31
- */
32
- protected function configure ()
29
+ protected function configure (): void
33
30
{
34
31
$ this
35
32
->setName ('phpcr:node-type:register ' )
@@ -62,11 +59,9 @@ protected function configure()
62
59
}
63
60
64
61
/**
65
- * {@inheritdoc}
66
- *
67
62
* @throws InvalidArgumentException
68
63
*/
69
- protected function execute (InputInterface $ input , OutputInterface $ output )
64
+ protected function execute (InputInterface $ input , OutputInterface $ output ): int
70
65
{
71
66
$ definitions = $ input ->getArgument ('cnd-file ' );
72
67
Original file line number Diff line number Diff line change 20
20
*/
21
21
class NodesUpdateCommand extends BaseNodeManipulationCommand
22
22
{
23
- /**
24
- * {@inheritdoc}
25
- *
26
- * @throws CliInvalidArgumentException
27
- */
28
- protected function configure ()
23
+ protected function configure (): void
29
24
{
30
25
parent ::configure ();
31
26
@@ -85,12 +80,10 @@ protected function configure()
85
80
}
86
81
87
82
/**
88
- * {@inheritdoc}
89
- *
90
83
* @throws CliInvalidArgumentException
91
84
* @throws InvalidArgumentException
92
85
*/
93
- protected function execute (InputInterface $ input , OutputInterface $ output )
86
+ protected function execute (InputInterface $ input , OutputInterface $ output ): int
94
87
{
95
88
$ query = $ input ->getOption ('query ' );
96
89
$ queryLanguage = strtoupper ($ input ->getOption ('query-language ' ));
Original file line number Diff line number Diff line change 18
18
*/
19
19
class WorkspaceCreateCommand extends BaseCommand
20
20
{
21
- /**
22
- * {@inheritdoc}
23
- */
24
- protected function configure ()
21
+ protected function configure (): void
25
22
{
26
23
$ this
27
24
->setName ('phpcr:workspace:create ' )
@@ -42,10 +39,7 @@ protected function configure()
42
39
);
43
40
}
44
41
45
- /**
46
- * {@inheritdoc}
47
- */
48
- protected function execute (InputInterface $ input , OutputInterface $ output )
42
+ protected function execute (InputInterface $ input , OutputInterface $ output ): int
49
43
{
50
44
$ session = $ this ->getPhpcrSession ();
51
45
Original file line number Diff line number Diff line change 17
17
*/
18
18
class WorkspaceDeleteCommand extends BaseCommand
19
19
{
20
- /**
21
- * {@inheritdoc}
22
- */
23
- protected function configure ()
20
+ protected function configure (): void
24
21
{
25
22
$ this
26
23
->setName ('phpcr:workspace:delete ' )
@@ -37,10 +34,7 @@ protected function configure()
37
34
);
38
35
}
39
36
40
- /**
41
- * {@inheritdoc}
42
- */
43
- protected function execute (InputInterface $ input , OutputInterface $ output )
37
+ protected function execute (InputInterface $ input , OutputInterface $ output ): int
44
38
{
45
39
$ session = $ this ->getPhpcrSession ();
46
40
Original file line number Diff line number Diff line change 17
17
*/
18
18
class WorkspaceExportCommand extends BaseCommand
19
19
{
20
- /**
21
- * {@inheritdoc}
22
- */
23
- protected function configure ()
20
+ protected function configure (): void
24
21
{
25
22
parent ::configure ();
26
23
@@ -42,10 +39,7 @@ protected function configure()
42
39
);
43
40
}
44
41
45
- /**
46
- * {@inheritdoc}
47
- */
48
- protected function execute (InputInterface $ input , OutputInterface $ output )
42
+ protected function execute (InputInterface $ input , OutputInterface $ output ): int
49
43
{
50
44
$ session = $ this ->getPhpcrSession ();
51
45
$ repo = $ session ->getRepository ();
Original file line number Diff line number Diff line change @@ -24,10 +24,7 @@ class WorkspaceImportCommand extends BaseCommand
24
24
'throw ' => ImportUUIDBehaviorInterface::IMPORT_UUID_COLLISION_THROW ,
25
25
];
26
26
27
- /**
28
- * {@inheritdoc}
29
- */
30
- protected function configure ()
27
+ protected function configure (): void
31
28
{
32
29
parent ::configure ();
33
30
@@ -62,10 +59,7 @@ protected function configure()
62
59
);
63
60
}
64
61
65
- /**
66
- * {@inheritdoc}
67
- */
68
- protected function execute (InputInterface $ input , OutputInterface $ output )
62
+ protected function execute (InputInterface $ input , OutputInterface $ output ): int
69
63
{
70
64
$ filename = $ input ->getArgument ('filename ' );
71
65
$ parentPath = $ input ->getOption ('parentpath ' );
Original file line number Diff line number Diff line change 14
14
*/
15
15
class WorkspaceListCommand extends BaseCommand
16
16
{
17
- /**
18
- * {@inheritdoc}
19
- */
20
- protected function configure ()
17
+ protected function configure (): void
21
18
{
22
19
$ this
23
20
->setName ('phpcr:workspace:list ' )
@@ -29,10 +26,7 @@ protected function configure()
29
26
);
30
27
}
31
28
32
- /**
33
- * {@inheritdoc}
34
- */
35
- protected function execute (InputInterface $ input , OutputInterface $ output )
29
+ protected function execute (InputInterface $ input , OutputInterface $ output ): int
36
30
{
37
31
$ session = $ this ->getPhpcrSession ();
38
32
Original file line number Diff line number Diff line change 17
17
*/
18
18
class WorkspacePurgeCommand extends BaseCommand
19
19
{
20
- /**
21
- * {@inheritdoc}
22
- */
23
- protected function configure ()
20
+ protected function configure (): void
24
21
{
25
22
parent ::configure ();
26
23
@@ -36,10 +33,7 @@ protected function configure()
36
33
);
37
34
}
38
35
39
- /**
40
- * {@inheritdoc}
41
- */
42
- protected function execute (InputInterface $ input , OutputInterface $ output )
36
+ protected function execute (InputInterface $ input , OutputInterface $ output ): int
43
37
{
44
38
$ session = $ this ->getPhpcrSession ();
45
39
$ force = $ input ->getOption ('force ' );
Original file line number Diff line number Diff line change 18
18
*/
19
19
class WorkspaceQueryCommand extends BaseCommand
20
20
{
21
- /**
22
- * {@inheritdoc}
23
- */
24
- protected function configure ()
21
+ protected function configure (): void
25
22
{
26
23
parent ::configure ();
27
24
@@ -34,10 +31,7 @@ protected function configure()
34
31
->setHelp ('The <info>query</info> command executes a JCR query statement on the content repository ' );
35
32
}
36
33
37
- /**
38
- * {@inheritdoc}
39
- */
40
- protected function execute (InputInterface $ input , OutputInterface $ output )
34
+ protected function execute (InputInterface $ input , OutputInterface $ output ): int
41
35
{
42
36
$ sql = $ input ->getArgument ('query ' );
43
37
$ language = $ input ->getOption ('language ' );
You can’t perform that action at this time.
0 commit comments