Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/http-kernel/DataCollector/EventDataCollector.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 1fec387a4317 |
children |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
9 * file that was distributed with this source code. | 9 * file that was distributed with this source code. |
10 */ | 10 */ |
11 | 11 |
12 namespace Symfony\Component\HttpKernel\DataCollector; | 12 namespace Symfony\Component\HttpKernel\DataCollector; |
13 | 13 |
14 use Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcherInterface; | |
15 use Symfony\Component\EventDispatcher\EventDispatcherInterface; | |
14 use Symfony\Component\HttpFoundation\Request; | 16 use Symfony\Component\HttpFoundation\Request; |
15 use Symfony\Component\HttpFoundation\Response; | 17 use Symfony\Component\HttpFoundation\Response; |
16 use Symfony\Component\EventDispatcher\EventDispatcherInterface; | |
17 use Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcherInterface; | |
18 | 18 |
19 /** | 19 /** |
20 * EventDataCollector. | 20 * EventDataCollector. |
21 * | 21 * |
22 * @author Fabien Potencier <fabien@symfony.com> | 22 * @author Fabien Potencier <fabien@symfony.com> |
36 /** | 36 /** |
37 * {@inheritdoc} | 37 * {@inheritdoc} |
38 */ | 38 */ |
39 public function collect(Request $request, Response $response, \Exception $exception = null) | 39 public function collect(Request $request, Response $response, \Exception $exception = null) |
40 { | 40 { |
41 $this->data = array( | 41 $this->data = [ |
42 'called_listeners' => array(), | 42 'called_listeners' => [], |
43 'not_called_listeners' => array(), | 43 'not_called_listeners' => [], |
44 ); | 44 ]; |
45 } | 45 } |
46 | 46 |
47 public function reset() | 47 public function reset() |
48 { | 48 { |
49 $this->data = array(); | 49 $this->data = []; |
50 | 50 |
51 if ($this->dispatcher instanceof TraceableEventDispatcherInterface) { | 51 if ($this->dispatcher instanceof TraceableEventDispatcherInterface) { |
52 if (!method_exists($this->dispatcher, 'reset')) { | 52 if (!method_exists($this->dispatcher, 'reset')) { |
53 return; // @deprecated | 53 return; // @deprecated |
54 } | 54 } |