updated session task to run through migration system.

This commit is contained in:
Taylor Otwell
2012-01-24 16:19:28 -06:00
parent 27fdb1e3f5
commit c9eb7bdf35
9 changed files with 195 additions and 26 deletions

View File

@@ -15,17 +15,7 @@ Bundle::start(DEFAULT_BUNDLE);
* retrieve them from the various parts of the CLI code. We can use
* the Request class to access them conveniently.
*/
$_SERVER['cli'] = array();
foreach ($_SERVER['argv'] as $key => $value)
{
if (starts_with($value, '--'))
{
$option = array_get($_SERVER['argv'], $key + 1, true);
array_set($_SERVER, 'cli.'.substr($value, 2), $option);
}
}
list($arguments, $_SERVER['cli']) = Console::options($_SERVER['argv']);
/**
* The Laravel environment may be specified on the CLI using the "env"
@@ -65,7 +55,7 @@ require SYS_PATH.'cli/dependencies'.EXT;
*/
try
{
Command::run(array_slice($_SERVER['argv'], 1));
Command::run(array_slice($arguments, 1));
}
catch (\Exception $e)
{