Skip to content

Commit 42916fa

Browse files
committed
Added php-datagen boot file
1 parent bfd343a commit 42916fa

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

composer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,8 @@
3030
"config": {
3131
"optimize-autoloader": true,
3232
"sort-packages": true
33-
}
33+
},
34+
"bin": [
35+
"php-datagen"
36+
]
3437
}

php-datagen

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env php
2+
<?php
3+
4+
if (file_exists(__DIR__.'/../../autoload.php')) {
5+
require __DIR__.'/../../autoload.php';
6+
} else {
7+
require __DIR__.'/vendor/autoload.php';
8+
}
9+
10+
$app = new Symfony\Component\Console\Application('PHP-DataGen', '0.2-alpha');
11+
// $app->add(new PHPDataGen\Commands\);
12+
13+
$app->run();

0 commit comments

Comments
 (0)