feat(main): Groups and blocks

This commit is contained in:
2026-08-10 16:13:15 +02:00
parent 6aff506cd6
commit 635c13a0ed
39 changed files with 1188 additions and 237 deletions
+45 -10
View File
@@ -1,12 +1,12 @@
services:
websmid.customhtml.grid.definition.factory.customhtml_definition_factory:
websmid.customhtml.grid.definition.factory.customhtmlgroup_definition_factory:
public: true
class: 'Websmid\CustomHtml\Grid\Definition\Factory\CustomHtmlGridDefinitionFactory'
class: 'Websmid\CustomHtml\Grid\Definition\Factory\CustomHtmlGroupGridDefinitionFactory'
parent: 'prestashop.core.grid.definition.factory.abstract_grid_definition'
websmid.customhtml.grid.query.customhtml_query_builder:
websmid.customhtml.grid.query.customhtmlgroup_query_builder:
public: true
class: 'Websmid\CustomHtml\Grid\Query\CustomHtmlQueryBuilder'
class: 'Websmid\CustomHtml\Grid\Query\CustomHtmlGroupQueryBuilder'
parent: 'prestashop.core.grid.abstract_query_builder'
arguments:
- '@prestashop.core.query.doctrine_search_criteria_applicator'
@@ -16,20 +16,55 @@ services:
- '@prestashop.core.grid.query.filter.doctrine_filter_applicator'
- '@prestashop.adapter.legacy.configuration'
websmid.customhtml.grid.data.factory.customhtml_data_factory:
websmid.customhtml.grid.data.factory.customhtmlgroup_data_factory:
public: true
class: '%prestashop.core.grid.data.factory.doctrine_grid_data_factory%'
arguments:
- '@websmid.customhtml.grid.query.customhtml_query_builder'
- '@websmid.customhtml.grid.query.customhtmlgroup_query_builder'
- '@prestashop.core.hook.dispatcher'
- '@prestashop.core.grid.query.doctrine_query_parser'
- 'customhtml'
- 'customhtmlgroup'
websmid.customhtml.grid.customhtml_grid_factory:
websmid.customhtml.grid.customhtmlgroup_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'
- '@websmid.customhtml.grid.definition.factory.customhtmlgroup_definition_factory'
- '@websmid.customhtml.grid.data.factory.customhtmlgroup_data_factory'
- '@prestashop.core.grid.filter.form_factory'
- '@prestashop.core.hook.dispatcher'
websmid.customhtml.grid.definition.factory.customhtmlblock_definition_factory:
public: true
class: 'Websmid\CustomHtml\Grid\Definition\Factory\CustomHtmlBlockGridDefinitionFactory'
parent: 'prestashop.core.grid.definition.factory.abstract_grid_definition'
websmid.customhtml.grid.query.customhtmlblock_query_builder:
public: true
class: 'Websmid\CustomHtml\Grid\Query\CustomHtmlBlockQueryBuilder'
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.customhtmlblock_data_factory:
public: true
class: '%prestashop.core.grid.data.factory.doctrine_grid_data_factory%'
arguments:
- '@websmid.customhtml.grid.query.customhtmlblock_query_builder'
- '@prestashop.core.hook.dispatcher'
- '@prestashop.core.grid.query.doctrine_query_parser'
- 'customhtmlblock'
websmid.customhtml.grid.customhtmlblock_grid_factory:
public: true
class: 'PrestaShop\PrestaShop\Core\Grid\GridFactory'
arguments:
- '@websmid.customhtml.grid.definition.factory.customhtmlblock_definition_factory'
- '@websmid.customhtml.grid.data.factory.customhtmlblock_data_factory'
- '@prestashop.core.grid.filter.form_factory'
- '@prestashop.core.hook.dispatcher'