Skip to content

Commit

Permalink
Made debug:container and debug:autowiring ignore starting backsla…
Browse files Browse the repository at this point in the history
…sh in service id
  • Loading branch information
ruudk committed Apr 29, 2019
1 parent 454574b commit 0945f27
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,8 @@ protected function getContainerBuilder()

private function findProperServiceName(InputInterface $input, SymfonyStyle $io, ContainerBuilder $builder, string $name, bool $showHidden)
{
$name = ltrim($name, '\\');

if ($builder->has($name) || !$input->isInteractive()) {
return $name;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ public function provideIgnoreBackslashWhenFindingService()
return [
[BackslashClass::class],
['FixturesBackslashClass'],
['\\'.BackslashClass::class],
];
}
}

0 comments on commit 0945f27

Please sign in to comment.