Commit 20048613 authored by Nicolas Widart's avatar Nicolas Widart

Register the routes with the new routes SP

parent d3b42637
<?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';
}
}
......@@ -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
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment