Permalink
Browse files

Merge pull request #573 from tomaswindsor/patch-1

DI\Diagnostics: fixed formatting of service and factory names
  • Loading branch information...
2 parents 897c11c + 50dc3b1 commit 82d5a7a7bd111b5e9470f8ddd76254264f37f4c0 @dg dg committed Mar 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Nette/DI/Diagnostics/ContainerPanel.php
View
2 Nette/DI/Diagnostics/ContainerPanel.php
@@ -62,7 +62,7 @@ public function getPanel()
$factories = array();
foreach (Nette\Reflection\ClassType::from($this->container)->getMethods() as $method) {
if (preg_match('#^create(Service)?(.+)$#', $method->getName(), $m)) {
- $name = strtr(strtolower(substr($m[2], 0, 1)) . substr($m[2], 1), '_', '.');
+ $name = str_replace('__', '.', strtolower(substr($m[2], 0, 1)) . substr($m[2], 1));
if ($m[1]) {
$services[$name] = $method->getAnnotation('return');
} elseif ($method->isPublic()) {

0 comments on commit 82d5a7a

Please sign in to comment.