Allow plugins to trigger events
You MUST NOT trigger events of Pico's core through a plugin!
This commit is contained in:
parent
56b2ed6c7d
commit
5a9c02f7bf
@ -1382,6 +1382,7 @@ class Pico
|
|||||||
*
|
*
|
||||||
* Deprecated events (as used by plugins not implementing
|
* Deprecated events (as used by plugins not implementing
|
||||||
* {@link PicoPluginInterface}) are triggered by {@link PicoDeprecated}.
|
* {@link PicoPluginInterface}) are triggered by {@link PicoDeprecated}.
|
||||||
|
* You MUST NOT trigger events of Pico's core through a plugin!
|
||||||
*
|
*
|
||||||
* @see PicoPluginInterface
|
* @see PicoPluginInterface
|
||||||
* @see AbstractPicoPlugin
|
* @see AbstractPicoPlugin
|
||||||
@ -1390,7 +1391,7 @@ class Pico
|
|||||||
* @param array $params optional parameters to pass
|
* @param array $params optional parameters to pass
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
protected function triggerEvent($eventName, array $params = array())
|
public function triggerEvent($eventName, array $params = array())
|
||||||
{
|
{
|
||||||
if (!empty($this->plugins)) {
|
if (!empty($this->plugins)) {
|
||||||
foreach ($this->plugins as $plugin) {
|
foreach ($this->plugins as $plugin) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user