-
Notifications
You must be signed in to change notification settings - Fork 32
/
psr_http_server_middleware.c
43 lines (33 loc) · 1 KB
/
psr_http_server_middleware.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
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "php.h"
#include "php_psr.h"
#include "psr_http_server_middleware.h"
#include "psr_private.h"
/* {{{ MiddlewareInterface -------------------------------------------------- */
PHP_PSR_API zend_class_entry * PsrHttpServerMiddlewareInterface_ce_ptr;
static zend_function_entry PsrHttpServerMiddlewareInterface_methods[] = {
PHP_PSR_ABSTRACT_ME(HttpServer, MiddlewareInterface, process)
PHP_FE_END
};
static zend_always_inline void php_psr_register_PsrHttpServerMiddlewareInterface(INIT_FUNC_ARGS)
{
PHP_PSR_REGISTER_INTERFACE2(Http, Server, MiddlewareInterface);
}
/* }}} ---------------------------------------------------------------------- */
/* {{{ PHP_MINIT_FUNCTION */
PHP_MINIT_FUNCTION(psr_http_server_middleware)
{
php_psr_register_PsrHttpServerMiddlewareInterface(INIT_FUNC_ARGS_PASSTHRU);
return SUCCESS;
}
/* }}} */
/*
* Local variables:
* tab-width: 4
* c-basic-offset: 4
* End:
* vim600: fdm=marker
* vim: et sw=4 ts=4
*/