File tree Expand file tree Collapse file tree 6 files changed +14
-1
lines changed
src/PHPCR/Shell/Console/Command/Phpcr Expand file tree Collapse file tree 6 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 66use Symfony \Component \Console \Input \InputInterface ;
77use Symfony \Component \Console \Output \OutputInterface ;
88use Symfony \Component \Console \Input \InputArgument ;
9+ use PHPCR \RepositoryInterface ;
910
1011class VersionCheckinCommand extends BasePhpcrCommand
1112{
@@ -42,7 +43,9 @@ protected function configure()
4243If checkin succeeds, the change to the <comment>jcr:isCheckedOut</comment> property is
4344dispatched immediately.
4445HERE
45- );
46+ );
47+
48+ $ this ->requiresDescriptor (RepositoryInterface::OPTION_VERSIONING_SUPPORTED , true );
4649 }
4750
4851 public function execute (InputInterface $ input , OutputInterface $ output )
Original file line number Diff line number Diff line change 66use Symfony \Component \Console \Input \InputInterface ;
77use Symfony \Component \Console \Output \OutputInterface ;
88use Symfony \Component \Console \Input \InputArgument ;
9+ use PHPCR \RepositoryInterface ;
910
1011class VersionCheckoutCommand extends BasePhpcrCommand
1112{
@@ -31,6 +32,7 @@ protected function configure()
3132If this node is already checked-out, this method has no effect.
3233HERE
3334 );
35+ $ this ->requiresDescriptor (RepositoryInterface::OPTION_VERSIONING_SUPPORTED , true );
3436 }
3537
3638 public function execute (InputInterface $ input , OutputInterface $ output )
Original file line number Diff line number Diff line change 66use Symfony \Component \Console \Input \InputInterface ;
77use Symfony \Component \Console \Output \OutputInterface ;
88use Symfony \Component \Console \Input \InputArgument ;
9+ use PHPCR \RepositoryInterface ;
910
1011class VersionCheckpointCommand extends BasePhpcrCommand
1112{
@@ -21,6 +22,7 @@ protected function configure()
2122If this node is already checked-in, this method is equivalent to <info>version:checkout</info>.
2223HERE
2324 );
25+ $ this ->requiresDescriptor (RepositoryInterface::OPTION_VERSIONING_SUPPORTED , true );
2426 }
2527
2628 public function execute (InputInterface $ input , OutputInterface $ output )
Original file line number Diff line number Diff line change 66use Symfony \Component \Console \Input \InputInterface ;
77use Symfony \Component \Console \Output \OutputInterface ;
88use Symfony \Component \Console \Input \InputArgument ;
9+ use PHPCR \RepositoryInterface ;
910
1011class VersionHistoryCommand extends BasePhpcrCommand
1112{
@@ -18,6 +19,7 @@ protected function configure()
1819Lists the version history of the node given at <info>path</info>.
1920HERE
2021 );
22+ $ this ->requiresDescriptor (RepositoryInterface::OPTION_VERSIONING_SUPPORTED , true );
2123 }
2224
2325 public function execute (InputInterface $ input , OutputInterface $ output )
Original file line number Diff line number Diff line change 66use Symfony \Component \Console \Input \InputInterface ;
77use Symfony \Component \Console \Output \OutputInterface ;
88use Symfony \Component \Console \Input \InputArgument ;
9+ use PHPCR \RepositoryInterface ;
910
1011class VersionRemoveCommand extends BasePhpcrCommand
1112{
@@ -33,6 +34,7 @@ protected function configure()
3334this context.
3435HERE
3536 );
37+ $ this ->requiresDescriptor (RepositoryInterface::OPTION_VERSIONING_SUPPORTED , true );
3638 }
3739
3840 public function execute (InputInterface $ input , OutputInterface $ output )
Original file line number Diff line number Diff line change 77use Symfony \Component \Console \Output \OutputInterface ;
88use Symfony \Component \Console \Input \InputArgument ;
99use Symfony \Component \Console \Input \InputOption ;
10+ use PHPCR \RepositoryInterface ;
1011
1112class VersionRestoreCommand extends BasePhpcrCommand
1213{
@@ -89,6 +90,7 @@ protected function configure()
8990signatures, you need to act accordingly in your implementation.
9091HERE
9192 );
93+ $ this ->requiresDescriptor (RepositoryInterface::OPTION_VERSIONING_SUPPORTED , true );
9294 }
9395
9496 public function execute (InputInterface $ input , OutputInterface $ output )
You can’t perform that action at this time.
0 commit comments