Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Administrator
Platform
Commits
c605eb59
Commit
c605eb59
authored
Nov 26, 2014
by
Nicolas Widart
Browse files
Options
Browse Files
Download
Plain Diff
Merge commit '
337ca737
'
* commit '
337ca737
': Squashed 'Modules/Core/' changes from aa20d4a..0a5e9bc
parents
2a0a6a4d
337ca737
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
44 deletions
+4
-44
CoreServiceProvider.php
Modules/Core/Providers/CoreServiceProvider.php
+0
-19
module.json
Modules/Core/module.json
+4
-0
start.php
Modules/Core/start.php
+0
-25
No files found.
Modules/Core/Providers/CoreServiceProvider.php
View file @
c605eb59
...
@@ -40,7 +40,6 @@ class CoreServiceProvider extends ServiceProvider
...
@@ -40,7 +40,6 @@ class CoreServiceProvider extends ServiceProvider
*/
*/
public
function
register
()
public
function
register
()
{
{
$this
->
loadModuleProviders
();
$this
->
registerMenuRoutes
();
$this
->
registerMenuRoutes
();
$this
->
registerFilters
(
$this
->
app
[
'router'
]);
$this
->
registerFilters
(
$this
->
app
[
'router'
]);
$this
->
registerCommands
();
$this
->
registerCommands
();
...
@@ -56,24 +55,6 @@ class CoreServiceProvider extends ServiceProvider
...
@@ -56,24 +55,6 @@ class CoreServiceProvider extends ServiceProvider
return
array
();
return
array
();
}
}
/**
* Load the Service Providers for all enabled modules
*/
private
function
loadModuleProviders
()
{
$this
->
app
->
booted
(
function
(
$app
)
{
$modules
=
$app
[
'modules'
]
->
enabled
();
foreach
(
$modules
as
$module
)
{
if
(
$providers
=
$app
[
'modules'
]
->
prop
(
"
{
$module
}
::providers"
))
{
foreach
(
$providers
as
$provider
)
{
$app
->
register
(
$provider
);
}
}
}
});
}
/**
/**
* Register the filters.
* Register the filters.
*
*
...
...
Modules/Core/module.json
View file @
c605eb59
...
@@ -13,7 +13,11 @@
...
@@ -13,7 +13,11 @@
"mcamara/laravel-localization"
:
"dev-Laravel5Support"
"mcamara/laravel-localization"
:
"dev-Laravel5Support"
},
},
"active"
:
1
,
"active"
:
1
,
"priority"
:
1
,
"providers"
:
[
"providers"
:
[
"Modules
\\
Core
\\
Providers
\\
RoutingServiceProvider"
"Modules
\\
Core
\\
Providers
\\
RoutingServiceProvider"
],
"files"
:
[
"start.php"
]
]
}
}
Modules/Core/start.php
View file @
c605eb59
<?php
<?php
/*
|--------------------------------------------------------------------------
| Register The Module Namespaces
|--------------------------------------------------------------------------
|
| Here is you can register the namespace for this module.
| You may to edit this namespace if you want.
|
*/
View
::
addNamespace
(
'core'
,
__DIR__
.
'/Resources/views/'
);
Lang
::
addNamespace
(
'core'
,
__DIR__
.
'/Resources/lang/'
);
Config
::
addNamespace
(
'core'
,
__DIR__
.
'/Config/'
);
/*
|--------------------------------------------------------------------------
| Require The Routes file.
|--------------------------------------------------------------------------
|
| Next, this module will load filters and routes file.
|
*/
require
__DIR__
.
'/Http/routes.php'
;
require
__DIR__
.
'/Http/routes.php'
;
require
__DIR__
.
'/composers.php'
;
require
__DIR__
.
'/composers.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