adding some view tests and fixing a few bugs.

This commit is contained in:
Taylor Otwell
2012-01-25 08:37:04 -06:00
parent c9eb7bdf35
commit 974ff302ef
3 changed files with 67 additions and 10 deletions

View File

@@ -1,10 +1,5 @@
<?php namespace Laravel;
if (Config::get('application.key') === '')
{
throw new \Exception("An application key is required to use sessions.");
}
class Session {
/**
@@ -29,6 +24,11 @@ class Session {
*/
public static function start($driver)
{
if (Config::get('application.key') === '')
{
throw new \Exception("An application key is required to use sessions.");
}
static::$instance = new Session\Payload(static::factory($driver));
}