Skip to content

Commit 73c0ed0

Browse files
committed
up
1 parent 09d7444 commit 73c0ed0

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

src/EventSubscriberInterface.php

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?php
2+
/**
3+
* Created by PhpStorm.
4+
* User: inhere
5+
* Date: 2017-12-14
6+
* Time: 9:55
7+
*/
8+
9+
namespace Inhere\Event;
10+
11+
/**
12+
* Class EventSubscriberInterface - 多个相关的事件的监听器
13+
* @package Inhere\Event
14+
*/
15+
interface EventSubscriberInterface
16+
{
17+
/**
18+
* 配置事件与对应的处理方法
19+
* @return array
20+
*/
21+
public static function getSubscribedEvents(): array;
22+
// {
23+
// return array(
24+
// KernelEvents::CONTROLLER => array('onKernelController', -128),
25+
// KernelEvents::VIEW => 'onKernelView',
26+
// );
27+
// }
28+
}

src/HandlerInterface.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
namespace Inhere\Event;
1010

1111
/**
12-
* Interface ListenerInterface
12+
* Interface HandlerInterface - 单个事件的监听处理器
1313
* @package Inhere\Event
1414
*/
1515
interface HandlerInterface

0 commit comments

Comments
 (0)