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
1 changed files with 5 additions and 0 deletions

View File

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