tweaking key setting.
This commit is contained in:
parent
82315f31d5
commit
6e83add76f
|
@ -64,18 +64,6 @@
|
||||||
$_SERVER['LARAVEL_ENV'] = $_SERVER['CLI']['ENV'];
|
$_SERVER['LARAVEL_ENV'] = $_SERVER['CLI']['ENV'];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Call the bootstrap Closure that was defined in the start.php
|
|
||||||
* file for the framework. This allows events and more to be
|
|
||||||
* registered extremely early in the life cycle.
|
|
||||||
*/
|
|
||||||
if (isset($bootstrap))
|
|
||||||
{
|
|
||||||
call_user_func($bootstrap);
|
|
||||||
|
|
||||||
unset($bootstrap);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Register all of the core class aliases. These aliases provide a
|
* Register all of the core class aliases. These aliases provide a
|
||||||
* convenient way of working with the Laravel core classes without
|
* convenient way of working with the Laravel core classes without
|
||||||
|
|
|
@ -57,9 +57,7 @@
|
||||||
* string for the developer. This provides the developer with
|
* string for the developer. This provides the developer with
|
||||||
* a zero configuration install process.
|
* a zero configuration install process.
|
||||||
*/
|
*/
|
||||||
$key = Config::get('application.key');
|
if (Config::get('application.key') == '')
|
||||||
|
|
||||||
if ($key == '' and Config::get('key.auto'))
|
|
||||||
{
|
{
|
||||||
ob_start() and with(new CLI\Tasks\Key)->generate();
|
ob_start() and with(new CLI\Tasks\Key)->generate();
|
||||||
|
|
||||||
|
|
|
@ -58,14 +58,6 @@
|
||||||
$paths['public'] = 'public';
|
$paths['public'] = 'public';
|
||||||
}
|
}
|
||||||
|
|
||||||
// --------------------------------------------------------------
|
|
||||||
// Define a bootstrap Closure that runs on core load.
|
|
||||||
// --------------------------------------------------------------
|
|
||||||
$bootstrap = function()
|
|
||||||
{
|
|
||||||
Laravel\Config::set('key.auto', true);
|
|
||||||
};
|
|
||||||
|
|
||||||
// --------------------------------------------------------------
|
// --------------------------------------------------------------
|
||||||
// Define each constant if it hasn't been defined.
|
// Define each constant if it hasn't been defined.
|
||||||
// --------------------------------------------------------------
|
// --------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue