Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
ic_server_welfare
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
06d03949
authored
Aug 23, 2019
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Plain Diff
解决冲突
parents
d2f95f4a
ba7b2d29
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
bootstrap/app.php
bootstrap/app.php
View file @
06d03949
...
@@ -2,6 +2,8 @@
...
@@ -2,6 +2,8 @@
use
App\Http\Middleware\UniqueMiddleware
;
use
App\Http\Middleware\UniqueMiddleware
;
use
Common\Exceptions\Handler
;
use
Common\Exceptions\Handler
;
use
Hhxsv5\LaravelS\Illuminate\LaravelSServiceProvider
;
use
Illuminate\Redis\RedisServiceProvider
;
require_once
__DIR__
.
'/../vendor/autoload.php'
;
require_once
__DIR__
.
'/../vendor/autoload.php'
;
...
@@ -26,12 +28,10 @@ $app = new Laravel\Lumen\Application(
...
@@ -26,12 +28,10 @@ $app = new Laravel\Lumen\Application(
realpath
(
__DIR__
.
'/../'
)
realpath
(
__DIR__
.
'/../'
)
);
);
$app
->
withFacades
();
$app
->
withFacades
();
$app
->
withEloquent
();
$app
->
withEloquent
();
$app
->
register
(
Hhxsv5\LaravelS\Illuminate\LaravelSServiceProvider
::
class
);
$app
->
register
(
Illuminate\Redis\RedisServiceProvider
::
class
);
/*
/*
|--------------------------------------------------------------------------
|--------------------------------------------------------------------------
...
@@ -46,7 +46,7 @@ $app->register(Illuminate\Redis\RedisServiceProvider::class);
...
@@ -46,7 +46,7 @@ $app->register(Illuminate\Redis\RedisServiceProvider::class);
$app
->
singleton
(
$app
->
singleton
(
Illuminate\Contracts\Debug\ExceptionHandler
::
class
,
Illuminate\Contracts\Debug\ExceptionHandler
::
class
,
// App\Exceptions\Handler::class
// App\Exceptions\Handler::class
Common\Exceptions\Handler
::
class
Common\Exceptions\Handler
::
class
);
);
...
@@ -66,10 +66,10 @@ $app->singleton(
...
@@ -66,10 +66,10 @@ $app->singleton(
|
|
*/
*/
$app
->
middleware
([
$app
->
middleware
([
// App\Http\Middleware\ExampleMiddleware::class
// App\Http\Middleware\ExampleMiddleware::class
App\Http\Middleware\UniqueMiddleware
::
class
,
App\Http\Middleware\UniqueMiddleware
::
class
,
]);
]);
// $app->routeMiddleware([
// $app->routeMiddleware([
// 'auth' => App\Http\Middleware\Authenticate::class,
// 'auth' => App\Http\Middleware\Authenticate::class,
...
@@ -89,6 +89,8 @@ $app->singleton(
...
@@ -89,6 +89,8 @@ $app->singleton(
// $app->register(App\Providers\AppServiceProvider::class);
// $app->register(App\Providers\AppServiceProvider::class);
// $app->register(App\Providers\AuthServiceProvider::class);
// $app->register(App\Providers\AuthServiceProvider::class);
// $app->register(App\Providers\EventServiceProvider::class);
// $app->register(App\Providers\EventServiceProvider::class);
$app
->
register
(
Hhxsv5\LaravelS\Illuminate\LaravelSServiceProvider
::
class
);
$app
->
register
(
Illuminate\Redis\RedisServiceProvider
::
class
);
/*
/*
|--------------------------------------------------------------------------
|--------------------------------------------------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment