Added check for application key in session class.

This commit is contained in:
Taylor Otwell
2011-11-04 08:34:35 -05:00
parent 9fd503f5b6
commit e89fd04ab7

View File

@@ -4,6 +4,11 @@ use Closure;
use Laravel\Session\Drivers\Driver;
use Laravel\Session\Drivers\Sweeper;
if (Config::$items['application']['key'] === '')
{
throw new \Exception("An application key is required to use sessions.");
}
class Session {
/**