Skip to content

Commit

Permalink
Move to use new CLI package
Browse files Browse the repository at this point in the history
  • Loading branch information
jedrzejchalubek committed Jan 23, 2017
1 parent 49e12f6 commit 8166ded
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
5 changes: 2 additions & 3 deletions composer.json
Expand Up @@ -6,11 +6,10 @@
"type": "wordpress-theme",
"require": {
"php": ">=5.6",
"tonik/gin": "1.1.*"
"tonik/gin": "^1.1.0"
},
"require-dev": {
"symfony/console": "~2.3|~3.0",
"symfony/finder": "~2.3|~3.0"
"tonik/cli": "^1.0.0"
},
"autoload": {
"psr-4": {
Expand Down
7 changes: 6 additions & 1 deletion gin
Expand Up @@ -6,7 +6,12 @@ use Symfony\Component\Console\Exception\RuntimeException;
if (file_exists($composer = __DIR__ . '/vendor/autoload.php')) {
require $composer;

return new Tonik\Gin\Foundation\Console\CLI(__DIR__);
$kernel = new Tonik\Gin\Foundation\Console\Kernel(__DIR__);

return $kernel->boot(
new Symfony\Component\Console\Application,
new Tonik\CLI\CLI
);
}

throw new RuntimeException("Please, install composer dependences before running CLI.");

0 comments on commit 8166ded

Please sign in to comment.