| 1 |
<?php |
| 2 |
/* |
| 3 |
* This file is part of the ManageWP Worker plugin. |
| 4 |
* |
| 5 |
* (c) ManageWP LLC <contact@managewp.com> |
| 6 |
* |
| 7 |
* For the full copyright and license information, please view the LICENSE |
| 8 |
* file that was distributed with this source code. |
| 9 |
*/ |
| 10 |
|
| 11 |
interface MWP_ServiceContainer_Interface |
| 12 |
{ |
| 13 |
/** |
| 14 |
* @param array $parameters |
| 15 |
*/ |
| 16 |
public function __construct(array $parameters = array()); |
| 17 |
|
| 18 |
/** |
| 19 |
* @param string $name |
| 20 |
* |
| 21 |
* @return mixed |
| 22 |
* |
| 23 |
* @throws InvalidArgumentException If the parameter does not exist. |
| 24 |
*/ |
| 25 |
public function getParameter($name); |
| 26 |
|
| 27 |
/** |
| 28 |
* Set a parameter at runtime. Does not get saved permanently, instead it's only available on a per-request basis. |
| 29 |
* |
| 30 |
* @param string $name |
| 31 |
* @param mixed $value |
| 32 |
*/ |
| 33 |
public function setParameter($name, $value); |
| 34 |
|
| 35 |
/** |
| 36 |
* @return MWP_WordPress_Context |
| 37 |
*/ |
| 38 |
public function getWordPressContext(); |
| 39 |
|
| 40 |
/** |
| 41 |
* @return Symfony_EventDispatcher_EventDispatcherInterface |
| 42 |
*/ |
| 43 |
public function getEventDispatcher(); |
| 44 |
|
| 45 |
/** |
| 46 |
* @return MWP_Worker_RequestStack |
| 47 |
*/ |
| 48 |
public function getRequestStack(); |
| 49 |
|
| 50 |
/** |
| 51 |
* @return MWP_Action_Registry |
| 52 |
*/ |
| 53 |
public function getActionRegistry(); |
| 54 |
|
| 55 |
/** |
| 56 |
* @return MWP_WordPress_Query_User |
| 57 |
*/ |
| 58 |
public function getUserQuery(); |
| 59 |
|
| 60 |
/** |
| 61 |
* @return MWP_WordPress_Query_Post |
| 62 |
*/ |
| 63 |
public function getPostQuery(); |
| 64 |
|
| 65 |
/** |
| 66 |
* @return MWP_WordPress_Query_Comment |
| 67 |
*/ |
| 68 |
public function getCommentQuery(); |
| 69 |
|
| 70 |
/** |
| 71 |
* @return MWP_WordPress_Provider_Plugin |
| 72 |
*/ |
| 73 |
public function getPluginProvider(); |
| 74 |
|
| 75 |
/** |
| 76 |
* @return MWP_WordPress_Provider_Theme |
| 77 |
*/ |
| 78 |
public function getThemeProvider(); |
| 79 |
|
| 80 |
/** |
| 81 |
* @return MWP_Worker_Brand |
| 82 |
*/ |
| 83 |
public function getBrand(); |
| 84 |
|
| 85 |
/** |
| 86 |
* @return MWP_Updater_AutoUpdateManager |
| 87 |
*/ |
| 88 |
public function getAutoUpdateManager(); |
| 89 |
|
| 90 |
/** |
| 91 |
* @return MWP_Updater_UpdateManager |
| 92 |
*/ |
| 93 |
public function getUpdateManager(); |
| 94 |
|
| 95 |
/** |
| 96 |
* @return MWP_Signer_Interface |
| 97 |
*/ |
| 98 |
public function getSigner(); |
| 99 |
|
| 100 |
/** |
| 101 |
* @return MWP_Signer_Interface |
| 102 |
*/ |
| 103 |
public function getSigner256(); |
| 104 |
|
| 105 |
/** |
| 106 |
* @return MWP_Crypter_Interface |
| 107 |
*/ |
| 108 |
public function getCrypter(); |
| 109 |
|
| 110 |
/** |
| 111 |
* @return MWP_Security_NonceManager |
| 112 |
*/ |
| 113 |
public function getNonceManager(); |
| 114 |
|
| 115 |
/** |
| 116 |
* @return MWP_Worker_Configuration |
| 117 |
*/ |
| 118 |
public function getConfiguration(); |
| 119 |
|
| 120 |
/** |
| 121 |
* @return Monolog_Logger |
| 122 |
*/ |
| 123 |
public function getLogger(); |
| 124 |
|
| 125 |
/** |
| 126 |
* @return MWP_Worker_ResponseCallback |
| 127 |
*/ |
| 128 |
public function getResponseCallback(); |
| 129 |
|
| 130 |
/** |
| 131 |
* @return Monolog_ErrorHandler |
| 132 |
*/ |
| 133 |
public function getErrorHandler(); |
| 134 |
|
| 135 |
/** |
| 136 |
* @return Symfony_Process_ExecutableFinder |
| 137 |
*/ |
| 138 |
public function getExecutableFinder(); |
| 139 |
|
| 140 |
/** |
| 141 |
* @return MWP_Extension_HitCounter |
| 142 |
*/ |
| 143 |
public function getHitCounter(); |
| 144 |
|
| 145 |
/** |
| 146 |
* @return MWP_Monolog_Handler_JsonMessageHandler |
| 147 |
*/ |
| 148 |
public function getJsonMessageHandler(); |
| 149 |
|
| 150 |
/** |
| 151 |
* @return Monolog_Logger |
| 152 |
*/ |
| 153 |
public function getErrorLogger(); |
| 154 |
|
| 155 |
/** |
| 156 |
* @return MWP_System_Environment |
| 157 |
*/ |
| 158 |
public function getSystemEnvironment(); |
| 159 |
|
| 160 |
/** |
| 161 |
* @return MWP_Updater_TraceableUpdaterSkin |
| 162 |
*/ |
| 163 |
public function getUpdaterSkin(); |
| 164 |
|
| 165 |
/** |
| 166 |
* @return MWP_WordPress_SessionStore |
| 167 |
*/ |
| 168 |
public function getSessionStore(); |
| 169 |
|
| 170 |
/** |
| 171 |
* @return MWP_Migration_Migration |
| 172 |
*/ |
| 173 |
public function getMigration(); |
| 174 |
|
| 175 |
/** |
| 176 |
* @return Gelf_Publisher |
| 177 |
*/ |
| 178 |
public function getGelfPublisher(); |
| 179 |
} |
| 180 |
|