converted path constants to $GLOBALS.

This commit is contained in:
Taylor Otwell
2012-01-27 16:17:43 -06:00
parent 09d4b74cf1
commit f44c565ee4
28 changed files with 80 additions and 83 deletions

View File

@@ -34,7 +34,7 @@ class Manager extends Task {
// generated on the database.
$migration = $migrator->make(array('create_session_table'));
$stub = SYS_PATH.'cli/tasks/session/migration'.EXT;
$stub = $GLOBALS['SYS_PATH'].'cli/tasks/session/migration'.EXT;
File::put($migration, File::get($stub));
@@ -42,7 +42,7 @@ class Manager extends Task {
// Since the developer is requesting that the session table be
// created on the database, we'll set the driver to database
// to save an extra step for the developer.
$config = File::get(APP_PATH.'config/session'.EXT);
$config = File::get($GLOBALS['APP_PATH'].'config/session'.EXT);
$config = str_replace(
"'driver' => '',",
@@ -50,7 +50,7 @@ class Manager extends Task {
$config
);
File::put(APP_PATH.'config/session'.EXT, $config);
File::put($GLOBALS['APP_PATH'].'config/session'.EXT, $config);
echo PHP_EOL;