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:
@@ -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');
|
||||
}
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user