feat(main): Initial Module
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
services:
|
||||
websmid.customhtml.form.type.customhtml:
|
||||
public: true
|
||||
class: 'Websmid\CustomHtml\Form\Type\CustomHtmlType'
|
||||
parent: 'form.type.translatable.aware'
|
||||
tags:
|
||||
- { name: form.type }
|
||||
|
||||
websmid.customhtml.form.customhtml_data_provider:
|
||||
public: true
|
||||
class: 'Websmid\CustomHtml\Form\DataProvider\CustomHtmlDataProvider'
|
||||
|
||||
websmid.customhtml.form.customhtml_data_form_builder:
|
||||
public: true
|
||||
class: 'PrestaShop\PrestaShop\Core\Form\IdentifiableObject\Builder\FormBuilder'
|
||||
factory:
|
||||
- '@prestashop.core.form.builder.form_builder_factory'
|
||||
- 'create'
|
||||
arguments:
|
||||
- 'Websmid\CustomHtml\Form\Type\CustomHtmlType'
|
||||
- '@websmid.customhtml.form.customhtml_data_provider'
|
||||
|
||||
websmid.customhtml.form.customhtml_data_handler:
|
||||
public: true
|
||||
class: 'Websmid\CustomHtml\Form\DataHandler\CustomHtmlDataHandler'
|
||||
|
||||
websmid.customhtml.form.customhtml_form_handler:
|
||||
public: true
|
||||
class: 'PrestaShop\PrestaShop\Core\Form\IdentifiableObject\Handler\FormHandler'
|
||||
factory:
|
||||
- '@prestashop.core.form.identifiable_object.handler.form_handler_factory'
|
||||
- 'create'
|
||||
arguments:
|
||||
- '@websmid.customhtml.form.customhtml_data_handler'
|
||||
@@ -0,0 +1,35 @@
|
||||
services:
|
||||
websmid.customhtml.grid.definition.factory.customhtml_definition_factory:
|
||||
public: true
|
||||
class: 'Websmid\CustomHtml\Grid\Definition\Factory\CustomHtmlGridDefinitionFactory'
|
||||
parent: 'prestashop.core.grid.definition.factory.abstract_grid_definition'
|
||||
|
||||
websmid.customhtml.grid.query.customhtml_query_builder:
|
||||
public: true
|
||||
class: 'Websmid\CustomHtml\Grid\Query\CustomHtmlQueryBuilder'
|
||||
parent: 'prestashop.core.grid.abstract_query_builder'
|
||||
arguments:
|
||||
- '@prestashop.core.query.doctrine_search_criteria_applicator'
|
||||
- "@=service('prestashop.adapter.legacy.context').getContext().language.id"
|
||||
- "@=service('prestashop.adapter.legacy.context').getContext().shop.id"
|
||||
- "@=service('prestashop.adapter.legacy.context').getContext().shop.id_shop_group"
|
||||
- '@prestashop.core.grid.query.filter.doctrine_filter_applicator'
|
||||
- '@prestashop.adapter.legacy.configuration'
|
||||
|
||||
websmid.customhtml.grid.data.factory.customhtml_data_factory:
|
||||
public: true
|
||||
class: '%prestashop.core.grid.data.factory.doctrine_grid_data_factory%'
|
||||
arguments:
|
||||
- '@websmid.customhtml.grid.query.customhtml_query_builder'
|
||||
- '@prestashop.core.hook.dispatcher'
|
||||
- '@prestashop.core.grid.query.doctrine_query_parser'
|
||||
- 'customhtml'
|
||||
|
||||
websmid.customhtml.grid.customhtml_grid_factory:
|
||||
public: true
|
||||
class: 'PrestaShop\PrestaShop\Core\Grid\GridFactory'
|
||||
arguments:
|
||||
- '@websmid.customhtml.grid.definition.factory.customhtml_definition_factory'
|
||||
- '@websmid.customhtml.grid.data.factory.customhtml_data_factory'
|
||||
- '@prestashop.core.grid.filter.form_factory'
|
||||
- '@prestashop.core.hook.dispatcher'
|
||||
@@ -0,0 +1,32 @@
|
||||
customhtml_index:
|
||||
path: ws_customhtml
|
||||
methods: [GET]
|
||||
defaults:
|
||||
_controller: 'Websmid\CustomHtml\Controller\CustomHtmlController::indexAction'
|
||||
_legacy_controller: AdminCustomHtmlOverview
|
||||
_legacy_link: AdminCustomHtmlOverview:index
|
||||
|
||||
customhtml_search:
|
||||
path: ws_customhtml
|
||||
methods: [POST]
|
||||
defaults:
|
||||
_controller: 'Websmid\CustomHtml\Controller\CustomHtmlController::searchAction'
|
||||
_legacy_controller: AdminCustomHtmlOverview
|
||||
|
||||
customhtml_create:
|
||||
path: ws_customhtml/create
|
||||
methods: [POST, GET]
|
||||
defaults:
|
||||
_controller: 'Websmid\CustomHtml\Controller\CustomHtmlController::createAction'
|
||||
|
||||
customhtml_edit:
|
||||
path: ws_customhtml/edit/{idCustomHtml}
|
||||
methods: [POST, GET]
|
||||
defaults:
|
||||
_controller: 'Websmid\CustomHtml\Controller\CustomHtmlController::editAction'
|
||||
|
||||
customhtml_delete:
|
||||
path: ws_customhtml/delete/{idCustomHtml}
|
||||
methods: [DELETE, GET, POST]
|
||||
defaults:
|
||||
_controller: 'Websmid\CustomHtml\Controller\CustomHtmlController::deleteAction'
|
||||
@@ -0,0 +1,3 @@
|
||||
imports:
|
||||
- { resource: form.yml }
|
||||
- { resource: grid.yml }
|
||||
Reference in New Issue
Block a user