@@ -7,9 +7,6 @@ |
||
| 7 | 7 | use Loadsman\LaravelPlugin\Modules\Rule\RuleRepository; |
| 8 | 8 | use Loadsman\LaravelPlugin\Modules\Rule\RuleServiceProvider; |
| 9 | 9 | use Loadsman\LaravelPlugin\Providers\MacroServiceProvider; |
| 10 | -use Loadsman\LaravelPlugin\Providers\RepositoryServiceProvider; |
|
| 11 | -use Loadsman\LaravelPlugin\Providers\RouteServiceProvider; |
|
| 12 | -use Illuminate\Routing\Router; |
|
| 13 | 10 | |
| 14 | 11 | class LoadsmanServiceProvider extends \Illuminate\Support\ServiceProvider |
| 15 | 12 | { |
@@ -3,12 +3,12 @@ |
||
| 3 | 3 | namespace Loadsman\LaravelPlugin\Providers; |
| 4 | 4 | |
| 5 | 5 | |
| 6 | +use Illuminate\Contracts\Container\Container; |
|
| 7 | +use Illuminate\Support\ServiceProvider; |
|
| 6 | 8 | use Loadsman\LaravelPlugin\Collections\RouteCollection; |
| 7 | 9 | use Loadsman\LaravelPlugin\Contracts\RequestRepositoryInterface; |
| 8 | 10 | use Loadsman\LaravelPlugin\Contracts\RouteRepositoryInterface; |
| 9 | 11 | use Loadsman\LaravelPlugin\Repositories\RouteRepository; |
| 10 | -use Illuminate\Contracts\Container\Container; |
|
| 11 | -use Illuminate\Support\ServiceProvider; |
|
| 12 | 12 | |
| 13 | 13 | class RepositoryServiceProvider extends ServiceProvider |
| 14 | 14 | { |
@@ -2,12 +2,11 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Loadsman\LaravelPlugin\Providers; |
| 4 | 4 | |
| 5 | -use Loadsman\LaravelPlugin\Http\Middleware\DebugState; |
|
| 6 | -use Loadsman\LaravelPlugin\Http\Middleware\DetectRoute; |
|
| 7 | -use Loadsman\LaravelPlugin\Http\Middleware\PreventRedirect; |
|
| 8 | 5 | use Illuminate\Contracts\Http\Kernel; |
| 9 | 6 | use Illuminate\Routing\Router; |
| 10 | 7 | use Illuminate\Support\ServiceProvider; |
| 8 | +use Loadsman\LaravelPlugin\Http\Middleware\DetectRoute; |
|
| 9 | +use Loadsman\LaravelPlugin\Http\Middleware\PreventRedirect; |
|
| 11 | 10 | |
| 12 | 11 | class RouteServiceProvider extends ServiceProvider |
| 13 | 12 | { |
@@ -237,6 +237,10 @@ |
||
| 237 | 237 | return $this->route->$methodName(); |
| 238 | 238 | } |
| 239 | 239 | |
| 240 | + /** |
|
| 241 | + * @param string $type |
|
| 242 | + * @param string $text |
|
| 243 | + */ |
|
| 240 | 244 | protected function setError($type, $text, $params = []) |
| 241 | 245 | { |
| 242 | 246 | $this->errors[$type] = trans($text, $params); |