mirror of
https://github.com/getgrav/grav.git
synced 2026-09-06 03:09:22 +02:00
53 lines
1.0 KiB
PHP
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
|
|
];
|
|
}
|
|
}
|