Skip to content

Commit

Permalink
Merge pull request #1316 from gam6itko/symfony_profiler
Browse files Browse the repository at this point in the history
Add methods for data_collector
  • Loading branch information
goetas authored Jul 5, 2021
2 parents 292f5db + 5ad6ffb commit cd901ca
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/EventDispatcher/EventDispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@ public function setListeners(array $listeners): void
$this->classListeners = [];
}

/**
* @internal Used for profiling
*/
public function getListeners(): array
{
return $this->listeners;
}

/**
* {@inheritdoc}
*/
Expand Down
8 changes: 8 additions & 0 deletions src/Handler/HandlerRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit cd901ca

Please sign in to comment.