andersao / andersao/l5-repository

Update File usage in BindingsGenerator & BindingsCommand

未關閉
#609 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
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 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。