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
c1db7050
Commit
c1db7050
authored
Jan 02, 2015
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a basic service provider for config overwriting.
parent
c7eecb1c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
4 deletions
+28
-4
AppServiceProvider.php
app/Providers/AppServiceProvider.php
+4
-4
ConfigServiceProvider.php
app/Providers/ConfigServiceProvider.php
+23
-0
app.php
config/app.php
+1
-0
No files found.
app/Providers/AppServiceProvider.php
View file @
c1db7050
...
...
@@ -17,14 +17,14 @@ class AppServiceProvider extends ServiceProvider {
/**
* Register any application services.
*
* This service provider is a great spot to register your various container
* bindings with the application. As you can see, we are registering our
* "Registrar" implementation here. You can add your own bindings too!
*
* @return void
*/
public
function
register
()
{
// This service provider is a great spot to register your various container
// bindings with the application. As you can see, we are registering our
// "Registrar" implementation here. You can add your own bindings too!
$this
->
app
->
bind
(
'Illuminate\Contracts\Auth\Registrar'
,
'App\Services\Registrar'
...
...
app/Providers/ConfigServiceProvider.php
0 → 100644
View file @
c1db7050
<?php
namespace
App\Providers
;
use
Illuminate\Support\ServiceProvider
;
class
ConfigServiceProvider
extends
ServiceProvider
{
/**
* Overwrite any vendor / package configuration.
*
* This service provider is intended to provide a convenient location for you
* to overwrite any "vendor" or package configuration that you may want to
* modify before the application handles the incoming request / command.
*
* @return void
*/
public
function
register
()
{
config
([
//
]);
}
}
config/app.php
View file @
c1db7050
...
...
@@ -141,6 +141,7 @@ return [
*/
'App\Providers\AppServiceProvider'
,
'App\Providers\BusServiceProvider'
,
'App\Providers\ConfigServiceProvider'
,
'App\Providers\EventServiceProvider'
,
'App\Providers\RouteServiceProvider'
,
...
...
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