refactoring

This commit is contained in:
Taylor Otwell
2011-10-10 21:34:15 -05:00
parent d1c5aea26b
commit 6cb79e6676
22 changed files with 279 additions and 333 deletions

View File

@@ -1,10 +1,8 @@
<?php namespace Laravel\Security;
use Laravel\Config;
<?php namespace Laravel\Security; use Laravel\Config;
if (trim(Config::get('application.key')) === '')
{
throw new \Exception('The encryption class may not be used without an encryption key.');
throw new \Exception('The encryption class may not be used without an application key.');
}
class Crypter {