Skip to content

Commit 0fa310c

Browse files
Update for symfony/console 5.0
1 parent 7d05c61 commit 0fa310c

File tree

77 files changed

+155
-3
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+155
-3
lines changed

src/PHPCR/Shell/Console/Command/Phpcr/AccessControlPrivilegeListCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,7 @@ public function execute(InputInterface $input, OutputInterface $output)
7373
foreach ($privileges as $privilege) {
7474
$table->addRow([$privilege->getName()]);
7575
}
76+
77+
return 0;
7678
}
7779
}

src/PHPCR/Shell/Console/Command/Phpcr/LockInfoCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,7 @@ public function execute(InputInterface $input, OutputInterface $output)
6464
}
6565

6666
$table->render($output);
67+
68+
return 0;
6769
}
6870
}

src/PHPCR/Shell/Console/Command/Phpcr/LockLockCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,7 @@ public function execute(InputInterface $input, OutputInterface $output)
7979
$ownerInfo = $input->getOption('owner-info');
8080

8181
$lockManager->lock($path, $isDeep, $isSessionScoped, $timeout, $ownerInfo);
82+
83+
return 0;
8284
}
8385
}

src/PHPCR/Shell/Console/Command/Phpcr/LockRefreshCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,7 @@ public function execute(InputInterface $input, OutputInterface $output)
4949
$lock = $lockManager->getLock($node->getPath());
5050
$lock->refresh();
5151
}
52+
53+
return 0;
5254
}
5355
}

src/PHPCR/Shell/Console/Command/Phpcr/LockTokenAddCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,7 @@ public function execute(InputInterface $input, OutputInterface $output)
4343
$lockToken = $input->getArgument('lockToken');
4444

4545
$lockManager->addLockToken($lockToken);
46+
47+
return 0;
4648
}
4749
}

src/PHPCR/Shell/Console/Command/Phpcr/LockTokenListCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,7 @@ public function execute(InputInterface $input, OutputInterface $output)
5151
}
5252

5353
$table->render($output);
54+
55+
return 0;
5456
}
5557
}

src/PHPCR/Shell/Console/Command/Phpcr/LockTokenRemoveCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,7 @@ public function execute(InputInterface $input, OutputInterface $output)
4040
$lockToken = $input->getArgument('lockToken');
4141

4242
$lockManager->removeLockToken($lockToken);
43+
44+
return 0;
4345
}
4446
}

src/PHPCR/Shell/Console/Command/Phpcr/LockUnlockCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,7 @@ public function execute(InputInterface $input, OutputInterface $output)
4848
$path = $session->getAbsPath($input->getArgument('path'));
4949

5050
$lockManager->unlock($path);
51+
52+
return 0;
5153
}
5254
}

src/PHPCR/Shell/Console/Command/Phpcr/NodeCloneCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,7 @@ public function execute(InputInterface $input, OutputInterface $output)
7373

7474
$workspace = $session->getWorkspace();
7575
$workspace->cloneFrom($srcWorkspace, $srcAbsPath, $destAbsPath, $removeExisting);
76+
77+
return 0;
7678
}
7779
}

src/PHPCR/Shell/Console/Command/Phpcr/NodeCopyCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,7 @@ public function execute(InputInterface $input, OutputInterface $output)
4747

4848
$workspace = $session->getWorkspace();
4949
$workspace->copy($srcAbsPath, $destAbsPath, $srcWorkspace);
50+
51+
return 0;
5052
}
5153
}

src/PHPCR/Shell/Console/Command/Phpcr/NodeCorrespondingCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,7 @@ public function execute(InputInterface $input, OutputInterface $output)
3939
$currentNode = $session->getNodeByPathOrIdentifier($path);
4040
$correspondingPath = $currentNode->getCorrespondingNodePath($workspaceName);
4141
$output->writeln($correspondingPath);
42+
43+
return 0;
4244
}
4345
}

src/PHPCR/Shell/Console/Command/Phpcr/NodeCreateCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,7 @@ public function execute(InputInterface $input, OutputInterface $output)
5656
$nodeName = $pathHelper->getNodeName($path);
5757
$parentNode = $session->getNode($parentPath);
5858
$parentNode->addNode($nodeName, $primaryNodeTypeName);
59+
60+
return 0;
5961
}
6062
}

