From 8166ded9357d7b08af1c61011b2de39d7b7fe53f Mon Sep 17 00:00:00 2001 From: jedrzejchalubek Date: Mon, 23 Jan 2017 11:45:16 +0100 Subject: [PATCH] Move to use new CLI package --- composer.json | 5 ++--- gin | 7 ++++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index ee71150..75afd0d 100644 --- a/composer.json +++ b/composer.json @@ -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": { diff --git a/gin b/gin index 487b361..340eea0 100644 --- a/gin +++ b/gin @@ -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.");