10000 minor #20186 [HttpKernel] removed implicit dep on Console (fabpot) · symfony/symfony@451cdac · GitHub
[go: up one dir, main page]

Skip to content

Commit 451cdac

Browse files
committed
minor #20186 [HttpKernel] removed implicit dep on Console (fabpot)
This PR was merged into the 3.2-dev branch. Discussion ---------- [HttpKernel] removed implicit dep on Console | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a HttpKernel does not have console as a dependency, so we must ensure that this is not implicitly required (`DebugHandlersListener` already has this check). Commits ------- 414206d [HttpKernel] removed implicit dep on Console
2 parents e9c30f5 + 414206d commit 451cdac

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Symfony/Component/HttpKernel/EventListener/DumpListener.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ public function configure()
4949

5050
public static function getSubscribedEvents()
5151
{
52+
if (!class_exists(ConsoleEvents::class)) {
53+
return array();
54+
}
55+
5256
// Register early to have a working dump() as early as possible
5357
return array(ConsoleEvents::COMMAND => array('configure', 1024));
5458
}

0 commit comments

Comments
 (0)
0