src/PHPCR/Shell/Console/Command/Phpcr/NodeFileImportCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ public function execute(InputInterface $input, OutputInterface $output)
105105
} else {
106106
$this->importToContainer($fhandle, $mimeType, $filePath, $filename, $parentNode, $force);
107107
}
108+
109+
return 0;
108110
}
109111

110112
private function importToProperty($fhandle, $filePath, $filename, $parentNode, $force)

src/PHPCR/Shell/Console/Command/Phpcr/NodeInfoCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,5 +85,7 @@ public function execute(InputInterface $input, OutputInterface $output)
8585

8686
$table->render($output);
8787
}
88+
89+
return 0;
8890
}
8991
}

src/PHPCR/Shell/Console/Command/Phpcr/NodeLifecycleFollowCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,7 @@ public function execute(InputInterface $input, OutputInterface $output)
4848
$currentNode = $session->getNodeByPathOrIdentifier($path);
4949
$transition = $input->getArgument('transition');
5050
$currentNode->followLifecycleTransition($transition);
51+
52+
return 0;
5153
}
5254
}

src/PHPCR/Shell/Console/Command/Phpcr/NodeLifecycleListCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,7 @@ public function execute(InputInterface $input, OutputInterface $output)
4242
foreach ($transitions as $transition) {
4343
$output->writeln('<info>'.$transition.'</info>');
4444
}
45+
46+
return 0;
4547
}
4648
}

src/PHPCR/Shell/Console/Command/Phpcr/NodeListCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ public function execute(InputInterface $input, OutputInterface $output)
140140
number_format($this->time, $config['execution_time_expansion']))
141141
);
142142
}
143+
144+
return 0;
143145
}
144146

145147
private function renderNode($currentNode, $table, $spacers = [], $filter = null)

src/PHPCR/Shell/Console/Command/Phpcr/NodeMixinAddCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,7 @@ public function execute(InputInterface $input, OutputInterface $output)
4646
foreach ($nodes as $node) {
4747
$node->addMixin($mixinName);
4848
}
49+
50+
return 0;
4951
}
5052
}

src/PHPCR/Shell/Console/Command/Phpcr/NodeMixinRemoveCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,7 @@ public function execute(InputInterface $input, OutputInterface $output)
4545
foreach ($nodes as $node) {
4646
$node->removeMixin($mixinName);
4747
}
48+
49+
return 0;
4850
}
4951
}

src/PHPCR/Shell/Console/Command/Phpcr/NodeMoveCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,7 @@ public function execute(InputInterface $input, OutputInterface $output)
4141
$destPath = $input->getArgument('destPath');
4242

4343
$session->move($srcPath, $destPath);
44+
45+
return 0;
4446
}
4547
}

src/PHPCR/Shell/Console/Command/Phpcr/NodeOrderBeforeCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,7 @@ public function execute(InputInterface $input, OutputInterface $output)
4747
$destChildRelPath = $input->getArgument('destChildRelPath');
4848
$node = $session->getNodeByPathOrIdentifier($path);
4949
$node->orderBefore($srcChildRelPath, $destChildRelPath);
50+
51+
return 0;
5052
}
5153
}

src/PHPCR/Shell/Console/Command/Phpcr/NodePropertyRemoveCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,7 @@ public function execute(InputInterface $input, OutputInterface $output)
4444
}
4545

4646
$property->remove();
47+
48+
return 0;
4749
}
4850
}

src/PHPCR/Shell/Console/Command/Phpcr/NodePropertySetCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,5 +96,7 @@ public function execute(InputInterface $input, OutputInterface $output)
9696

9797
$node->setProperty($propName, $value, $intType);
9898
}
99+
100+
return 0;
99101
}
100102
}

src/PHPCR/Shell/Console/Command/Phpcr/NodePropertyShowCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,7 @@ public function execute(InputInterface $input, OutputInterface $output)
6767
));
6868
}
6969
}
70+
71+
return 0;
7072
}
7173
}

