@@ -1,21 +1,21 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | |
| 4 | -if( ! function_exists("app") ){ |
|
| 5 | - function app($alias = null){ |
|
| 4 | +if ( ! function_exists("app")) { |
|
| 5 | + function app($alias = null) { |
|
| 6 | 6 | static $app = null; |
| 7 | 7 | |
| 8 | - if( $app == null ){ |
|
| 8 | + if ($app == null) { |
|
| 9 | 9 | $app = new \League\Container\Container(); |
| 10 | 10 | } |
| 11 | 11 | |
| 12 | - if( $alias != null ) |
|
| 12 | + if ($alias != null) |
|
| 13 | 13 | return $app->get($alias); |
| 14 | 14 | |
| 15 | 15 | return $app; |
| 16 | 16 | } |
| 17 | 17 | |
| 18 | - if( ! function_exists("getConcrete") ) { |
|
| 18 | + if ( ! function_exists("getConcrete")) { |
|
| 19 | 19 | function getConcrete($entityManager): \ProyectoTAU\TAU\Common\Repository |
| 20 | 20 | { |
| 21 | 21 | $em_class = strstr($entityManager, '::', true); |