added configurable automatic key generation.
This commit is contained in:
@@ -52,6 +52,20 @@ error_reporting(-1);
|
||||
|
||||
ini_set('display_errors', Config::get('error.display'));
|
||||
|
||||
/**
|
||||
* Determine if we need to set the application key to a random
|
||||
* string for the developer. This provides the developer with
|
||||
* a zero configuration install process.
|
||||
*/
|
||||
$key = Config::get('application.key');
|
||||
|
||||
if ($key == '' and Config::get('key.auto'))
|
||||
{
|
||||
ob_start() and with(new CLI\Tasks\Key)->generate();
|
||||
|
||||
ob_end_clean();
|
||||
}
|
||||
|
||||
/**
|
||||
* Even though "Magic Quotes" are deprecated in PHP 5.3, they may
|
||||
* still be enabled on the server. To account for this, we will
|
||||
|
||||
Reference in New Issue
Block a user