1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-08 22:26:46 +02:00

refactor(plugins): remove $flextype variable from plugins init method

This commit is contained in:
Awilum
2020-08-22 00:26:28 +03:00
parent c55aa464ee
commit 9227999b18
2 changed files with 3 additions and 3 deletions

View File

@@ -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');
}

View File

@@ -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