Skip to content

Commit

Permalink
Compile graphql types after schema generation (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bertrand Dunogier committed Nov 14, 2018
1 parent 5269057 commit 7de29db
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Command/GeneratePlatformSchemaCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\StringInput;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Filesystem\Filesystem;
use Symfony\Component\Yaml\Yaml;
Expand Down Expand Up @@ -66,5 +67,14 @@ protected function execute(InputInterface $input, OutputInterface $output)
$output->writeln("\n# $type\n$yaml\n");
}
}

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

private function compileTypes(OutputInterface $output)
{
$command = $this->getApplication()->find('graphql:compile');
$command->run(new StringInput('graphql:compile'), $output);
}
}

0 comments on commit 7de29db

Please sign in to comment.