Don't check cipher when boostrapping

This commit is contained in:
Pig Fang 2019-12-25 16:16:09 +08:00
parent 10d0957d66
commit cf8358fdcd

View File

@ -37,12 +37,6 @@ class AppServiceProvider extends ServiceProvider
// Control the URL generated by url() function
$this->configureUrlGenerator($request);
try {
$this->app->make('cipher');
} catch (\Illuminate\Contracts\Container\BindingResolutionException $e) {
throw new PrettyPageException(trans('errors.cipher.unsupported', ['cipher' => config('secure.cipher')]));
}
try {
if (option('enable_redis') && Redis::ping()) {
config([