@@ -12,21 +12,21 @@ |
||
12 | 12 | interface RequestDecoratorInterface |
13 | 13 | { |
14 | 14 | |
15 | - /** |
|
16 | - * converts a Request to a Response |
|
17 | - * can perform their logic either before or after the core application has run like so: |
|
18 | - * public function handle_request( EE_Request $request, EE_Response $response ) { |
|
19 | - * $this->request = $request; |
|
20 | - * $this->response = $response; |
|
21 | - * // logic performed BEFORE core app has run |
|
22 | - * $this->process_request_stack( $this->request, $this->response ); |
|
23 | - * // logic performed AFTER core app has run |
|
24 | - * return $response; |
|
25 | - * } |
|
26 | - * |
|
27 | - * @param RequestInterface $request |
|
28 | - * @param ResponseInterface $response |
|
29 | - * @return ResponseInterface |
|
30 | - */ |
|
31 | - public function handleRequest(RequestInterface $request, ResponseInterface $response); |
|
15 | + /** |
|
16 | + * converts a Request to a Response |
|
17 | + * can perform their logic either before or after the core application has run like so: |
|
18 | + * public function handle_request( EE_Request $request, EE_Response $response ) { |
|
19 | + * $this->request = $request; |
|
20 | + * $this->response = $response; |
|
21 | + * // logic performed BEFORE core app has run |
|
22 | + * $this->process_request_stack( $this->request, $this->response ); |
|
23 | + * // logic performed AFTER core app has run |
|
24 | + * return $response; |
|
25 | + * } |
|
26 | + * |
|
27 | + * @param RequestInterface $request |
|
28 | + * @param ResponseInterface $response |
|
29 | + * @return ResponseInterface |
|
30 | + */ |
|
31 | + public function handleRequest(RequestInterface $request, ResponseInterface $response); |
|
32 | 32 | } |
@@ -12,67 +12,67 @@ |
||
12 | 12 | interface ResponseInterface |
13 | 13 | { |
14 | 14 | |
15 | - /** |
|
16 | - * set_notice |
|
17 | - * |
|
18 | - * @access public |
|
19 | - * @param $key |
|
20 | - * @param $value |
|
21 | - * @return void |
|
22 | - */ |
|
23 | - public function setNotice($key, $value); |
|
15 | + /** |
|
16 | + * set_notice |
|
17 | + * |
|
18 | + * @access public |
|
19 | + * @param $key |
|
20 | + * @param $value |
|
21 | + * @return void |
|
22 | + */ |
|
23 | + public function setNotice($key, $value); |
|
24 | 24 | |
25 | - /** |
|
26 | - * get_notice |
|
27 | - * |
|
28 | - * @access public |
|
29 | - * @param $key |
|
30 | - * @return mixed |
|
31 | - */ |
|
32 | - public function getNotice($key); |
|
25 | + /** |
|
26 | + * get_notice |
|
27 | + * |
|
28 | + * @access public |
|
29 | + * @param $key |
|
30 | + * @return mixed |
|
31 | + */ |
|
32 | + public function getNotice($key); |
|
33 | 33 | |
34 | - /** |
|
35 | - * get_notices |
|
36 | - * |
|
37 | - * @access public |
|
38 | - * @return array |
|
39 | - */ |
|
40 | - public function getNotices(); |
|
34 | + /** |
|
35 | + * get_notices |
|
36 | + * |
|
37 | + * @access public |
|
38 | + * @return array |
|
39 | + */ |
|
40 | + public function getNotices(); |
|
41 | 41 | |
42 | - /** |
|
43 | - * add_output |
|
44 | - * |
|
45 | - * @access public |
|
46 | - * @param $string |
|
47 | - * @param bool $append |
|
48 | - */ |
|
49 | - public function addOutput($string, $append = true); |
|
42 | + /** |
|
43 | + * add_output |
|
44 | + * |
|
45 | + * @access public |
|
46 | + * @param $string |
|
47 | + * @param bool $append |
|
48 | + */ |
|
49 | + public function addOutput($string, $append = true); |
|
50 | 50 | |
51 | - /** |
|
52 | - * get_output |
|
53 | - * |
|
54 | - * @access public |
|
55 | - * @return string |
|
56 | - */ |
|
57 | - public function getOutput(); |
|
51 | + /** |
|
52 | + * get_output |
|
53 | + * |
|
54 | + * @access public |
|
55 | + * @return string |
|
56 | + */ |
|
57 | + public function getOutput(); |
|
58 | 58 | |
59 | - /** |
|
60 | - * @return boolean |
|
61 | - */ |
|
62 | - public function requestTerminated(); |
|
59 | + /** |
|
60 | + * @return boolean |
|
61 | + */ |
|
62 | + public function requestTerminated(); |
|
63 | 63 | |
64 | - /** |
|
65 | - * @param boolean $request_terminated |
|
66 | - */ |
|
67 | - public function terminateRequest($request_terminated = true); |
|
64 | + /** |
|
65 | + * @param boolean $request_terminated |
|
66 | + */ |
|
67 | + public function terminateRequest($request_terminated = true); |
|
68 | 68 | |
69 | - /** |
|
70 | - * @return boolean |
|
71 | - */ |
|
72 | - public function pluginDeactivated(); |
|
69 | + /** |
|
70 | + * @return boolean |
|
71 | + */ |
|
72 | + public function pluginDeactivated(); |
|
73 | 73 | |
74 | - /** |
|
75 | - * sets $deactivate_plugin to true |
|
76 | - */ |
|
77 | - public function deactivatePlugin(); |
|
74 | + /** |
|
75 | + * sets $deactivate_plugin to true |
|
76 | + */ |
|
77 | + public function deactivatePlugin(); |
|
78 | 78 | } |
@@ -11,8 +11,8 @@ |
||
11 | 11 | interface CommandRequiresCapCheckInterface |
12 | 12 | { |
13 | 13 | |
14 | - /** |
|
15 | - * @return \EventEspresso\core\domain\services\capabilities\CapCheck |
|
16 | - */ |
|
17 | - public function getCapCheck(); |
|
14 | + /** |
|
15 | + * @return \EventEspresso\core\domain\services\capabilities\CapCheck |
|
16 | + */ |
|
17 | + public function getCapCheck(); |
|
18 | 18 | } |
@@ -9,13 +9,13 @@ |
||
9 | 9 | interface CommandFactoryInterface |
10 | 10 | { |
11 | 11 | |
12 | - /** |
|
13 | - * @param string $command_fqcn |
|
14 | - * @param array $arguments |
|
15 | - * @return mixed |
|
16 | - * @throws InvalidArgumentException |
|
17 | - * @throws InvalidDataTypeException |
|
18 | - * @throws InvalidInterfaceException |
|
19 | - */ |
|
20 | - public function getNew($command_fqcn, $arguments = array()); |
|
12 | + /** |
|
13 | + * @param string $command_fqcn |
|
14 | + * @param array $arguments |
|
15 | + * @return mixed |
|
16 | + * @throws InvalidArgumentException |
|
17 | + * @throws InvalidDataTypeException |
|
18 | + * @throws InvalidInterfaceException |
|
19 | + */ |
|
20 | + public function getNew($command_fqcn, $arguments = array()); |
|
21 | 21 | } |
@@ -9,14 +9,14 @@ |
||
9 | 9 | interface CommandBusInterface |
10 | 10 | { |
11 | 11 | |
12 | - /** |
|
13 | - * @return CommandHandlerManagerInterface |
|
14 | - */ |
|
15 | - public function getCommandHandlerManager(); |
|
12 | + /** |
|
13 | + * @return CommandHandlerManagerInterface |
|
14 | + */ |
|
15 | + public function getCommandHandlerManager(); |
|
16 | 16 | |
17 | - /** |
|
18 | - * @param \EventEspresso\core\services\commands\CommandInterface $command |
|
19 | - * @return mixed |
|
20 | - */ |
|
21 | - public function execute($command); |
|
17 | + /** |
|
18 | + * @param \EventEspresso\core\services\commands\CommandInterface $command |
|
19 | + * @return mixed |
|
20 | + */ |
|
21 | + public function execute($command); |
|
22 | 22 | } |
@@ -12,10 +12,10 @@ |
||
12 | 12 | interface CommandBusMiddlewareInterface |
13 | 13 | { |
14 | 14 | |
15 | - /** |
|
16 | - * @param CommandInterface $command |
|
17 | - * @param Closure $next |
|
18 | - * @return mixed |
|
19 | - */ |
|
20 | - public function handle(CommandInterface $command, Closure $next); |
|
15 | + /** |
|
16 | + * @param CommandInterface $command |
|
17 | + * @param Closure $next |
|
18 | + * @return mixed |
|
19 | + */ |
|
20 | + public function handle(CommandInterface $command, Closure $next); |
|
21 | 21 | } |
@@ -14,41 +14,41 @@ |
||
14 | 14 | interface CacheManagerInterface |
15 | 15 | { |
16 | 16 | |
17 | - /** |
|
18 | - * returns a string that will be prepended to all cache identifiers |
|
19 | - * |
|
20 | - * @return string |
|
21 | - */ |
|
22 | - public function cachePrefix(); |
|
23 | - |
|
24 | - |
|
25 | - |
|
26 | - /** |
|
27 | - * @param string $id_prefix [required] Prepended to all cache IDs. Can be helpful in finding specific cache types. |
|
28 | - * May also be helpful to include an additional specific identifier, |
|
29 | - * such as a post ID as part of the $id_prefix so that individual caches |
|
30 | - * can be found and/or cleared. ex: "venue-28", or "shortcode-156". |
|
31 | - * BasicCacheManager::CACHE_PREFIX will also be prepended to the cache id. |
|
32 | - * @param string $cache_id [required] Additional identifying details that make this cache unique. |
|
33 | - * It is advisable to use some of the actual data |
|
34 | - * that is used to generate the content being cached, |
|
35 | - * in order to guarantee that the cache id is unique for that content. |
|
36 | - * The cache id will be md5'd before usage to make it more db friendly, |
|
37 | - * and the entire cache id string will be truncated to 190 characters. |
|
38 | - * @param Closure $callback [required] since the point of caching is to avoid generating content when not |
|
39 | - * necessary, |
|
40 | - * we wrap our content creation in a Closure so that it is not executed until needed. |
|
41 | - * @param int $expiration |
|
42 | - * @return Closure|mixed |
|
43 | - */ |
|
44 | - public function get($id_prefix, $cache_id, Closure $callback, $expiration = HOUR_IN_SECONDS); |
|
45 | - |
|
46 | - |
|
47 | - |
|
48 | - /** |
|
49 | - * @param array|string $cache_id [required] Could be an ID prefix affecting many caches |
|
50 | - * or a specific ID targeting a single cache item |
|
51 | - * @return void |
|
52 | - */ |
|
53 | - public function clear($cache_id); |
|
17 | + /** |
|
18 | + * returns a string that will be prepended to all cache identifiers |
|
19 | + * |
|
20 | + * @return string |
|
21 | + */ |
|
22 | + public function cachePrefix(); |
|
23 | + |
|
24 | + |
|
25 | + |
|
26 | + /** |
|
27 | + * @param string $id_prefix [required] Prepended to all cache IDs. Can be helpful in finding specific cache types. |
|
28 | + * May also be helpful to include an additional specific identifier, |
|
29 | + * such as a post ID as part of the $id_prefix so that individual caches |
|
30 | + * can be found and/or cleared. ex: "venue-28", or "shortcode-156". |
|
31 | + * BasicCacheManager::CACHE_PREFIX will also be prepended to the cache id. |
|
32 | + * @param string $cache_id [required] Additional identifying details that make this cache unique. |
|
33 | + * It is advisable to use some of the actual data |
|
34 | + * that is used to generate the content being cached, |
|
35 | + * in order to guarantee that the cache id is unique for that content. |
|
36 | + * The cache id will be md5'd before usage to make it more db friendly, |
|
37 | + * and the entire cache id string will be truncated to 190 characters. |
|
38 | + * @param Closure $callback [required] since the point of caching is to avoid generating content when not |
|
39 | + * necessary, |
|
40 | + * we wrap our content creation in a Closure so that it is not executed until needed. |
|
41 | + * @param int $expiration |
|
42 | + * @return Closure|mixed |
|
43 | + */ |
|
44 | + public function get($id_prefix, $cache_id, Closure $callback, $expiration = HOUR_IN_SECONDS); |
|
45 | + |
|
46 | + |
|
47 | + |
|
48 | + /** |
|
49 | + * @param array|string $cache_id [required] Could be an ID prefix affecting many caches |
|
50 | + * or a specific ID targeting a single cache item |
|
51 | + * @return void |
|
52 | + */ |
|
53 | + public function clear($cache_id); |
|
54 | 54 | } |
@@ -11,50 +11,50 @@ |
||
11 | 11 | interface CacheStorageInterface |
12 | 12 | { |
13 | 13 | |
14 | - /** |
|
15 | - * Saves supplied data |
|
16 | - * if an expiration is set, then it automatically schedules the cache for deletion |
|
17 | - * |
|
18 | - * @param string $key [required] |
|
19 | - * @param string $data [required] |
|
20 | - * @param int $expiration number of seconds until the cache expires |
|
21 | - * @return bool |
|
22 | - */ |
|
23 | - public function add($key, $data, $expiration = 0); |
|
24 | - |
|
25 | - |
|
26 | - |
|
27 | - /** |
|
28 | - * retrieves cache data |
|
29 | - * should automatically trigger early cache refresh for standard cache items |
|
30 | - * in order to avoid cache stampedes on busy sites. |
|
31 | - * For non-standard cache items like PHP Session data where early refreshing is not wanted, |
|
32 | - * the $standard_cache parameter should be set to false when retrieving data |
|
33 | - * |
|
34 | - * @param string $key [required] |
|
35 | - * @param bool $standard_cache |
|
36 | - * @return mixed |
|
37 | - */ |
|
38 | - public function get($key, $standard_cache = true); |
|
39 | - |
|
40 | - |
|
41 | - |
|
42 | - /** |
|
43 | - * delete a single cached item |
|
44 | - * |
|
45 | - * @param string $key [required] full or partial cache key to be deleted |
|
46 | - */ |
|
47 | - public function delete($key); |
|
48 | - |
|
49 | - |
|
50 | - |
|
51 | - /** |
|
52 | - * delete multiple cached items |
|
53 | - * |
|
54 | - * @param array $keys [required] array of full or partial cache keys to be deleted |
|
55 | - * @param bool $force_delete [optional] if true, then will not check incoming keys against those being tracked |
|
56 | - * and proceed directly to deleting those entries from the cache storage |
|
57 | - * @return |
|
58 | - */ |
|
59 | - public function deleteMany(array $keys, $force_delete = false); |
|
14 | + /** |
|
15 | + * Saves supplied data |
|
16 | + * if an expiration is set, then it automatically schedules the cache for deletion |
|
17 | + * |
|
18 | + * @param string $key [required] |
|
19 | + * @param string $data [required] |
|
20 | + * @param int $expiration number of seconds until the cache expires |
|
21 | + * @return bool |
|
22 | + */ |
|
23 | + public function add($key, $data, $expiration = 0); |
|
24 | + |
|
25 | + |
|
26 | + |
|
27 | + /** |
|
28 | + * retrieves cache data |
|
29 | + * should automatically trigger early cache refresh for standard cache items |
|
30 | + * in order to avoid cache stampedes on busy sites. |
|
31 | + * For non-standard cache items like PHP Session data where early refreshing is not wanted, |
|
32 | + * the $standard_cache parameter should be set to false when retrieving data |
|
33 | + * |
|
34 | + * @param string $key [required] |
|
35 | + * @param bool $standard_cache |
|
36 | + * @return mixed |
|
37 | + */ |
|
38 | + public function get($key, $standard_cache = true); |
|
39 | + |
|
40 | + |
|
41 | + |
|
42 | + /** |
|
43 | + * delete a single cached item |
|
44 | + * |
|
45 | + * @param string $key [required] full or partial cache key to be deleted |
|
46 | + */ |
|
47 | + public function delete($key); |
|
48 | + |
|
49 | + |
|
50 | + |
|
51 | + /** |
|
52 | + * delete multiple cached items |
|
53 | + * |
|
54 | + * @param array $keys [required] array of full or partial cache keys to be deleted |
|
55 | + * @param bool $force_delete [optional] if true, then will not check incoming keys against those being tracked |
|
56 | + * and proceed directly to deleting those entries from the cache storage |
|
57 | + * @return |
|
58 | + */ |
|
59 | + public function deleteMany(array $keys, $force_delete = false); |
|
60 | 60 | } |
@@ -12,21 +12,21 @@ |
||
12 | 12 | interface FormatterInterface |
13 | 13 | { |
14 | 14 | |
15 | - /** |
|
16 | - * Applies the formatting to all items in the array |
|
17 | - * |
|
18 | - * @param array $input accepts a multi-dimensional array, but all "leaf nodes" are easily cast to a string |
|
19 | - * @return array |
|
20 | - */ |
|
21 | - public function formatArray($input); |
|
15 | + /** |
|
16 | + * Applies the formatting to all items in the array |
|
17 | + * |
|
18 | + * @param array $input accepts a multi-dimensional array, but all "leaf nodes" are easily cast to a string |
|
19 | + * @return array |
|
20 | + */ |
|
21 | + public function formatArray($input); |
|
22 | 22 | |
23 | 23 | |
24 | 24 | |
25 | - /** |
|
26 | - * Formats the string |
|
27 | - * |
|
28 | - * @param string|int|float $input anything easily cast into a string |
|
29 | - * @return string |
|
30 | - */ |
|
31 | - public function format($input); |
|
25 | + /** |
|
26 | + * Formats the string |
|
27 | + * |
|
28 | + * @param string|int|float $input anything easily cast into a string |
|
29 | + * @return string |
|
30 | + */ |
|
31 | + public function format($input); |
|
32 | 32 | } |