1 2 #ifdef HAVE_CONFIG_H 3 #include "config.h" 4 #endif 5 6 #include "php.h" 7 #include "php_psr.h" 8 #include "psr_event_dispatcher.h" 9 10 #if PHP_VERSION_ID >= 70200 11 /* {{{ Psr\EventDispatcher\EventDispatcherInterface */ 12 13 PHP_PSR_API zend_class_entry * PsrEventDispatcherEventDispatcherInterface_ce_ptr; 14 15 static zend_function_entry PsrEventDispatcherEventDispatcherInterface_methods[] = { 16 PHP_PSR_ABSTRACT_ME(PsrEventDispatcherEventDispatcherInterface, dispatch) 17 PHP_FE_END 18 }; 19 php_psr_register_PsrEventDispatcherEventDispatcherInterface(INIT_FUNC_ARGS)20static zend_always_inline void php_psr_register_PsrEventDispatcherEventDispatcherInterface(INIT_FUNC_ARGS) 21 { 22 zend_class_entry ce; 23 INIT_CLASS_ENTRY(ce, "Psr\\EventDispatcher\\EventDispatcherInterface", PsrEventDispatcherEventDispatcherInterface_methods); 24 PsrEventDispatcherEventDispatcherInterface_ce_ptr = zend_register_internal_interface(&ce); 25 } 26 27 /* }}} Psr\EventDispatcher\EventDispatcherInterface */ 28 /* {{{ Psr\EventDispatcher\ListenerProviderInterface */ 29 30 PHP_PSR_API zend_class_entry * PsrEventDispatcherListenerProviderInterface_ce_ptr; 31 32 static zend_function_entry PsrEventDispatcherListenerProviderInterface_methods[] = { 33 PHP_PSR_ABSTRACT_ME(PsrEventDispatcherListenerProviderInterface, getListenersForEvent) 34 PHP_FE_END 35 }; 36 php_psr_register_PsrEventDispatcherListenerProviderInterface(INIT_FUNC_ARGS)37static zend_always_inline void php_psr_register_PsrEventDispatcherListenerProviderInterface(INIT_FUNC_ARGS) 38 { 39 zend_class_entry ce; 40 INIT_CLASS_ENTRY(ce, "Psr\\EventDispatcher\\ListenerProviderInterface", PsrEventDispatcherListenerProviderInterface_methods); 41 PsrEventDispatcherListenerProviderInterface_ce_ptr = zend_register_internal_interface(&ce); 42 } 43 44 /* }}} Psr\EventDispatcher\ListenerProviderInterface */ 45 /* {{{ Psr\EventDispatcher\StoppableEventInterface */ 46 47 PHP_PSR_API zend_class_entry * PsrEventDispatcherStoppableEventInterface_ce_ptr; 48 49 static zend_function_entry PsrEventDispatcherStoppableEventInterface_methods[] = { 50 PHP_PSR_ABSTRACT_ME(PsrEventDispatcherStoppableEventInterface, isPropagationStopped) 51 PHP_FE_END 52 }; 53 php_psr_register_PsrEventDispatcherStoppableEventInterface(INIT_FUNC_ARGS)54static zend_always_inline void php_psr_register_PsrEventDispatcherStoppableEventInterface(INIT_FUNC_ARGS) 55 { 56 zend_class_entry ce; 57 INIT_CLASS_ENTRY(ce, "Psr\\EventDispatcher\\StoppableEventInterface", PsrEventDispatcherStoppableEventInterface_methods); 58 PsrEventDispatcherStoppableEventInterface_ce_ptr = zend_register_internal_interface(&ce); 59 } 60 61 /* }}} Psr\EventDispatcher\StoppableEventInterface */ 62 #endif 63 64 /* {{{ PHP_MINIT_FUNCTION */ PHP_MINIT_FUNCTION(psr_event_dispatcher)65PHP_MINIT_FUNCTION(psr_event_dispatcher) 66 { 67 #if PHP_VERSION_ID >= 70200 68 php_psr_register_PsrEventDispatcherEventDispatcherInterface(INIT_FUNC_ARGS_PASSTHRU); 69 php_psr_register_PsrEventDispatcherListenerProviderInterface(INIT_FUNC_ARGS_PASSTHRU); 70 php_psr_register_PsrEventDispatcherStoppableEventInterface(INIT_FUNC_ARGS_PASSTHRU); 71 #endif 72 73 return SUCCESS; 74 } 75 /* }}} */ 76 77 /* 78 * Local variables: 79 * tab-width: 4 80 * c-basic-offset: 4 81 * End: 82 * vim600: fdm=marker 83 * vim: et sw=4 ts=4 84 */ 85