Skip to content

Commit

Permalink
add missing bin
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed Nov 10, 2024
1 parent 902151f commit b14e364
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ WORKDIR /usr/src/typeschema
RUN composer install

# run generation
CMD php vendor/psx/schema/bin/schema schema:parse "$SOURCE" output --format="$FORMAT" --config="namespace=$NAMESPACE"
CMD php bin/generate.php schema:parse "$SOURCE" output --format="$FORMAT" --config="namespace=$NAMESPACE"
9 changes: 9 additions & 0 deletions bin/generate.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

$loader = __DIR__ . '/../vendor/autoload.php';

$schemaManager = new \PSX\Schema\SchemaManager();

$application = new Symfony\Component\Console\Application('PSX Schema');
$application->add(new \PSX\Schema\Console\ParseCommand($schemaManager));
$application->run();

0 comments on commit b14e364

Please sign in to comment.