Skip to content

Commit 48307ce

Browse files
authored
Remove event dispatcher in compat plugin constructor (#45998)
1 parent 5d85d85 commit 48307ce

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

plugins/behaviour/compat6/src/Extension/Compat6.php

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
use Joomla\CMS\Event\Application\AfterInitialiseDocumentEvent;
1414
use Joomla\CMS\Plugin\CMSPlugin;
15-
use Joomla\Event\DispatcherInterface;
1615
use Joomla\Event\Priority;
1716
use Joomla\Event\SubscriberInterface;
1817

@@ -49,16 +48,15 @@ public static function getSubscribedEvents(): array
4948
/**
5049
* Constructor
5150
*
52-
* @param DispatcherInterface $dispatcher The event dispatcher
53-
* @param array $config An optional associative array of configuration settings.
54-
* Recognized key values include 'name', 'group', 'params', 'language'
55-
* (this list is not meant to be comprehensive).
51+
* @param array $config An optional associative array of configuration settings.
52+
* Recognized key values include 'name', 'group', 'params', 'language'
53+
* (this list is not meant to be comprehensive).
5654
*
5755
* @since 5.4.0
5856
*/
59-
public function __construct(DispatcherInterface $dispatcher, array $config = [])
57+
public function __construct(array $config = [])
6058
{
61-
parent::__construct($dispatcher, $config);
59+
parent::__construct($config);
6260

6361
/**
6462
* Normally we should never use the constructor to execute any logic which would

0 commit comments

Comments
 (0)