Skip to content

Commit a66249d

Browse files
committed
Check if comands are supported (bugfix)
1 parent b460d54 commit a66249d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ dev-master
1111

1212
### Bug fixes
1313

14+
- [capability] Commands not being disabled based on capability
1415
- [config] Do not override CLI options with profile options
1516
- [node:remove] Cannot `node:remove` by UUID
1617
- [node:edit] Serialization of single value references doesn't work

src/PHPCR/Shell/Console/Application/ShellApplication.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
use PHPCR\Shell\Console\Command\Phpcr\PhpcrShellCommand;
2222
use PHPCR\Shell\Config\Profile;
2323
use PHPCR\Shell\PhpcrShell;
24+
use PHPCR\Shell\Console\Command\Phpcr\BasePhpcrCommand;
2425

2526
/**
2627
* Main application for PHPCRSH
@@ -272,7 +273,7 @@ public function add(Command $command)
272273
$command->setContainer($this->container);
273274
}
274275

275-
if ($command instanceof PhpcrShellCommand) {
276+
if ($command instanceof BasePhpcrCommand) {
276277
if ($this->showUnsupported || $command->isSupported()) {
277278
parent::add($command);
278279
}

0 commit comments

Comments
 (0)