From 1cf390206ea8dc24a2a4ba91dcb9bab721a2a63e Mon Sep 17 00:00:00 2001 From: Matias Griese Date: Mon, 10 Feb 2020 19:51:59 +0200 Subject: [PATCH] Regression: Fixed fatal error in `cli/plugin` command --- CHANGELOG.md | 1 + bin/plugin | 6 +----- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a32de0030..3818f22b2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ * Regression: Fixed bad method call in FlexDirectory::getAuthorizeRule() * Regression: Fixed fatal error in admin if the site has custom permissions in `onAdminRegisterPermissions` * Regression: Fixed flex user index with folder storage + * Regression: Fixed fatal error in `cli/plugin` command * Fixed `FlexObject::triggerEvent()` does not emit events [#2816](https://github.com/getgrav/grav/issues/2816) * Grav 1.7: Fixed saving Flex configuration with ignored values becoming null diff --git a/bin/plugin b/bin/plugin index 5ead831b9..e23ba26b7 100755 --- a/bin/plugin +++ b/bin/plugin @@ -2,7 +2,6 @@ init(); $grav['uri']->init(); $grav['users']; +/** @var \Grav\Common\Plugins $plugins */ $plugins = $grav['plugins']; $plugins->init(); -// Plugins Loaded Event -$event = new PluginsLoadedEvent($grav, $plugins); -$grav->dispatchEvent($event); - $grav['themes']->init(); $app = new Application('Grav Plugins Commands', GRAV_VERSION);