src/PHPCR/Shell/Console/Command/Phpcr/NodeReferencesCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,5 +75,7 @@ public function execute(InputInterface $input, OutputInterface $output)
7575
$table->render($output);
7676
}
7777
}
78+
79+
return 0;
7880
}
7981
}

src/PHPCR/Shell/Console/Command/Phpcr/NodeRemoveCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,5 +80,7 @@ public function execute(InputInterface $input, OutputInterface $output)
8080
if (in_array($currentPath, $nodePaths)) {
8181
$session->chdir('..');
8282
}
83+
84+
return 0;
8385
}
8486
}

src/PHPCR/Shell/Console/Command/Phpcr/NodeRenameCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,7 @@ public function execute(InputInterface $input, OutputInterface $output)
4141
$newName = $input->getArgument('newName');
4242
$currentNode = $session->getNodeByPathOrIdentifier($path);
4343
$currentNode->rename($newName);
44+
45+
return 0;
4446
}
4547
}

src/PHPCR/Shell/Console/Command/Phpcr/NodeSetPrimaryTypeCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,7 @@ public function execute(InputInterface $input, OutputInterface $output)
4444
foreach ($nodes as $node) {
4545
$node->setPrimaryType($nodeTypeName);
4646
}
47+
48+
return 0;
4749
}
4850
}

src/PHPCR/Shell/Console/Command/Phpcr/NodeSharedShowCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,7 @@ public function execute(InputInterface $input, OutputInterface $output)
5151
$output->writeln($sharedNode->getPath());
5252
}
5353
}
54+
55+
return 0;
5456
}
5557
}

src/PHPCR/Shell/Console/Command/Phpcr/NodeTypeEditCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,5 +115,7 @@ public function execute(InputInterface $input, OutputInterface $output)
115115
$out = $res;
116116
}
117117
} while (false === $valid);
118+
119+
return 0;
118120
}
119121
}

src/PHPCR/Shell/Console/Command/Phpcr/NodeTypeListCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,7 @@ public function execute(InputInterface $input, OutputInterface $output)
6060
}
6161

6262
$table->render($output);
63+
64+
return 0;
6365
}
6466
}

src/PHPCR/Shell/Console/Command/Phpcr/NodeTypeLoadCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,7 @@ public function execute(InputInterface $input, OutputInterface $output)
5656

5757
$cndData = file_get_contents($cndFile);
5858
$nodeTypeManager->registerNodeTypesCnd($cndData, $update);
59+
60+
return 0;
5961
}
6062
}

src/PHPCR/Shell/Console/Command/Phpcr/NodeTypeShowCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,7 @@ public function execute(InputInterface $input, OutputInterface $output)
4848
$cndWriter = new CndWriter($namespaceRegistry);
4949
$out = $cndWriter->writeString([$nodeType]);
5050
$output->writeln(sprintf('<comment>%s</comment>', $out));
51+
52+
return 0;
5153
}
5254
}

src/PHPCR/Shell/Console/Command/Phpcr/NodeTypeUnregisterCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,7 @@ public function execute(InputInterface $input, OutputInterface $output)
4040
$nodeTypeManager = $workspace->getNodeTypeManager();
4141

4242
$nodeType = $nodeTypeManager->unregisterNodeTypes([$nodeTypeName]);
43+
44+
return 0;
4345
}
4446
}

src/PHPCR/Shell/Console/Command/Phpcr/NodeUpdateCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,7 @@ public function execute(InputInterface $input, OutputInterface $output)
5656
$output->writeln('<pathbold>'.$node->getPath().'</pathbold>');
5757
$node->update($srcWorkspace);
5858
}
59+
60+
return 0;
5961
}
6062
}

src/PHPCR/Shell/Console/Command/Phpcr/QueryCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,5 +72,7 @@ public function execute(InputInterface $input, OutputInterface $output)
7272
$elapsed = microtime(true) - $start;
7373

7474
$this->get('helper.result_formatter')->formatQueryResult($result, $output, $elapsed);
75+
76+
return 0;
7577
}
7678
}

src/PHPCR/Shell/Console/Command/Phpcr/QueryDeleteCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,7 @@ public function execute(InputInterface $input, OutputInterface $output)
6666

