Files
Grav/system/src/Grav/Events/PluginsLoadedEvent.php
2020-01-21 10:08:02 +02:00

53 lines
1.0 KiB
PHP

<?php
/**
* @package Grav\Events
*
* @copyright Copyright (C) 2015 - 2020 Trilby Media, LLC. All rights reserved.
* @license MIT License; see LICENSE file for details.
*/
namespace Grav\Events;
use Grav\Common\Grav;
use Grav\Common\Plugins;
/**
* Plugins Loaded Event
*
* This event is called from InitializeProcessor.
*
* This is the first event plugin can see. Please avoid using this event if possible.
*
* @property Grav $grav Grav container.
* @property Plugins $plugins Plugins instance.
*/
class PluginsLoadedEvent
{
/** @var Grav */
public $grav;
/** @var Plugins */
public $plugins;
/**
* PluginsLoadedEvent constructor.
* @param Grav $grav
* @param Plugins $plugins
*/
public function __construct(Grav $grav, Plugins $plugins)
{
$this->grav = $grav;
$this->plugins = $plugins;
}
/**
* @return array
*/
public function __debugInfo(): array
{
return [
'plugins' => $this->plugins
];
}
}