Skip to content

Commit

Permalink
fix: do not run DebugPass if symfony/stopwatch is not present (#207)
Browse files Browse the repository at this point in the history
* fix: do not run DebugPass if symfony/stopwatch is not present

* update changelog
  • Loading branch information
priyadi authored Oct 7, 2024
1 parent 00352d2 commit e27903b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 3 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
# CHANGELOG

## 1.10.0

* fix: `Map` now works with unpromoted constructor parameters
* fix: restore throwing `NewInstanceReturnedButCannotBeSetOnTargetException`

## 1.9.4

* deps: fix `symfony/stopwatch` dependency
* fix: `Map` now works with unpromoted constructor parameters
* fix: restore throwing `NewInstanceReturnedButCannotBeSetOnTargetException`
* fix: do not run DebugPass if symfony/stopwatch is not present

## 1.9.3

Expand Down
6 changes: 6 additions & 0 deletions src/DependencyInjection/CompilerPass/DebugPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@
#[\Override]
public function process(ContainerBuilder $container): void
{
// return if debug.stopwatch does not exist

if (!$container->has('debug.stopwatch')) {
return;
}

// decorates all transformers using TraceableTransformer

$dataCollector = new Reference('rekalogika.mapper.data_collector');
Expand Down

0 comments on commit e27903b

Please sign in to comment.