andersao / andersao/l5-repository
Update File usage in BindingsGenerator & BindingsCommand
- 主要語言
- PHP
- 星號
- 4.2k
- 分支
- 880
- PR 合併指標
- 30 天內沒有已合併 PR
描述
The following changes will allow for `make:bindings` to be Lumen compatible.
It does not require any documentation updates as the functionality is not changing.
Update here `use File;` -> `use Illuminate\Support\Facades\File;`
https://github.com/andersao/l5-repository/blob/f2008d8ff8af50036d2d155c0b5dbb07cbcd0ee4/src/Prettus/Repository/Generators/Commands/BindingsCommand.php#L4
Add here `use Illuminate\Support\Facades\File;`
https://github.com/andersao/l5-repository/blob/f2008d8ff8af50036d2d155c0b5dbb07cbcd0ee4/src/Prettus/Repository/Generators/BindingsGenerator.php#L3
Remove preceding backslash here: `\File` -> `File`
https://github.com/andersao/l5-repository/blob/f2008d8ff8af50036d2d155c0b5dbb07cbcd0ee4/src/Prettus/Repository/Generators/BindingsGenerator.php#L30
Remove preceding backslash here: `\File` -> `File`
https://github.com/andersao/l5-repository/blob/f2008d8ff8af50036d2d155c0b5dbb07cbcd0ee4/src/Prettus/Repository/Generators/BindingsGenerator.php#L33
To my understanding `File` is `Illuminate\Support\Facades\File`. The change is simply making it explicit.
貢獻指南
評估
這個 Issue 還沒有評估資料。