mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-24 12:03:21 +01:00
[ticket/12782] Add doc block
PHPBB3-12782
This commit is contained in:
parent
eb13b4ae28
commit
539eadc450
@ -31,6 +31,9 @@ use Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher;
|
|||||||
*/
|
*/
|
||||||
class dispatcher extends ContainerAwareEventDispatcher implements dispatcher_interface
|
class dispatcher extends ContainerAwareEventDispatcher implements dispatcher_interface
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*/
|
||||||
public function trigger_event($eventName, $data = array())
|
public function trigger_event($eventName, $data = array())
|
||||||
{
|
{
|
||||||
$event = new \phpbb\event\data($data);
|
$event = new \phpbb\event\data($data);
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
*
|
*
|
||||||
* This file is part of the phpBB Forum Software package.
|
* This file is part of the phpBB Forum Software package.
|
||||||
*
|
*
|
||||||
* @copyright (c) phpBB Limited
|
* @copyright (c) phpBB Limited <https://www.phpbb.com>
|
||||||
* @license GNU General Public License, version 2 (GPL-2.0)
|
* @license GNU General Public License, version 2 (GPL-2.0)
|
||||||
*
|
*
|
||||||
* For full copyright and license information, please see
|
* For full copyright and license information, please see
|
||||||
@ -29,5 +29,12 @@ namespace phpbb\event;
|
|||||||
*/
|
*/
|
||||||
interface dispatcher_interface extends \Symfony\Component\EventDispatcher\EventDispatcherInterface
|
interface dispatcher_interface extends \Symfony\Component\EventDispatcher\EventDispatcherInterface
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* Construct and dispatch an event
|
||||||
|
*
|
||||||
|
* @param string $eventName The event name
|
||||||
|
* @param array $data An array containing the variables sending with the event
|
||||||
|
* @return mixed
|
||||||
|
*/
|
||||||
public function trigger_event($eventName, $data = array());
|
public function trigger_event($eventName, $data = array());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user