diff --git a/src/EventDispatcher/EventDispatcher.php b/src/EventDispatcher/EventDispatcher.php index 2433eda40..f3d5363bf 100644 --- a/src/EventDispatcher/EventDispatcher.php +++ b/src/EventDispatcher/EventDispatcher.php @@ -44,6 +44,14 @@ public function setListeners(array $listeners): void $this->classListeners = []; } + /** + * @internal Used for profiling + */ + public function getListeners(): array + { + return $this->listeners; + } + /** * {@inheritdoc} */ diff --git a/src/Handler/HandlerRegistry.php b/src/Handler/HandlerRegistry.php index bcf97baa3..1b8ae94ae 100644 --- a/src/Handler/HandlerRegistry.php +++ b/src/Handler/HandlerRegistry.php @@ -76,4 +76,12 @@ public function getHandler(int $direction, string $typeName, string $format) return $this->handlers[$direction][$typeName][$format]; } + + /** + * @internal Used for profiling + */ + public function getHandlers(): array + { + return $this->handlers; + } }