set the application key when creating the session table.
This commit is contained in:
parent
8f07192306
commit
59df5f3c6d
|
@ -21,6 +21,13 @@ public function install($arguments = array())
|
||||||
{
|
{
|
||||||
$migrator = IoC::resolve('task: migrate');
|
$migrator = IoC::resolve('task: migrate');
|
||||||
|
|
||||||
|
$key = IoC::resolve('task: key');
|
||||||
|
|
||||||
|
// Since sessions can't work without an application key, we will go
|
||||||
|
// ahead and set the key if one has not already been set for the
|
||||||
|
// application so the developer doesn't need to set it.
|
||||||
|
$key->generate();
|
||||||
|
|
||||||
// To create the session table, we will actually create a database
|
// To create the session table, we will actually create a database
|
||||||
// migration and then run it. This allows the application to stay
|
// migration and then run it. This allows the application to stay
|
||||||
// portable through migrations while still having a session table
|
// portable through migrations while still having a session table
|
||||||
|
|
Loading…
Reference in New Issue