8000 bug #25109 Make debug:container search command case-insensitive (jzaw… · symfony/symfony@a824d34 · GitHub
[go: up one dir, main page]

Skip to content

Commit a824d34

Browse files
committed
bug #25109 Make debug:container search command case-insensitive (jzawadzki)
This PR was merged into the 3.3 branch. Discussion ---------- Make debug:container search command case-insensitive | Q | A | ------------- | --- | Branch? | 3.2 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Fixed tickets | #25107 | License | MIT | Doc PR | This bug fixes the #25107 - starts from 3.2 services may be written with uppercase (e.g. FQCN) and search fails to match those services. Commits ------- c429c33 Make search in debug:container command case-insensitive
2 parents 4eaf1e5 + c429c33 commit a824d34

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Symfony/Bundle/FrameworkBundle/Command/ContainerDebugCommand.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,8 @@ private function findServiceIdsContaining(ContainerBuilder $builder, $name)
217217
{
218218
$serviceIds = $builder->getServiceIds();
219219
$foundServiceIds = array();
220-
$name = strtolower($name);
221220
foreach ($serviceIds as $serviceId) {
222-
if (false === strpos($serviceId, $name)) {
221+
if (false === stripos($serviceId, $name)) {
223222
continue;
224223
}
225224
$foundServiceIds[] = $serviceId;

0 commit comments

Comments
 (0)
0