@@ -3,19 +3,19 @@ |
||
| 3 | 3 | @trigger_error("This autoloader just for dummy testing. Just run 'composer dump-autoload --optimize' and you're set.", E_USER_DEPRECATED); |
| 4 | 4 | |
| 5 | 5 | \spl_autoload_register(function($className) { |
| 6 | - $rootDir = __DIR__ . DIRECTORY_SEPARATOR . 'src'; |
|
| 6 | + $rootDir = __DIR__ . DIRECTORY_SEPARATOR . 'src'; |
|
| 7 | 7 | |
| 8 | - $namespace = 'DependencyInjection'; |
|
| 8 | + $namespace = 'DependencyInjection'; |
|
| 9 | 9 | |
| 10 | - $className = str_replace( |
|
| 11 | - '\\', |
|
| 12 | - DIRECTORY_SEPARATOR, |
|
| 13 | - str_replace($namespace, $rootDir, $className) |
|
| 14 | - ); |
|
| 10 | + $className = str_replace( |
|
| 11 | + '\\', |
|
| 12 | + DIRECTORY_SEPARATOR, |
|
| 13 | + str_replace($namespace, $rootDir, $className) |
|
| 14 | + ); |
|
| 15 | 15 | |
| 16 | - $className .= '.php'; |
|
| 16 | + $className .= '.php'; |
|
| 17 | 17 | |
| 18 | - if ($file = stream_resolve_include_path($className)) { |
|
| 19 | - require_once $file; |
|
| 20 | - } |
|
| 18 | + if ($file = stream_resolve_include_path($className)) { |
|
| 19 | + require_once $file; |
|
| 20 | + } |
|
| 21 | 21 | }); |