From 9227999b18558e131f553e47a2273cdef11a3b0a Mon Sep 17 00:00:00 2001 From: Awilum Date: Sat, 22 Aug 2020 00:26:28 +0300 Subject: [PATCH] refactor(plugins): remove $flextype variable from plugins init method --- src/flextype/app/Foundation/Plugins.php | 4 ++-- src/flextype/bootstrap.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/flextype/app/Foundation/Plugins.php b/src/flextype/app/Foundation/Plugins.php index 525fb72e..b4dadb6f 100755 --- a/src/flextype/app/Foundation/Plugins.php +++ b/src/flextype/app/Foundation/Plugins.php @@ -64,7 +64,7 @@ class Plugins * * @access public */ - public function init($flextype) : void + public function init() : void { // Set empty plugins item $this->flextype->container('registry')->set('plugins', []); @@ -180,7 +180,7 @@ class Plugins $this->flextype->container('cache')->save($locale, $dictionary[$locale]); } - $this->includeEnabledPlugins($flextype); + $this->includeEnabledPlugins($this->flextype); $this->flextype->container('emitter')->emit('onPluginsInitialized'); } diff --git a/src/flextype/bootstrap.php b/src/flextype/bootstrap.php index cb94d366..f65fcef2 100755 --- a/src/flextype/bootstrap.php +++ b/src/flextype/bootstrap.php @@ -132,7 +132,7 @@ foreach ($entry_fields as $field_name => $field) { /** * Init plugins */ -$flextype->container('plugins')->init($flextype); +$flextype->container('plugins')->init(); /** * Enable lazy CORS