@@ -8,8 +8,9 @@ |
||
8 | 8 | $app = new \ProyectoTAU\TAU\Common\ContainerExt(); |
9 | 9 | } |
10 | 10 | |
11 | - if( $alias != null ) |
|
12 | - return $app->get($alias); |
|
11 | + if( $alias != null ) { |
|
12 | + return $app->get($alias); |
|
13 | + } |
|
13 | 14 | |
14 | 15 | return $app; |
15 | 16 | } |
@@ -23,9 +23,11 @@ |
||
23 | 23 | { |
24 | 24 | // \ProyectoTAU\TAU\Common\Logger::debug("$id ".var_export($concrete, true)); |
25 | 25 | |
26 | - if( $this->has($id, $concrete) ) // Replace concrete if id exists |
|
26 | + if( $this->has($id, $concrete) ) { |
|
27 | + // Replace concrete if id exists |
|
27 | 28 | { |
28 | 29 | $definition = $this->extend($id); |
30 | + } |
|
29 | 31 | $definition->setConcrete($concrete); |
30 | 32 | return $definition; |
31 | 33 |