From 1a92d1c61907a5fb7f54f01450c7c5ce55fc5d02 Mon Sep 17 00:00:00 2001 From: Dan Cryer Date: Wed, 15 May 2013 22:29:09 +0100 Subject: [PATCH] Fixing the console app so that it installs and runs composer if not present. --- PHPCI/Command/InstallCommand.php | 16 +++------------- bootstrap.php | 22 +++++++++++++++------- console | 21 +++++++++++++++++---- 3 files changed, 35 insertions(+), 24 deletions(-) diff --git a/PHPCI/Command/InstallCommand.php b/PHPCI/Command/InstallCommand.php index 2a2cf7c2..7b97758a 100644 --- a/PHPCI/Command/InstallCommand.php +++ b/PHPCI/Command/InstallCommand.php @@ -34,7 +34,9 @@ class InstallCommand extends Command $str = "set('app_namespace', 'PHPCI'); b8\Registry::getInstance()->set('DefaultController', 'Index'); b8\Registry::getInstance()->set('ViewPath', dirname(__FILE__) . '/PHPCI/View/'); \ No newline at end of file diff --git a/console b/console index cae511bd..2e25dfab 100755 --- a/console +++ b/console @@ -1,15 +1,28 @@ #!/usr/bin/env php add(new RunCommand); $application->add(new InstallCommand);