@@ -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 | }); |
@@ -186,7 +186,7 @@ |
||
186 | 186 | throw Internal\Exception\ReflectionExceptionFactory::invalidArgument( |
187 | 187 | sprintf( |
188 | 188 | "Parameter 1 of %s must be an abstract class name which exists in resolved concrete stack.", |
189 | - __METHOD__ |
|
189 | + __METHOD__ |
|
190 | 190 | ); |
191 | 191 | ); |
192 | 192 | } |