Commit 82c812d
authored
Basically, I reversed the `str_replace` statements which was wrong. Imagine this namespace: `App\Restify\User`.
With the old code:
```php
str_replace('App\\', 'app/', str_replace('\\', '/', $namespace)).'/'.$className.'.php';
```
it would first execute the `str_replace('\\', '/', $namespace))` which results in this string: `App/Restify/User`, meaning the next code execution is useless:
```php
str_replace('App\\', 'app/', 'App/Restify/User')
```
1 parent 72be19d commit 82c812d
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
562 | 562 | | |
563 | 563 | | |
564 | 564 | | |
565 | | - | |
| 565 | + | |
566 | 566 | | |
567 | 567 | | |
568 | 568 | | |
| |||
0 commit comments