FEATURE: move widget and template dir installation into middleware, optimize middleware groups
This commit is contained in:
@@ -1,12 +1,6 @@
|
||||
<?php namespace Modules\Staticpages\Providers;
|
||||
|
||||
use App\Enumerations\ModulesHandlerToId;
|
||||
use App\Enumerations\ModulesWithIds;
|
||||
use App\Handlers\Registrators\TemplateRegistrator;
|
||||
use App\Models\ActionLogType;
|
||||
use App\Models\Module;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use Symfony\Component\Process\Exception\InvalidArgumentException;
|
||||
|
||||
class StaticPagesServiceProvider extends ServiceProvider
|
||||
{
|
||||
@@ -45,7 +39,7 @@ class StaticPagesServiceProvider extends ServiceProvider
|
||||
*/
|
||||
protected function registerConfig()
|
||||
{
|
||||
$config = __DIR__ . DIRECTORY_SEPARATOR .'../Config/config.php';
|
||||
$config = __DIR__ . DIRECTORY_SEPARATOR . '../Config/config.php';
|
||||
$this->publishes([$config => config_path('staticpages.php')]);
|
||||
$this->mergeConfigFrom($config, 'staticpages');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user