andersao / andersao/l5-repository
Update File usage in BindingsGenerator & BindingsCommand
- Lenguaje dominante
- PHP
- Estrellas
- 4.2k
- Forks
- 880
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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.
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.