fix some problems on the CLI and allow specification of environment and database.

This commit is contained in:
Taylor Otwell
2012-01-24 11:51:15 -06:00
parent ec2fc6ddd0
commit 62571b3971
3 changed files with 44 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
<?php
<?php namespace Laravel\CLI; use Laravel\IoC;
/**
* The migrate task is responsible for running database migrations
@@ -32,7 +32,7 @@ IoC::register('task: bundle', function()
*/
IoC::singleton('bundle.repository', function()
{
return new Repository;
return new Tasks\Bundle\Repository;
});
/**
@@ -42,7 +42,7 @@ IoC::singleton('bundle.repository', function()
*/
IoC::singleton('bundle.publisher', function()
{
return new Publisher;
return new Tasks\Bundle\Publisher;
});
/**
@@ -53,5 +53,5 @@ IoC::singleton('bundle.publisher', function()
*/
IoC::singleton('bundle.provider: github', function()
{
return new Providers\Github;
return new Tasks\Bundle\Providers\Github;
});