6767
$elapsed = microtime(true) - $start;
6868
$output->writeln(sprintf('%s row(s) affected in %ss', $rows, number_format($elapsed, 2)));
69+
70+
return 0;
6971
}
7072
}

src/PHPCR/Shell/Console/Command/Phpcr/QuerySelectCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,7 @@ public function execute(InputInterface $input, OutputInterface $output)
4747
$elapsed = microtime(true) - $start;
4848

4949
$this->get('helper.result_formatter')->formatQueryResult($result, $output, $elapsed);
50+
51+
return 0;
5052
}
5153
}

src/PHPCR/Shell/Console/Command/Phpcr/QueryUpdateCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,5 +99,7 @@ public function execute(InputInterface $input, OutputInterface $output)
9999
$elapsed = microtime(true) - $start;
100100

101101
$output->writeln(sprintf('%s row(s) affected in %ss', $rows, number_format($elapsed, 2)));
102+
103+
return 0;
102104
}
103105
}

src/PHPCR/Shell/Console/Command/Phpcr/RepositoryDescriptorListCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ public function execute(InputInterface $input, OutputInterface $output)
5252
}
5353

5454
$table->render($output);
55+
56+
return 0;
5557
}
5658

5759
private function getDescriptorValue($value)

src/PHPCR/Shell/Console/Command/Phpcr/RetentionHoldAddCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,7 @@ public function execute(InputInterface $input, OutputInterface $output)
4949
$name = $input->getArgument('name');
5050

5151
$retentionManager->addHold($absPath, $name, $isDeep);
52+
53+
return 0;
5254
}
5355
}

src/PHPCR/Shell/Console/Command/Phpcr/RetentionHoldListCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,7 @@ public function execute(InputInterface $input, OutputInterface $output)
4949
}
5050

5151
$table->render($output);
52+
53+
return 0;
5254
}
5355
}

src/PHPCR/Shell/Console/Command/Phpcr/RetentionHoldRemoveCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,7 @@ public function execute(InputInterface $input, OutputInterface $output)
5656
}
5757

5858
$retentionManager->removeHold($absPath, $indexed[$name]);
59+
60+
return 0;
5961
}
6062
}

src/PHPCR/Shell/Console/Command/Phpcr/RetentionPolicyGetCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,7 @@ public function execute(InputInterface $input, OutputInterface $output)
4444
} else {
4545
$output->writeln($policy->getName());
4646
}
47+
48+
return 0;
4749
}
4850
}

src/PHPCR/Shell/Console/Command/Phpcr/RetentionPolicyRemoveCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,7 @@ public function execute(InputInterface $input, OutputInterface $output)
4444
} else {
4545
$output->writeln($policy->remove());
4646
}
47+
48+
return 0;
4749
}
4850
}

src/PHPCR/Shell/Console/Command/Phpcr/SessionExportCommand.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function execute(InputInterface $input, OutputInterface $output)
6969
}
7070

7171
if (false === $confirmed) {
72-
return;
72+
return 0;
7373
}
7474
}
7575

@@ -102,5 +102,7 @@ public function execute(InputInterface $input, OutputInterface $output)
102102
$xml->formatOutput = true;
103103
$xml->save($file);
104104
}
105+
106+
return 0;
105107
}
106108
}

src/PHPCR/Shell/Console/Command/Phpcr/SessionImpersonateCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,7 @@ public function execute(InputInterface $input, OutputInterface $output)
4242

4343
$credentials = new SimpleCredentials($username, '');
4444
$session->impersonate($credentials);
45+
46+
return 0;
4547
}
4648
}

src/PHPCR/Shell/Console/Command/Phpcr/SessionImportCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,5 +104,7 @@ public function execute(InputInterface $input, OutputInterface $output)
104104
$uuidBehavior = constant('\PHPCR\ImportUUIDBehaviorInterface::IMPORT_UUID_'.strtoupper(str_replace('-', '_', $uuidBehavior)));
105105

106106
$session->importXml($parentAbsPath, $file, $uuidBehavior);
107+
108+
return 0;
107109
}
108110
}

0 commit comments

Comments
 (0)