1 | <?php |
||
21 | class Application extends BaseApplication implements SubscriberInterface |
||
22 | { |
||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | const NAME = 'spike-client'; |
||
27 | |||
28 | /** |
||
29 | * @var string |
||
30 | */ |
||
31 | const VERSION = '1.0.0.dev'; |
||
32 | |||
33 | /** |
||
34 | * The client instance |
||
35 | * @var Client |
||
36 | */ |
||
37 | protected $client; |
||
38 | |||
39 | /** |
||
40 | * The server address |
||
41 | * @var string |
||
42 | */ |
||
43 | protected $serverAddress; |
||
44 | |||
45 | public function __construct(Configuration $configuration) |
||
56 | |||
57 | /** |
||
58 | * Sets the client for the application |
||
59 | * @param Client $client |
||
60 | */ |
||
61 | public function setKernel(Client $client) |
||
65 | |||
66 | /** |
||
67 | * Gets the client instance |
||
68 | * @return Client |
||
69 | */ |
||
70 | public function getKernel() |
||
74 | |||
75 | /** |
||
76 | * {@inheritdoc} |
||
77 | * @codeCoverageIgnore |
||
78 | */ |
||
79 | public function doRun(InputInterface $input, OutputInterface $output) |
||
98 | |||
99 | /** |
||
100 | * @codeCoverageIgnore |
||
101 | */ |
||
102 | protected function doRunClient() |
||
112 | |||
113 | /** |
||
114 | * Start the client |
||
115 | * @codeCoverageIgnore |
||
116 | */ |
||
117 | protected function runClient() |
||
125 | |||
126 | /** |
||
127 | * {@inheritdoc} |
||
128 | */ |
||
129 | public function getEvents() |
||
138 | |||
139 | /** |
||
140 | * @codeCoverageIgnore |
||
141 | */ |
||
142 | public function onAuthError(Event $event) |
||
147 | |||
148 | /** |
||
149 | * @codeCoverageIgnore |
||
150 | */ |
||
151 | public function onRegisterTunnelError(Event $event) |
||
159 | |||
160 | /** |
||
161 | * @codeCoverageIgnore |
||
162 | */ |
||
163 | public function onCannotConnectToServer(Event $event) |
||
167 | |||
168 | /** |
||
169 | * @codeCoverageIgnore |
||
170 | */ |
||
171 | public function onDisconnectFromServer(Event $event) |
||
176 | |||
177 | /** |
||
178 | * {@inheritdoc} |
||
179 | */ |
||
180 | public function getDefaultCommands() |
||
188 | |||
189 | /** |
||
190 | * Gets all subscribers |
||
191 | * @return array |
||
192 | */ |
||
193 | public function getSubscribers() |
||
200 | |||
201 | /** |
||
202 | * {@inheritdoc} |
||
203 | */ |
||
204 | protected function getDefaultInputDefinition() |
||
215 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.