Skip to content

Commit

Permalink
bug #25109 Make debug:container search command case-insensitive (jzaw…
Browse files Browse the repository at this point in the history
…adzki)

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
  • Loading branch information
fabpot committed Nov 23, 2017
2 parents 4eaf1e5 + c429c33 commit a824d34
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -217,9 +217,8 @@ private function findServiceIdsContaining(ContainerBuilder $builder, $name)
{
$serviceIds = $builder->getServiceIds();
$foundServiceIds = array();
$name = strtolower($name);
foreach ($serviceIds as $serviceId) {
if (false === strpos($serviceId, $name)) {
if (false === stripos($serviceId, $name)) {
continue;
}
$foundServiceIds[] = $serviceId;
Expand Down

0 comments on commit a824d34

Please sign in to comment.