forked from joomla/joomla-cms
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathConfigurableSubscriberInterface.php
More file actions
37 lines (32 loc) · 1.05 KB
/
Copy pathConfigurableSubscriberInterface.php
File metadata and controls
37 lines (32 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
/**
* Joomla! Content Management System
*
* @copyright (C) 2024 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
namespace Joomla\CMS\Event;
use Joomla\Event\DispatcherInterface;
// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
// phpcs:enable PSR1.Files.SideEffects
/**
* Interface for configurable event subscriber.
*
* @since __DEPLOY_VERSION__
*/
interface ConfigurableSubscriberInterface
{
/**
* Method allows to set up custom event listeners, wich is not possible to set up with generic SubscriberInterface
* (such as LazyServiceEventListener, private listeners etc.).
* And/or set the listeners only when specific environment requirement are meets (such as the app client id).
*
* @param \Joomla\Event\DispatcherInterface $dispatcher The dispatcher instance.
*
* @return void
*
* @since __DEPLOY_VERSION__
*/
public function configureListeners(DispatcherInterface $dispatcher): void;
}