File tree Expand file tree Collapse file tree 2 files changed +24
-22
lines changed Expand file tree Collapse file tree 2 files changed +24
-22
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env php
2
2
<?php
3
3
4
- include ('schema.php ' );
4
+ /*
5
+ * (c) Kévin Dunglas <[email protected] >
6
+ *
7
+ * This source file is subject to the MIT license that is bundled
8
+ * with this source code in the file LICENSE.
9
+ */
10
+
11
+ // installed via composer?
12
+ if (file_exists (__DIR__ . '/../../../autoload.php ' )) {
13
+ require_once __DIR__ . '/../../../autoload.php ' ;
14
+ } else {
15
+ require_once __DIR__ .'/../vendor/autoload.php ' ;
16
+ }
17
+
18
+ use Symfony \Component \Console \Application ;
19
+ use SchemaOrgModel \Command \ExtractCardinalitiesCommand ;
20
+ use SchemaOrgModel \Command \DumpConfigurationCommand ;
21
+ use SchemaOrgModel \Command \GenerateTypesCommand ;
22
+
23
+ $ application = new Application ();
24
+ $ application ->add (new ExtractCardinalitiesCommand ());
25
+ $ application ->add (new DumpConfigurationCommand ());
26
+ $ application ->add (new GenerateTypesCommand ());
27
+ $ application ->run ();
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments