1
2 #ifdef HAVE_CONFIG_H
3 #include "config.h"
4 #endif
5
6 #include "php.h"
7 #include "php_ini.h"
8 #include "ext/standard/info.h"
9 #include "ext/spl/spl_exceptions.h"
10 #include "zend_API.h"
11 #include "zend_interfaces.h"
12
13 #include "php_psr.h"
14 #include "psr_simple_cache.h"
15
16 /* {{{ CacheException ------------------------------------------------------- */
17
18 PHP_PSR_API zend_class_entry * PsrSimpleCacheCacheException_ce_ptr;
19
php_psr_register_PsrSimpleCacheCacheException(INIT_FUNC_ARGS)20 static zend_always_inline void php_psr_register_PsrSimpleCacheCacheException(INIT_FUNC_ARGS)
21 {
22 zend_class_entry ce;
23 INIT_CLASS_ENTRY(ce, "Psr\\SimpleCache\\CacheException", NULL);
24 PsrSimpleCacheCacheException_ce_ptr = zend_register_internal_interface(&ce);
25 }
26
27 /* }}} ---------------------------------------------------------------------- */
28 /* {{{ CacheInterface ------------------------------------------------------- */
29
30 PHP_PSR_API zend_class_entry * PsrSimpleCacheCacheInterface_ce_ptr;
31
32 static zend_function_entry PsrSimpleCacheCacheInterface_methods[] = {
33 PHP_PSR_ABSTRACT_ME(PsrSimpleCacheCacheInterface, get)
34 PHP_PSR_ABSTRACT_ME(PsrSimpleCacheCacheInterface, set)
35 PHP_PSR_ABSTRACT_ME(PsrSimpleCacheCacheInterface, delete)
36 PHP_PSR_ABSTRACT_ME(PsrSimpleCacheCacheInterface, clear)
37 PHP_PSR_ABSTRACT_ME(PsrSimpleCacheCacheInterface, getMultiple)
38 PHP_PSR_ABSTRACT_ME(PsrSimpleCacheCacheInterface, setMultiple)
39 PHP_PSR_ABSTRACT_ME(PsrSimpleCacheCacheInterface, deleteMultiple)
40 PHP_PSR_ABSTRACT_ME(PsrSimpleCacheCacheInterface, has)
41 PHP_FE_END
42 };
43
php_psr_register_PsrSimpleCacheCacheInterface(INIT_FUNC_ARGS)44 static zend_always_inline void php_psr_register_PsrSimpleCacheCacheInterface(INIT_FUNC_ARGS)
45 {
46 zend_class_entry ce;
47 INIT_CLASS_ENTRY(ce, "Psr\\SimpleCache\\CacheInterface", PsrSimpleCacheCacheInterface_methods);
48 PsrSimpleCacheCacheInterface_ce_ptr = zend_register_internal_interface(&ce);
49 }
50
51 /* }}} ---------------------------------------------------------------------- */
52 /* {{{ InvalidArgumentException --------------------------------------------- */
53
54 PHP_PSR_API zend_class_entry * PsrSimpleCacheInvalidArgumentException_ce_ptr;
55
php_psr_register_PsrSimpleCacheInvalidArgumentException(INIT_FUNC_ARGS)56 static zend_always_inline void php_psr_register_PsrSimpleCacheInvalidArgumentException(INIT_FUNC_ARGS)
57 {
58 zend_class_entry ce;
59 INIT_CLASS_ENTRY(ce, "Psr\\SimpleCache\\InvalidArgumentException", NULL);
60 PsrSimpleCacheInvalidArgumentException_ce_ptr = zend_register_internal_interface(&ce);
61 zend_class_implements(PsrSimpleCacheInvalidArgumentException_ce_ptr, 1, PsrSimpleCacheCacheException_ce_ptr);
62 }
63
64 /* }}} ---------------------------------------------------------------------- */
65
66 /* {{{ PHP_MINIT_FUNCTION */
PHP_MINIT_FUNCTION(psr_simple_cache)67 PHP_MINIT_FUNCTION(psr_simple_cache)
68 {
69 php_psr_register_PsrSimpleCacheCacheException(INIT_FUNC_ARGS_PASSTHRU);
70 php_psr_register_PsrSimpleCacheCacheInterface(INIT_FUNC_ARGS_PASSTHRU);
71 php_psr_register_PsrSimpleCacheInvalidArgumentException(INIT_FUNC_ARGS_PASSTHRU);
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