-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(module): move settings to dedicated page
- Loading branch information
1 parent
0297ce0
commit 138ed5c
Showing
11 changed files
with
102 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php | ||
/** @noinspection PhpUnused */ | ||
|
||
declare(strict_types=1); | ||
|
||
use MyParcelNL\PrestaShop\Controller\SettingsController; | ||
|
||
final class MyParcelNLAdminSettingsController extends SettingsController { } |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace MyParcelNL\PrestaShop\Controller; | ||
|
||
use MyParcelNL; | ||
use PrestaShopBundle\Controller\Admin\FrameworkBundleAdminController; | ||
|
||
/** | ||
* @property \MyParcelNL $module | ||
*/ | ||
abstract class AbstractAdminController extends FrameworkBundleAdminController | ||
{ | ||
public function __construct() | ||
{ | ||
parent::__construct(); | ||
|
||
// Trigger PDK setup | ||
new MyParcelNL(); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace MyParcelNL\PrestaShop\Controller; | ||
|
||
use MyParcelNL\Pdk\Facade\Frontend; | ||
use Symfony\Component\HttpFoundation\Response; | ||
|
||
/** | ||
* @property \MyParcelNL $module | ||
*/ | ||
class SettingsController extends AbstractAdminController | ||
{ | ||
/** | ||
* @return Response | ||
*/ | ||
public function index(): Response | ||
{ | ||
return $this->render('@Modules/myparcelnl/views/templates/admin/page.twig', [ | ||
'content' => Frontend::renderPluginSettings(), | ||
]); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{% extends '@PrestaShop/Admin/layout.html.twig' %} | ||
|
||
{% block content %} | ||
{{ content | raw }} | ||
{% endblock %} |