Skip to content

Commit

Permalink
EZP-31220: Migrated codebase to Symfony 5 (#78)
Browse files Browse the repository at this point in the history
* Symfony 5 compatibility

* Added symfony-cmf/routing fork

* Removed obsolete repositories

* Fixed GeneratePlatformSchemaCommand::execute return value

* Downgraded overblog/graphql-bundle to avoid container.build_id related
error

* Downgraded overblog/graphql-bundle to ^0.11

* Fixed code style

* Prepared composer.json for release
  • Loading branch information
webhdx authored Mar 18, 2020
1 parent da16dce commit 29420d6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
22 changes: 10 additions & 12 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
"replace": {
"bdunogier/ezplatform-graphql-bundle": "self.version"
},
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": "^7.3",
"ext-dom": "*",
Expand All @@ -22,18 +20,18 @@
"ezsystems/ezplatform-richtext": "^2.0@dev",
"overblog/graphql-bundle": "^0.11",
"erusev/parsedown": "^1.7",
"symfony/dependency-injection": "^4.3",
"symfony/http-kernel": "^4.3",
"symfony/console": "^4.3",
"symfony/filesystem": "^4.3",
"symfony/yaml": "^4.3",
"symfony/config": "^4.3",
"symfony/http-foundation": "^4.3",
"symfony/serializer": "^4.3"
"symfony/dependency-injection": "^5.0",
"symfony/http-kernel": "^5.0",
"symfony/console": "^5.0",
"symfony/filesystem": "^5.0",
"symfony/yaml": "^5.0",
"symfony/config": "^5.0",
"symfony/http-foundation": "^5.0",
"symfony/serializer": "^5.0"
},
"require-dev": {
"overblog/graphiql-bundle": "^0.1",
"phpspec/phpspec": "^5.1",
"overblog/graphiql-bundle": "^0.2",
"phpspec/phpspec": "^6.1",
"friendsofphp/php-cs-fixer": "^2.16.0",
"ezsystems/ezplatform-code-style": "^0.1.0",
"mikey179/vfsstream": "^1.6"
Expand Down
4 changes: 3 additions & 1 deletion src/Command/GeneratePlatformSchemaCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ protected function configure()
->addOption('include', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'Type to output or write', []);
}

protected function execute(InputInterface $input, OutputInterface $output)
protected function execute(InputInterface $input, OutputInterface $output): int
{
$schema = $this->generator->generate();

Expand All @@ -68,6 +68,8 @@ protected function execute(InputInterface $input, OutputInterface $output)

$output->writeln('');
$this->compileTypes($output);

return 0;
}

private function compileTypes(OutputInterface $output)
Expand Down

0 comments on commit 29420d6

Please sign in to comment.