1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/* |
4
|
|
|
* This file is part of the Hautelook\AliceBundle package. |
5
|
|
|
* |
6
|
|
|
* (c) Baldur Rensch <[email protected]> |
7
|
|
|
* |
8
|
|
|
* For the full copyright and license information, please view the LICENSE |
9
|
|
|
* file that was distributed with this source code. |
10
|
|
|
*/ |
11
|
|
|
|
12
|
|
|
namespace Hautelook\AliceBundle\HttpKernel; |
13
|
|
|
|
14
|
|
|
use Hautelook\AliceBundle\NotCallableTrait; |
15
|
|
|
use Symfony\Component\HttpFoundation\Request; |
16
|
|
|
use Symfony\Component\HttpKernel\KernelInterface; |
17
|
|
|
|
18
|
|
|
/** |
19
|
|
|
* @author Théo FIDRY <[email protected]> |
20
|
|
|
*/ |
21
|
|
|
class DummyKernel implements KernelInterface |
22
|
|
|
{ |
23
|
|
|
use NotCallableTrait; |
24
|
|
|
|
25
|
|
|
/** |
26
|
|
|
* @inheritdoc |
27
|
|
|
*/ |
28
|
|
|
public function serialize() |
29
|
|
|
{ |
30
|
|
|
$this->__call(__METHOD__, func_get_args()); |
31
|
|
|
} |
32
|
|
|
|
33
|
|
|
/** |
34
|
|
|
* @inheritdoc |
35
|
|
|
*/ |
36
|
|
|
public function unserialize($serialized) |
37
|
|
|
{ |
38
|
|
|
$this->__call(__METHOD__, func_get_args()); |
39
|
|
|
} |
40
|
|
|
|
41
|
|
|
/** |
42
|
|
|
* @inheritdoc |
43
|
|
|
*/ |
44
|
|
|
public function handle(Request $request, $type = self::MASTER_REQUEST, $catch = true) |
45
|
|
|
{ |
46
|
|
|
$this->__call(__METHOD__, func_get_args()); |
47
|
|
|
} |
48
|
|
|
|
49
|
|
|
/** |
50
|
|
|
* @inheritdoc |
51
|
|
|
*/ |
52
|
|
|
public function registerBundles() |
53
|
|
|
{ |
54
|
|
|
$this->__call(__METHOD__, func_get_args()); |
55
|
|
|
} |
56
|
|
|
|
57
|
|
|
/** |
58
|
|
|
* @inheritdoc |
59
|
|
|
*/ |
60
|
|
|
public function registerContainerConfiguration(\Symfony\Component\Config\Loader\LoaderInterface $loader) |
61
|
|
|
{ |
62
|
|
|
$this->__call(__METHOD__, func_get_args()); |
63
|
|
|
} |
64
|
|
|
|
65
|
|
|
/** |
66
|
|
|
* @inheritdoc |
67
|
|
|
*/ |
68
|
|
|
public function boot() |
69
|
|
|
{ |
70
|
|
|
$this->__call(__METHOD__, func_get_args()); |
71
|
|
|
} |
72
|
|
|
|
73
|
|
|
/** |
74
|
|
|
* @inheritdoc |
75
|
|
|
*/ |
76
|
|
|
public function shutdown() |
77
|
|
|
{ |
78
|
|
|
$this->__call(__METHOD__, func_get_args()); |
79
|
|
|
} |
80
|
|
|
|
81
|
|
|
/** |
82
|
|
|
* @inheritdoc |
83
|
|
|
*/ |
84
|
|
|
public function getBundles() |
85
|
|
|
{ |
86
|
|
|
$this->__call(__METHOD__, func_get_args()); |
87
|
|
|
} |
88
|
|
|
|
89
|
|
|
/** |
90
|
|
|
* @inheritdoc |
91
|
|
|
*/ |
92
|
|
|
public function getBundle($name, $first = true) |
93
|
|
|
{ |
94
|
|
|
$this->__call(__METHOD__, func_get_args()); |
95
|
|
|
} |
96
|
|
|
|
97
|
|
|
/** |
98
|
|
|
* @inheritdoc |
99
|
|
|
*/ |
100
|
|
|
public function locateResource($name, $dir = null, $first = true) |
101
|
|
|
{ |
102
|
|
|
$this->__call(__METHOD__, func_get_args()); |
103
|
|
|
} |
104
|
|
|
|
105
|
|
|
/** |
106
|
|
|
* @inheritdoc |
107
|
|
|
*/ |
108
|
|
|
public function getName() |
109
|
|
|
{ |
110
|
|
|
return 'fake'; |
111
|
|
|
} |
112
|
|
|
|
113
|
|
|
/** |
114
|
|
|
* @inheritdoc |
115
|
|
|
*/ |
116
|
|
|
public function getEnvironment() |
117
|
|
|
{ |
118
|
|
|
return 'fake_env'; |
119
|
|
|
} |
120
|
|
|
|
121
|
|
|
/** |
122
|
|
|
* @inheritdoc |
123
|
|
|
*/ |
124
|
|
|
public function isDebug() |
125
|
|
|
{ |
126
|
|
|
return true; |
127
|
|
|
} |
128
|
|
|
|
129
|
|
|
/** |
130
|
|
|
* @inheritdoc |
131
|
|
|
*/ |
132
|
|
|
public function getRootDir() |
133
|
|
|
{ |
134
|
|
|
$this->__call(__METHOD__, func_get_args()); |
135
|
|
|
} |
136
|
|
|
|
137
|
|
|
/** |
138
|
|
|
* @inheritdoc |
139
|
|
|
*/ |
140
|
|
|
public function getContainer() |
141
|
|
|
{ |
142
|
|
|
$this->__call(__METHOD__, func_get_args()); |
143
|
|
|
} |
144
|
|
|
|
145
|
|
|
/** |
146
|
|
|
* @inheritdoc |
147
|
|
|
*/ |
148
|
|
|
public function getStartTime() |
149
|
|
|
{ |
150
|
|
|
$this->__call(__METHOD__, func_get_args()); |
151
|
|
|
} |
152
|
|
|
|
153
|
|
|
/** |
154
|
|
|
* @inheritdoc |
155
|
|
|
*/ |
156
|
|
|
public function getCacheDir() |
157
|
|
|
{ |
158
|
|
|
$this->__call(__METHOD__, func_get_args()); |
159
|
|
|
} |
160
|
|
|
|
161
|
|
|
/** |
162
|
|
|
* @inheritdoc |
163
|
|
|
*/ |
164
|
|
|
public function getLogDir() |
165
|
|
|
{ |
166
|
|
|
$this->__call(__METHOD__, func_get_args()); |
167
|
|
|
} |
168
|
|
|
|
169
|
|
|
/** |
170
|
|
|
* @inheritdoc |
171
|
|
|
*/ |
172
|
|
|
public function getCharset() |
173
|
|
|
{ |
174
|
|
|
$this->__call(__METHOD__, func_get_args()); |
175
|
|
|
} |
176
|
|
|
|
177
|
|
|
/** |
178
|
|
|
* @inheritdoc |
179
|
|
|
*/ |
180
|
|
|
public function isClassInActiveBundle($class) |
181
|
|
|
{ |
182
|
|
|
$this->__call(__METHOD__, func_get_args()); |
183
|
|
|
} |
184
|
|
|
} |
185
|
|
|
|