1 | <?php |
||
23 | abstract class Service |
||
24 | { |
||
25 | /** |
||
26 | * Symfony's URL Generator |
||
27 | * @var UrlGeneratorInterface; |
||
28 | */ |
||
29 | private static $generator; |
||
30 | |||
31 | /** |
||
32 | * Symfony's Request class |
||
33 | * @var Request |
||
34 | */ |
||
35 | private static $request; |
||
36 | |||
37 | /** |
||
38 | * Symfony's FormFactory |
||
39 | * @var FormFactory |
||
40 | */ |
||
41 | private static $formFactory; |
||
42 | |||
43 | /** |
||
44 | * The kernel's environment (prod, debug, profile or test) |
||
45 | * @var string |
||
46 | */ |
||
47 | private static $environment; |
||
48 | |||
49 | /** |
||
50 | * The model memory cache |
||
51 | * @var ModelCache |
||
52 | */ |
||
53 | private static $modelCache; |
||
54 | |||
55 | /** |
||
56 | * The AppKernel's container |
||
57 | * @var AppKernel |
||
58 | */ |
||
59 | private static $kernel; |
||
60 | |||
61 | private static $qbConnection; |
||
62 | 23 | private static $qbConfig; |
|
63 | |||
64 | 23 | public static function setQueryBuilderConfig(array $config) |
|
68 | |||
69 | public static function getQueryBuilderConnection() |
||
77 | |||
78 | 23 | /** |
|
79 | * @param Request $request |
||
80 | */ |
||
81 | public static function setRequest($request) |
||
85 | |||
86 | 1 | /** |
|
87 | * @return Request |
||
88 | 1 | */ |
|
89 | 1 | public static function getRequest() |
|
99 | |||
100 | /** |
||
101 | * Sets the URL Generator. |
||
102 | * @param UrlGeneratorInterface $generator |
||
103 | * @return void |
||
104 | */ |
||
105 | 76 | public static function setGenerator($generator) |
|
109 | |||
110 | /** |
||
111 | * @return UrlGeneratorInterface |
||
112 | */ |
||
113 | public static function getGenerator() |
||
117 | |||
118 | /** |
||
119 | * Gets a parameter |
||
120 | * |
||
121 | * @param string $name The parameter name |
||
122 | * @return mixed The parameter value |
||
123 | */ |
||
124 | public static function getParameter($name) |
||
128 | |||
129 | /** |
||
130 | * @param SessionInterface $session |
||
131 | */ |
||
132 | public static function setSession($session) |
||
136 | |||
137 | /** |
||
138 | * @return SessionInterface |
||
139 | */ |
||
140 | public static function getSession() |
||
144 | |||
145 | /** |
||
146 | * Create a new session |
||
147 | * @return Session |
||
148 | */ |
||
149 | 23 | public static function getNewSession() |
|
156 | |||
157 | 1 | /** |
|
158 | * @return FormFactory |
||
159 | 1 | */ |
|
160 | public static function getFormFactory() |
||
164 | |||
165 | 1 | /** |
|
166 | * @param FormFactory $formFactory |
||
167 | 1 | */ |
|
168 | 1 | public static function setFormFactory($formFactory) |
|
172 | |||
173 | 76 | /** |
|
174 | * @return string |
||
175 | 76 | */ |
|
176 | public static function getEnvironment() |
||
180 | |||
181 | 1 | /** |
|
182 | * @param string $environment |
||
183 | 1 | */ |
|
184 | 1 | public static function setEnvironment($environment) |
|
188 | |||
189 | 76 | /** |
|
190 | * @return ModelCache |
||
191 | 76 | */ |
|
192 | public static function getModelCache() |
||
196 | |||
197 | 1 | /** |
|
198 | * @param ModelCache $modelCache |
||
199 | 1 | */ |
|
200 | 1 | public static function setModelCache($modelCache) |
|
204 | |||
205 | 1 | /** |
|
206 | * @return string[][] |
||
207 | 1 | */ |
|
208 | public static function getSiteThemes() |
||
212 | |||
213 | 76 | /** |
|
214 | * @return string |
||
215 | 76 | */ |
|
216 | public static function getDefaultSiteTheme() |
||
222 | |||
223 | /** |
||
224 | * @return ContainerInterface |
||
225 | */ |
||
226 | public static function getContainer() |
||
230 | |||
231 | /** |
||
232 | * @param $kernel |
||
233 | */ |
||
234 | public static function setKernel($kernel) |
||
238 | |||
239 | /** |
||
240 | * @return EventDispatcher |
||
241 | */ |
||
242 | public static function getDispatcher() |
||
246 | |||
247 | /** |
||
248 | * @return bool |
||
249 | */ |
||
250 | public static function isDebug() |
||
254 | } |
||
255 |