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
20048613
Commit
20048613
authored
Oct 17, 2014
by
Nicolas Widart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Register the routes with the new routes SP
parent
d3b42637
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
50 additions
and
11 deletions
+50
-11
RouteServiceProvider.php
Providers/RouteServiceProvider.php
+48
-0
module.json
module.json
+2
-1
start.php
start.php
+0
-10
No files found.
Providers/RouteServiceProvider.php
0 → 100644
View file @
20048613
<?php
namespace
Modules\Setting\Providers
;
use
Illuminate\Routing\Router
;
use
Illuminate\Foundation\Support\Providers\RouteServiceProvider
as
ServiceProvider
;
class
RouteServiceProvider
extends
ServiceProvider
{
/**
* The root namespace to assume when generating URLs to actions.
*
* @var string
*/
protected
$rootUrlNamespace
=
'Modules\Setting\Http\Controllers'
;
/**
* The controllers to scan for route annotations.
*
* @var array
*/
protected
$scan
=
[
'Modules\Setting\Http\Controllers'
,
];
/**
* Called before routes are registered.
*
* Register any model bindings or pattern based filters.
*
* @param Router $router
* @return void
*/
public
function
before
(
Router
$router
)
{
//
}
/**
* Define the routes for the application.
*
* @return void
*/
public
function
map
(
Router
$router
)
{
require
__DIR__
.
'/../Http/routes.php'
;
}
}
module.json
View file @
20048613
...
...
@@ -7,6 +7,7 @@
],
"active"
:
1
,
"providers"
:
[
"Modules
\\
Setting
\\
Providers
\\
SettingServiceProvider"
"Modules
\\
Setting
\\
Providers
\\
SettingServiceProvider"
,
"Modules
\\
Setting
\\
Providers
\\
RouteServiceProvider"
]
}
\ No newline at end of file
start.php
View file @
20048613
...
...
@@ -16,14 +16,4 @@ Lang::addNamespace('setting', __DIR__ . '/Resources/lang/');
Config
::
addNamespace
(
'setting'
,
__DIR__
.
'/Config/'
);
/*
|--------------------------------------------------------------------------
| Require The Routes file.
|--------------------------------------------------------------------------
|
| Next, this module will load filters and routes file.
|
*/
require
__DIR__
.
'/Http/routes.php'
;
require
__DIR__
.
'/composers.php'
;
\ No newline at end of file
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