diff --git a/src/OptionalCommand/Jackalope/InitDoctrineDbalCommand.php b/src/OptionalCommand/Jackalope/InitDoctrineDbalCommand.php index 25ab2a60..e53c4930 100644 --- a/src/OptionalCommand/Jackalope/InitDoctrineDbalCommand.php +++ b/src/OptionalCommand/Jackalope/InitDoctrineDbalCommand.php @@ -4,16 +4,15 @@ use Doctrine\Bundle\PHPCRBundle\Command\DoctrineCommandHelper; use Jackalope\Tools\Console\Command\InitDoctrineDbalCommand as BaseInitDoctrineDbalCommand; -use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; +/** + * Wrapper to use this command in the symfony console with multiple sessions. + */ class InitDoctrineDbalCommand extends BaseInitDoctrineDbalCommand { - /** - * @see Command - */ protected function configure(): void { parent::configure(); @@ -24,9 +23,6 @@ protected function configure(): void ; } - /** - * @see Command - */ protected function execute(InputInterface $input, OutputInterface $output): int { $application = $this->getApplication(); diff --git a/src/OptionalCommand/Jackalope/JackrabbitCommand.php b/src/OptionalCommand/Jackalope/JackrabbitCommand.php index 3ac5e7c1..2c8292ab 100644 --- a/src/OptionalCommand/Jackalope/JackrabbitCommand.php +++ b/src/OptionalCommand/Jackalope/JackrabbitCommand.php @@ -9,6 +9,8 @@ use Symfony\Component\DependencyInjection\ContainerInterface; /** + * Wrapper to use this command in the symfony console with multiple sessions. + * * @author Daniel Barsotti */ class JackrabbitCommand extends BaseJackrabbitCommand implements ContainerAwareInterface @@ -30,17 +32,11 @@ protected function getContainer() return $this->container; } - /** - * {@inheritdoc} - */ public function setContainer(ContainerInterface $container = null) { $this->container = $container; } - /** - * {@inheritdoc} - */ protected function configure(): void { parent::configure(); @@ -59,9 +55,6 @@ protected function configure(): void ; } - /** - * {@inheritdoc} - */ protected function execute(InputInterface $input, OutputInterface $output): int { if ($this->getContainer()->hasParameter('doctrine_phpcr.jackrabbit_jar')) { diff --git a/src/OptionalCommand/ODM/DocumentConvertTranslationCommand.php b/src/OptionalCommand/ODM/DocumentConvertTranslationCommand.php index 243cc8d7..66e07da5 100644 --- a/src/OptionalCommand/ODM/DocumentConvertTranslationCommand.php +++ b/src/OptionalCommand/ODM/DocumentConvertTranslationCommand.php @@ -9,16 +9,13 @@ use Symfony\Component\Console\Output\OutputInterface; /** - * Integrate command into symfony. + * Wrapper to use this command in the symfony console with multiple sessions. * * @author David Buchmann */ class DocumentConvertTranslationCommand extends BaseDocumentConvertTranslationCommand { - /** - * {@inheritdoc} - */ - protected function configure() + protected function configure(): void { parent::configure(); @@ -34,10 +31,7 @@ protected function configure() ); } - /** - * {@inheritdoc} - */ - protected function execute(InputInterface $input, OutputInterface $output) + protected function execute(InputInterface $input, OutputInterface $output): int { DoctrineCommandHelper::setApplicationDocumentManager( $this->getApplication(), diff --git a/src/OptionalCommand/ODM/DocumentMigrateClassCommand.php b/src/OptionalCommand/ODM/DocumentMigrateClassCommand.php index b9f3988a..da1a9a5e 100644 --- a/src/OptionalCommand/ODM/DocumentMigrateClassCommand.php +++ b/src/OptionalCommand/ODM/DocumentMigrateClassCommand.php @@ -13,20 +13,14 @@ */ class DocumentMigrateClassCommand extends BaseDocumentMigrateClassCommand { - /** - * {@inheritdoc} - */ - protected function configure() + protected function configure(): void { parent::configure(); $this->addOption('dm', null, InputOption::VALUE_REQUIRED, 'The document manager to use for this command'); } - /** - * {@inheritdoc} - */ - protected function execute(InputInterface $input, OutputInterface $output) + protected function execute(InputInterface $input, OutputInterface $output): int { $dmName = $input->getOption('dm'); // defaults to null DoctrineCommandHelper::setApplicationDocumentManager( diff --git a/src/OptionalCommand/ODM/InfoDoctrineCommand.php b/src/OptionalCommand/ODM/InfoDoctrineCommand.php index ccde7816..5cef0f56 100644 --- a/src/OptionalCommand/ODM/InfoDoctrineCommand.php +++ b/src/OptionalCommand/ODM/InfoDoctrineCommand.php @@ -9,16 +9,13 @@ use Symfony\Component\Console\Output\OutputInterface; /** - * Show information about mapped entities. + * Wrapper to use this command in the symfony console with multiple sessions. * * @author Lukas Kahwe Smith */ class InfoDoctrineCommand extends BaseInfoDoctrineCommand { - /** - * {@inheritdoc} - */ - protected function configure() + protected function configure(): void { parent::configure(); @@ -34,10 +31,7 @@ protected function configure() ); } - /** - * {@inheritdoc} - */ - protected function execute(InputInterface $input, OutputInterface $output) + protected function execute(InputInterface $input, OutputInterface $output): int { DoctrineCommandHelper::setApplicationDocumentManager( $this->getApplication(), diff --git a/src/OptionalCommand/ODM/VerifyUniqueNodeTypesMappingCommand.php b/src/OptionalCommand/ODM/VerifyUniqueNodeTypesMappingCommand.php index a980a569..aa5ce677 100644 --- a/src/OptionalCommand/ODM/VerifyUniqueNodeTypesMappingCommand.php +++ b/src/OptionalCommand/ODM/VerifyUniqueNodeTypesMappingCommand.php @@ -13,10 +13,7 @@ */ class VerifyUniqueNodeTypesMappingCommand extends BaseVerifyUniqueNodeTypesMappingCommand { - /** - * {@inheritdoc} - */ - protected function configure() + protected function configure(): void { parent::configure(); @@ -31,10 +28,7 @@ protected function configure() ); } - /** - * {@inheritdoc} - */ - protected function execute(InputInterface $input, OutputInterface $output) + protected function execute(InputInterface $input, OutputInterface $output): int { DoctrineCommandHelper::setApplicationDocumentManager( $this->getApplication(),