We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20adda9 commit fc7d209Copy full SHA for fc7d209
bin/pds-skeleton
@@ -0,0 +1,25 @@
1
+#!/usr/bin/env php
2
+<?php
3
+$autoload = null;
4
+
5
+$autoloadFiles = [
6
+ __DIR__ . '/../vendor/autoload.php',
7
+ __DIR__ . '/../../../autoload.php'
8
+];
9
10
+foreach ($autoloadFiles as $autoloadFile) {
11
+ if (file_exists($autoloadFile)) {
12
+ $autoload = $autoloadFile;
13
+ break;
14
+ }
15
+}
16
17
+if (! $autoload) {
18
+ echo "Autoload file not found; try 'composer install' first." . PHP_EOL;
19
+ exit(1);
20
21
22
+require $autoload;
23
24
+$console = new \Pds\Skeleton\Console();
25
+$console->execute($argv);
bin/pdsskeleton
0 commit comments