This commit is contained in:
2023-01-03 19:00:16 +01:00
parent c7262233b2
commit faaab9c4d3
473 changed files with 3719 additions and 1292 deletions

View File

@@ -3,13 +3,14 @@
/**
* @package Grav\Common
*
* @copyright Copyright (c) 2015 - 2022 Trilby Media, LLC. All rights reserved.
* @copyright Copyright (c) 2015 - 2023 Trilby Media, LLC. All rights reserved.
* @license MIT License; see LICENSE file for details.
*/
namespace Grav\Common;
use Grav\Common\Form\FormFlash;
use Grav\Events\BeforeSessionStartEvent;
use Grav\Events\SessionStartEvent;
use Grav\Plugin\Form\Forms;
use JsonException;
@@ -177,6 +178,17 @@ class Session extends \Grav\Framework\Session\Session
return null;
}
/**
* @return void
*/
protected function onBeforeSessionStart(): void
{
$event = new BeforeSessionStartEvent($this);
$grav = Grav::instance();
$grav->dispatchEvent($event);
}
/**
* @return void
*/