-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b1dcb56
commit 62920e1
Showing
30 changed files
with
101 additions
and
92 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
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
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 |
---|---|---|
|
@@ -43,5 +43,4 @@ protected function getModuleFolder(): string | |
{ | ||
return $this->getModuleDirectory().DIRECTORY_SEPARATOR; | ||
} | ||
|
||
} |
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
21 changes: 2 additions & 19 deletions
21
src/Resources/templates/generate_module_command/module/bootstrap.front.php.twig
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 |
---|---|---|
@@ -1,22 +1,5 @@ | ||
<?php | ||
$_SERVER['REQUEST_METHOD'] = 'POST'; | ||
define('_PS_ROOT_DIR_', __DIR__ . '/../../..'); | ||
if (!defined('_PS_ADMIN_DIR_')) { | ||
define('_PS_ADMIN_DIR_', _PS_ROOT_DIR_.ADMIN_FOLDER_NAME); | ||
} | ||
require dirname(__FILE__).'/../../../../config/config.inc.php'; | ||
require_once __DIR__.'/../../../../init.php'; | ||
if (!defined('PS_ADMIN_DIR')) { | ||
define('PS_ADMIN_DIR', _PS_ADMIN_DIR_); | ||
} | ||
require_once __DIR__.'/../../../config/config.inc.php'; | ||
require_once __DIR__.'/../../../init.php'; | ||
require_once _PS_CONFIG_DIR_ . 'autoload.php'; | ||
## admin | ||
require_once _PS_ROOT_DIR_.'/app/AppKernel.php'; | ||
$kernel = new \AppKernel(_PS_ENV_, _PS_DEBUG_); | ||
$kernel->boot(); | ||
//define('_NEW_COOKIE_KEY_', PhpEncryption::createNewRandomKey()); | ||
require_once _PS_VENDOR_DIR_ . '/autoload.php'; |
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
22 changes: 11 additions & 11 deletions
22
src/Resources/templates/generate_module_command/module/configuration/configuration.yml.twig
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 |
---|---|---|
@@ -1,28 +1,28 @@ | ||
services: | ||
{{ serviceNameSpace }}.form.type.{{ serviceName }}_text: | ||
class: {{ nameSpace }}\Form\{{className}}ConfigurationFormType | ||
parent: 'form.type.translatable.aware' | ||
public: true | ||
calls: | ||
- [ setOrderStatusChoicesProvider,[ '@prestashop.core.form.choice_provider.order_state_by_id' ] ] | ||
tags: | ||
- { name: form.type } | ||
|
||
{{ serviceNameSpace }}.data.configuration.{{ serviceName }}_text_data_configuration: | ||
class: {{ nameSpace }}\DataConfiguration\{{className}}TextDataConfiguration | ||
class: {{ nameSpace }}\Configuration\{{className}}TextDataConfiguration | ||
arguments: [ '@prestashop.adapter.legacy.configuration' ] | ||
|
||
{{ serviceNameSpace }}.provider.{{serviceName}}_configuration_text_form_data_provider: | ||
class: {{ nameSpace }}\Provider\{{className}}ConfigurationTextFormDataProvider | ||
arguments: | ||
- '@{{ serviceNameSpace }}.data.configuration.{{serviceName}}_text_data_configuration' | ||
- | ||
|
||
{{nameSpace}}\Form\{{className}}ConfigurationFormType: | ||
class: {{nameSpace}}\Form\{{className}}ConfigurationFormType | ||
arguments: | ||
- "@translator" | ||
- "@=service('prestashop.adapter.legacy.context').getLanguages()" | ||
tags: | ||
- { name: form.type } | ||
|
||
{{ serviceNameSpace }}.handler.{{ serviceName }}_configuration_text_form_data_handler: | ||
class: 'PrestaShop\PrestaShop\Core\Form\Handler' | ||
public: true | ||
arguments: | ||
- '@form.factory' | ||
- '@prestashop.core.hook.dispatcher' | ||
- '@{{serviceNameSpace}}.provider.{{ serviceName }}_configuration_text_form_data_provider' | ||
- '{{nameSpace}}\Form\{{className}}FormType' | ||
- '{{nameSpace}}\Form\{{className}}ConfigurationFormType' | ||
- '{{ className }}' |
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
7 changes: 4 additions & 3 deletions
7
src/Resources/templates/generate_module_command/module/controller/controller.php.twig
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
4 changes: 1 addition & 3 deletions
4
...s/templates/generate_module_command/module/front_controller/ajax_front_controller.js.twig
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 |
---|---|---|
@@ -1,6 +1,4 @@ | ||
/** | ||
* <your license here> | ||
*/ | ||
|
||
(function () { | ||
|
||
$.ajax({ | ||
|
Oops, something went wrong.