projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added the Search API Synonym module to deal specifically with licence and license...
[yaffs-website]
/
vendor
/
symfony
/
event-dispatcher
/
Debug
/
TraceableEventDispatcher.php
diff --git
a/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php
b/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php
index 988cf112f71601bed4da0001bdb6a9fcfa0c3810..e5d59402cf3a2408a11bb0eb82b3dc09962895f4 100644
(file)
--- a/
vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php
+++ b/
vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php
@@
-11,11
+11,11
@@
namespace Symfony\Component\EventDispatcher\Debug;
namespace Symfony\Component\EventDispatcher\Debug;
+use Psr\Log\LoggerInterface;
+use Symfony\Component\EventDispatcher\Event;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
-use Symfony\Component\EventDispatcher\Event;
use Symfony\Component\Stopwatch\Stopwatch;
use Symfony\Component\Stopwatch\Stopwatch;
-use Psr\Log\LoggerInterface;
/**
* Collects some data about event listeners.
/**
* Collects some data about event listeners.
@@
-33,13
+33,6
@@
class TraceableEventDispatcher implements TraceableEventDispatcherInterface
private $dispatcher;
private $wrappedListeners;
private $dispatcher;
private $wrappedListeners;
- /**
- * Constructor.
- *
- * @param EventDispatcherInterface $dispatcher An EventDispatcherInterface instance
- * @param Stopwatch $stopwatch A Stopwatch instance
- * @param LoggerInterface $logger A LoggerInterface instance
- */
public function __construct(EventDispatcherInterface $dispatcher, Stopwatch $stopwatch, LoggerInterface $logger = null)
{
$this->dispatcher = $dispatcher;
public function __construct(EventDispatcherInterface $dispatcher, Stopwatch $stopwatch, LoggerInterface $logger = null)
{
$this->dispatcher = $dispatcher;
@@
-214,6
+207,11
@@
class TraceableEventDispatcher implements TraceableEventDispatcherInterface
return $notCalled;
}
return $notCalled;
}
+ public function reset()
+ {
+ $this->called = array();
+ }
+
/**
* Proxies all method calls to the original event dispatcher.
*
/**
* Proxies all method calls to the original event dispatcher.
*
@@
-224,7
+222,7
@@
class TraceableEventDispatcher implements TraceableEventDispatcherInterface
*/
public function __call($method, $arguments)
{
*/
public function __call($method, $arguments)
{
- return call_user_func_array(array($this->dispatcher, $method), $arguments);
+ return
\
call_user_func_array(array($this->dispatcher, $method), $arguments);
}
/**
}
/**
@@
-303,11
+301,11
@@
class TraceableEventDispatcher implements TraceableEventDispatcherInterface
private function sortListenersByPriority($a, $b)
{
private function sortListenersByPriority($a, $b)
{
- if (
is_int($a['priority']) && !
is_int($b['priority'])) {
+ if (
\is_int($a['priority']) && !\
is_int($b['priority'])) {
return 1;
}
return 1;
}
- if (!
is_int($a['priority']) &&
is_int($b['priority'])) {
+ if (!
\is_int($a['priority']) && \
is_int($b['priority'])) {
return -1;
}
return -1;
}