FEATURE: move static page handler into config
This commit is contained in:
@@ -0,0 +1,6 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
return [
|
||||||
|
'name' => 'StaticPages',
|
||||||
|
'handler' => '\\Modules\\StaticPages\\Handlers\\StaticPage'
|
||||||
|
];
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'name' => 'StaticPages'
|
'name' => 'StaticPages',
|
||||||
|
'handler' => '\\Modules\\StaticPages\\Handlers\\StaticPage'
|
||||||
];
|
];
|
||||||
@@ -48,7 +48,7 @@ class StaticPagesServiceProvider extends ServiceProvider
|
|||||||
*/
|
*/
|
||||||
protected function install()
|
protected function install()
|
||||||
{
|
{
|
||||||
$handler = '\\Modules\\StaticPages\\Handlers\\StaticPage';
|
$handler = config('staticpages.handler');
|
||||||
$installedModules = Modules::getWithTranslations();
|
$installedModules = Modules::getWithTranslations();
|
||||||
if (!isset($installedModules[$handler])) {
|
if (!isset($installedModules[$handler])) {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user