first commit

This commit is contained in:
2024-11-05 12:22:50 +01:00
commit e5682a3912
19641 changed files with 2948548 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
blockwishlist_configuration:
path: blockwishlist/configuration
methods: [GET, POST]
defaults:
_controller: PrestaShop\Module\BlockWishList\Controller\WishlistConfigurationAdminController::configurationAction
_legacy_controller: 'WishlistConfigurationAdminController'
_legacy_link: 'WishlistConfigurationAdminController'
blockwishlist_statistics:
path: blockwishlist/statistics
methods: [GET]
defaults:
_controller: PrestaShop\Module\BlockWishList\Controller\WishlistConfigurationAdminController::statisticsAction
_legacy_controller: 'WishlistStatisticsAdminController'
_legacy_link: 'WishlistStatisticsAdminController'
blockwishlist_statistics_reset:
path: blockwishlist/statistics/reset
methods: [POST]
defaults:
_controller: PrestaShop\Module\BlockWishList\Controller\WishlistConfigurationAdminController::resetStatisticsCacheAction

View File

@@ -0,0 +1,103 @@
services:
# Controller
PrestaShop\Module\BlockWishList\Controller\WishlistConfigurationAdminController:
public: true
class: PrestaShop\Module\BlockWishList\Controller\WishlistConfigurationAdminController
arguments:
- '@doctrine.cache.provider'
- '@=service("prestashop.adapter.shop.context").getContextShopID()'
# Calculator
prestashop.module.blockwishlist.calculator.statistics_calculator:
public: true
class: PrestaShop\Module\BlockWishList\Calculator\StatisticsCalculator
arguments:
- '@prestashop.adapter.legacy.context' #used for product presenter
- '@=service("prestashop.core.localization.locale.repository").getLocale(service("prestashop.adapter.legacy.context").getContext().language.getLocale())' # From PS 1.7.7: "@prestashop.core.localization.locale.context_locale"
# Grid Definition
prestashop.module.blockwishlist.grid.all_time_statistics_grid_definition_factory:
public: true
class: 'PrestaShop\Module\BlockWishList\Grid\Definition\AllTimeStatisticsGridDefinitionFactory'
parent: 'prestashop.core.grid.definition.factory.abstract_grid_definition'
prestashop.module.blockwishlist.grid.current_year_statistics_grid_definition_factory:
public: true
class: 'PrestaShop\Module\BlockWishList\Grid\Definition\CurrentYearStatisticsGridDefinitionFactory'
parent: 'prestashop.core.grid.definition.factory.abstract_grid_definition'
prestashop.module.blockwishlist.grid.current_month_statistics_grid_definition_factory:
public: true
class: 'PrestaShop\Module\BlockWishList\Grid\Definition\CurrentMonthStatisticsGridDefinitionFactory'
parent: 'prestashop.core.grid.definition.factory.abstract_grid_definition'
prestashop.module.blockwishlist.grid.current_day_statistics_grid_definition_factory:
public: true
class: 'PrestaShop\Module\BlockWishList\Grid\Definition\CurrentDayStatisticsGridDefinitionFactory'
parent: 'prestashop.core.grid.definition.factory.abstract_grid_definition'
# Grid Data Factories
prestashop.module.blockwishlist.grid.all_time_statistics_data_factory:
class: 'PrestaShop\Module\BlockWishList\Grid\Data\AllTimeStatisticsGridDataFactory'
arguments:
- '@doctrine.cache.provider'
- '@prestashop.module.blockwishlist.calculator.statistics_calculator'
- '@=service("prestashop.adapter.shop.context").getContextShopID()'
prestashop.module.blockwishlist.grid.current_year_statistics_data_factory:
class: 'PrestaShop\Module\BlockWishList\Grid\Data\CurrentYearStatisticsGridDataFactory'
arguments:
- '@doctrine.cache.provider'
- '@prestashop.module.blockwishlist.calculator.statistics_calculator'
- '@=service("prestashop.adapter.shop.context").getContextShopID()'
prestashop.module.blockwishlist.grid.current_month_statistics_data_factory:
class: 'PrestaShop\Module\BlockWishList\Grid\Data\CurrentMonthStatisticsGridDataFactory'
arguments:
- '@doctrine.cache.provider'
- '@prestashop.module.blockwishlist.calculator.statistics_calculator'
- '@=service("prestashop.adapter.shop.context").getContextShopID()'
prestashop.module.blockwishlist.grid.current_day_statistics_data_factory:
class: 'PrestaShop\Module\BlockWishList\Grid\Data\CurrentDayStatisticsGridDataFactory'
arguments:
- '@doctrine.cache.provider'
- '@prestashop.module.blockwishlist.calculator.statistics_calculator'
- '@=service("prestashop.adapter.shop.context").getContextShopID()'
# Grid Factories
prestashop.module.blockwishlist.grid.all_time_stastistics_grid_factory:
public: true
class: 'PrestaShop\PrestaShop\Core\Grid\GridFactory'
arguments:
- '@prestashop.module.blockwishlist.grid.all_time_statistics_grid_definition_factory'
- '@prestashop.module.blockwishlist.grid.all_time_statistics_data_factory'
- '@prestashop.core.grid.filter.form_factory'
- '@prestashop.core.hook.dispatcher'
prestashop.module.blockwishlist.grid.current_year_stastistics_grid_factory:
public: true
class: 'PrestaShop\PrestaShop\Core\Grid\GridFactory'
arguments:
- '@prestashop.module.blockwishlist.grid.current_year_statistics_grid_definition_factory'
- '@prestashop.module.blockwishlist.grid.current_year_statistics_data_factory'
- '@prestashop.core.grid.filter.form_factory'
- '@prestashop.core.hook.dispatcher'
prestashop.module.blockwishlist.grid.current_month_stastistics_grid_factory:
public: true
class: 'PrestaShop\PrestaShop\Core\Grid\GridFactory'
arguments:
- '@prestashop.module.blockwishlist.grid.current_month_statistics_grid_definition_factory'
- '@prestashop.module.blockwishlist.grid.current_month_statistics_data_factory'
- '@prestashop.core.grid.filter.form_factory'
- '@prestashop.core.hook.dispatcher'
prestashop.module.blockwishlist.grid.current_day_stastistics_grid_factory:
public: true
class: 'PrestaShop\PrestaShop\Core\Grid\GridFactory'
arguments:
- '@prestashop.module.blockwishlist.grid.current_day_statistics_grid_definition_factory'
- '@prestashop.module.blockwishlist.grid.current_day_statistics_data_factory'
- '@prestashop.core.grid.filter.form_factory'
- '@prestashop.core.hook.dispatcher'