Skip to content

Commit 0a4cb6c

Browse files
authored
Merge pull request #174 from maxhelias/deprecated-console
non-int value in the execute command will be deprecated
2 parents d935405 + c60b245 commit 0a4cb6c

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

src/Command/DumpConfigurationCommand.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,12 @@ protected function configure(): void
3939
/**
4040
* {@inheritdoc}
4141
*/
42-
protected function execute(InputInterface $input, OutputInterface $output): void
42+
protected function execute(InputInterface $input, OutputInterface $output): int
4343
{
4444
$configuration = new TypesGeneratorConfiguration();
4545
$dumper = new YamlReferenceDumper();
4646
$output->writeln($dumper->dump($configuration));
47+
48+
return 0;
4749
}
4850
}

src/Command/ExtractCardinalitiesCommand.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ protected function configure(): void
4444
/**
4545
* {@inheritdoc}
4646
*/
47-
protected function execute(InputInterface $input, OutputInterface $output): void
47+
protected function execute(InputInterface $input, OutputInterface $output): int
4848
{
4949
$schemaOrgFile = $input->getOption('schemaorg-file');
5050

@@ -65,5 +65,7 @@ protected function execute(InputInterface $input, OutputInterface $output): void
6565
$result = $cardinalitiesExtractor->extract();
6666

6767
$output->writeln(json_encode($result, JSON_PRETTY_PRINT));
68+
69+
return 0;
6870
}
6971
}

src/Command/GenerateTypesCommand.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ protected function configure(): void
6767
/**
6868
* {@inheritdoc}
6969
*/
70-
protected function execute(InputInterface $input, OutputInterface $output): void
70+
protected function execute(InputInterface $input, OutputInterface $output): int
7171
{
7272
$defaultOutput = $this->defaultOutput ? realpath($this->defaultOutput) : null;
7373
$outputDir = $input->getArgument('output');
@@ -163,5 +163,7 @@ protected function execute(InputInterface $input, OutputInterface $output): void
163163

164164
$entitiesGenerator = new TypesGenerator($twig, $logger, $graphs, $cardinalitiesExtractor, $goodRelationsBridge);
165165
$entitiesGenerator->generate($processedConfiguration);
166+
167+
return 0;
166168
}
167169
}

0 commit comments

Comments
 (0)