Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
UserAdminV2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
庄欣
UserAdminV2
Commits
16e37cb3
Commit
16e37cb3
authored
Jun 08, 2015
by
Pantelis Peslis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use the ::class notation
parent
bacda075
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
10 deletions
+10
-10
artisan
+1
-1
bootstrap/app.php
+6
-6
database/factories/ModelFactory.php
+1
-1
public/index.php
+1
-1
tests/TestCase.php
+1
-1
No files found.
artisan
View file @
16e37cb3
...
...
@@ -28,7 +28,7 @@ $app = require_once __DIR__.'/bootstrap/app.php';
|
*/
$kernel
=
$app
->
make
(
'Illuminate\Contracts\Console\Kernel'
);
$kernel
=
$app
->
make
(
Illuminate\Contracts\Console\Kernel
::
class
);
$status
=
$kernel
->
handle
(
$input
=
new
Symfony\Component\Console\Input\ArgvInput
,
...
...
bootstrap/app.php
View file @
16e37cb3
...
...
@@ -27,18 +27,18 @@ $app = new Illuminate\Foundation\Application(
*/
$app
->
singleton
(
'Illuminate\Contracts\Http\Kernel'
,
'App\Http\Kernel'
Illuminate\Contracts\Http\Kernel
::
class
,
App\Http\Kernel
::
class
);
$app
->
singleton
(
'Illuminate\Contracts\Console\Kernel'
,
'App\Console\Kernel'
Illuminate\Contracts\Console\Kernel
::
class
,
App\Console\Kernel
::
class
);
$app
->
singleton
(
'Illuminate\Contracts\Debug\ExceptionHandler'
,
'App\Exceptions\Handler'
Illuminate\Contracts\Debug\ExceptionHandler
::
class
,
App\Exceptions\Handler
::
class
);
/*
...
...
database/factories/ModelFactory.php
View file @
16e37cb3
...
...
@@ -11,7 +11,7 @@
|
*/
$factory
->
define
(
'App\User'
,
function
(
$faker
)
{
$factory
->
define
(
App\User
::
class
,
function
(
$faker
)
{
return
[
'name'
=>
$faker
->
name
,
'email'
=>
$faker
->
email
,
...
...
public/index.php
View file @
16e37cb3
...
...
@@ -47,7 +47,7 @@ $app = require_once __DIR__.'/../bootstrap/app.php';
|
*/
$kernel
=
$app
->
make
(
'Illuminate\Contracts\Http\Kernel'
);
$kernel
=
$app
->
make
(
Illuminate\Contracts\Http\Kernel
::
class
);
$response
=
$kernel
->
handle
(
$request
=
Illuminate\Http\Request
::
capture
()
...
...
tests/TestCase.php
View file @
16e37cb3
...
...
@@ -18,7 +18,7 @@ class TestCase extends Illuminate\Foundation\Testing\TestCase
{
$app
=
require
__DIR__
.
'/../bootstrap/app.php'
;
$app
->
make
(
'Illuminate\Contracts\Console\Kernel'
)
->
bootstrap
();
$app
->
make
(
Illuminate\Contracts\Console\Kernel
::
class
)
->
bootstrap
();
return
$app
;
}
...
...
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