Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
syncEnrollments
Project
Project
Details
Activity
Releases
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yeray Santana Hualde
syncEnrollments
Commits
9aed9deb
Commit
9aed9deb
authored
Oct 21, 2014
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tweak how console commands are registered.
parent
ec9edec9
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
39 deletions
+11
-39
Kernel.php
app/Console/Kernel.php
+9
-0
Kernel.php
app/Http/Kernel.php
+1
-1
VerifyCsrfToken.php
app/Http/Middleware/VerifyCsrfToken.php
+1
-1
ArtisanServiceProvider.php
app/Providers/ArtisanServiceProvider.php
+0
-35
app.php
config/app.php
+0
-1
compile.php
config/compile.php
+0
-1
No files found.
app/Console/Kernel.php
View file @
9aed9deb
...
...
@@ -5,6 +5,15 @@ use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
class
Kernel
extends
ConsoleKernel
{
/**
* The Artisan commands provided by your application.
*
* @var array
*/
protected
$commands
=
[
'App\Console\Commands\InspireCommand'
,
];
/**
* Run the console application.
*
...
...
app/Http/Kernel.php
View file @
9aed9deb
...
...
@@ -17,7 +17,7 @@ class Kernel extends HttpKernel {
'Illuminate\Session\Middleware\ReadSession'
,
'Illuminate\Session\Middleware\WriteSession'
,
'Illuminate\View\Middleware\ShareErrorsFromSession'
,
'App\Http\Middleware\
CsrfTokenIsValid
'
,
'App\Http\Middleware\
VerifyCsrfToken
'
,
];
/**
...
...
app/Http/Middleware/
CsrfTokenIsValid
.php
→
app/Http/Middleware/
VerifyCsrfToken
.php
View file @
9aed9deb
...
...
@@ -4,7 +4,7 @@ use Closure;
use
Illuminate\Contracts\Routing\Middleware
;
use
Illuminate\Session\TokenMismatchException
;
class
CsrfTokenIsValid
implements
Middleware
{
class
VerifyCsrfToken
implements
Middleware
{
/**
* Handle an incoming request.
...
...
app/Providers/ArtisanServiceProvider.php
deleted
100644 → 0
View file @
ec9edec9
<?php
namespace
App\Providers
;
use
InspireCommand
;
use
Illuminate\Support\ServiceProvider
;
class
ArtisanServiceProvider
extends
ServiceProvider
{
/**
* Indicates if loading of the provider is deferred.
*
* @var bool
*/
protected
$defer
=
true
;
/**
* Register the service provider.
*
* @return void
*/
public
function
register
()
{
$this
->
commands
(
'App\Console\Commands\InspireCommand'
);
}
/**
* Get the services provided by the provider.
*
* @return array
*/
public
function
provides
()
{
return
[
'App\Console\Commands\InspireCommand'
];
}
}
config/app.php
View file @
9aed9deb
...
...
@@ -98,7 +98,6 @@ return [
/*
* Application Service Providers...
*/
'App\Providers\ArtisanServiceProvider'
,
'App\Providers\EventServiceProvider'
,
'App\Providers\LogServiceProvider'
,
'App\Providers\RouteServiceProvider'
,
...
...
config/compile.php
View file @
9aed9deb
...
...
@@ -15,7 +15,6 @@ return [
'files'
=>
[
__DIR__
.
'/../app/Providers/ArtisanServiceProvider.php'
,
__DIR__
.
'/../app/Providers/EventServiceProvider.php'
,
__DIR__
.
'/../app/Providers/LogServiceProvider.php'
,
__DIR__
.
'/../app/Providers/RouteServiceProvider.php'
,
...
...
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