andersao / andersao/l5-repository

Update File usage in BindingsGenerator & BindingsCommand

Aberta
#609 0 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
PHP
Estrelas
4.2k
Forks
880
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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.

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.