set application key by default.

This commit is contained in:
Taylor Otwell
2012-02-22 11:00:02 -06:00
parent 257d917e19
commit 86fa595317
5 changed files with 4 additions and 21 deletions

View File

@@ -52,21 +52,6 @@ error_reporting(-1);
ini_set('display_errors', Config::get('error.display'));
/**
* Determine if we need to set the application key to a very random
* string so we can provide a zero configuration installation but
* still ensure that the key is set to something random. It is
* possible to disable this feature.
*/
$auto_key = Config::get('application.auto_key');
if ($auto_key and Config::get('application.key') == '')
{
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