andersao / andersao/l5-repository

Update File usage in BindingsGenerator & BindingsCommand

Abierto
#609 0 comentarios 0 reacciones 0 asignados Ver en GitHub
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

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.