-
Notifications
You must be signed in to change notification settings - Fork 32
/
psr_event_dispatcher.c
79 lines (61 loc) · 2.36 KB
/
psr_event_dispatcher.c
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "php.h"
#include "php_psr.h"
#include "psr_event_dispatcher.h"
#include "psr_private.h"
#if PHP_VERSION_ID >= 70200
/* {{{ Psr\EventDispatcher\EventDispatcherInterface */
PHP_PSR_API zend_class_entry * PsrEventDispatcherEventDispatcherInterface_ce_ptr;
static zend_function_entry PsrEventDispatcherEventDispatcherInterface_methods[] = {
PHP_PSR_ABSTRACT_ME(EventDispatcher, EventDispatcherInterface, dispatch)
PHP_FE_END
};
static zend_always_inline void php_psr_register_PsrEventDispatcherEventDispatcherInterface(INIT_FUNC_ARGS)
{
PHP_PSR_REGISTER_INTERFACE(EventDispatcher, EventDispatcherInterface);
}
/* }}} Psr\EventDispatcher\EventDispatcherInterface */
/* {{{ Psr\EventDispatcher\ListenerProviderInterface */
PHP_PSR_API zend_class_entry * PsrEventDispatcherListenerProviderInterface_ce_ptr;
static zend_function_entry PsrEventDispatcherListenerProviderInterface_methods[] = {
PHP_PSR_ABSTRACT_ME(EventDispatcher, ListenerProviderInterface, getListenersForEvent)
PHP_FE_END
};
static zend_always_inline void php_psr_register_PsrEventDispatcherListenerProviderInterface(INIT_FUNC_ARGS)
{
PHP_PSR_REGISTER_INTERFACE(EventDispatcher, ListenerProviderInterface);
}
/* }}} Psr\EventDispatcher\ListenerProviderInterface */
/* {{{ Psr\EventDispatcher\StoppableEventInterface */
PHP_PSR_API zend_class_entry * PsrEventDispatcherStoppableEventInterface_ce_ptr;
static zend_function_entry PsrEventDispatcherStoppableEventInterface_methods[] = {
PHP_PSR_ABSTRACT_ME(EventDispatcher, StoppableEventInterface, isPropagationStopped)
PHP_FE_END
};
static zend_always_inline void php_psr_register_PsrEventDispatcherStoppableEventInterface(INIT_FUNC_ARGS)
{
PHP_PSR_REGISTER_INTERFACE(EventDispatcher, StoppableEventInterface);
}
/* }}} Psr\EventDispatcher\StoppableEventInterface */
#endif
/* {{{ PHP_MINIT_FUNCTION */
PHP_MINIT_FUNCTION(psr_event_dispatcher)
{
#if PHP_VERSION_ID >= 70200
php_psr_register_PsrEventDispatcherEventDispatcherInterface(INIT_FUNC_ARGS_PASSTHRU);
php_psr_register_PsrEventDispatcherListenerProviderInterface(INIT_FUNC_ARGS_PASSTHRU);
php_psr_register_PsrEventDispatcherStoppableEventInterface(INIT_FUNC_ARGS_PASSTHRU);
#endif
return SUCCESS;
}
/* }}} */
/*
* Local variables:
* tab-width: 4
* c-basic-offset: 4
* End:
* vim600: fdm=marker
* vim: et sw=4 ts=4
*/