first commit
This commit is contained in:
28
modules/ps_mbo/config/index.php
Normal file
28
modules/ps_mbo/config/index.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2020 PrestaShop and Contributors
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2020 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../');
|
||||
exit;
|
||||
31
modules/ps_mbo/config/routes.yml
Normal file
31
modules/ps_mbo/config/routes.yml
Normal file
@@ -0,0 +1,31 @@
|
||||
admin_mbo_catalog_module:
|
||||
path: /addons/modules/catalog
|
||||
methods: [GET]
|
||||
defaults:
|
||||
_controller: mbo.controller.modules.catalog:indexAction
|
||||
_legacy_controller: AdminPsMboModule
|
||||
_legacy_link: AdminPsMboModule
|
||||
|
||||
admin_mbo_catalog_module_selection:
|
||||
path: /addons/modules/catalog/selection
|
||||
methods: [GET]
|
||||
defaults:
|
||||
_controller: mbo.controller.modules.selection:indexAction
|
||||
_legacy_controller: AdminPsMboAddons
|
||||
_legacy_link: AdminPsMboAddons
|
||||
|
||||
admin_mbo_recommended_modules:
|
||||
path: /addons/modules/recommended
|
||||
methods: [GET]
|
||||
defaults:
|
||||
_controller: mbo.controller.modules.recommended:indexAction
|
||||
_legacy_controller: AdminPsMboRecommended
|
||||
_legacy_link: AdminPsMboRecommended
|
||||
|
||||
admin_mbo_catalog_theme:
|
||||
path: /addons/themes/catalog
|
||||
methods: [GET]
|
||||
defaults:
|
||||
_controller: mbo.controller.themes.catalog:indexAction
|
||||
_legacy_controller: AdminPsMboTheme
|
||||
_legacy_link: AdminPsMboTheme
|
||||
69
modules/ps_mbo/config/services.yml
Normal file
69
modules/ps_mbo/config/services.yml
Normal file
@@ -0,0 +1,69 @@
|
||||
services:
|
||||
_defaults:
|
||||
public: true
|
||||
|
||||
mbo.externalcontent.provider:
|
||||
class: 'PrestaShop\Module\Mbo\ExternalContentProvider\ExternalContentProvider'
|
||||
|
||||
mbo.adapter.module_collection_data_provider:
|
||||
class: 'PrestaShop\Module\Mbo\ModuleCollectionDataProvider'
|
||||
arguments:
|
||||
- '@prestashop.core.admin.data_provider.module_interface'
|
||||
- '@prestashop.core.admin.module.repository'
|
||||
- '@prestashop.adapter.presenter.module'
|
||||
- '@prestashop.core.admin.tab.repository'
|
||||
- '@prestashop.adapter.legacy.context'
|
||||
|
||||
mbo.tab.collection.factory:
|
||||
class: 'PrestaShop\Module\Mbo\Tab\TabCollectionFactory'
|
||||
arguments:
|
||||
- '@mbo.adapter.module_collection_data_provider'
|
||||
|
||||
mbo.tab.collection.provider:
|
||||
class: 'PrestaShop\Module\Mbo\Tab\TabCollectionProvider'
|
||||
arguments:
|
||||
- '@prestashop.adapter.legacy.context'
|
||||
- '@mbo.externalcontent.provider'
|
||||
- '@mbo.tab.collection.factory'
|
||||
- '@doctrine.cache.provider'
|
||||
|
||||
mbo.recommendedlinks.provider:
|
||||
class: 'PrestaShop\Module\Mbo\RecommendedLink\RecommendedLinkProvider'
|
||||
arguments:
|
||||
- '@prestashop.adapter.legacy.context'
|
||||
- '@serializer'
|
||||
|
||||
mbo.recommendedmodules.presenter:
|
||||
class: 'PrestaShop\Module\Mbo\RecommendedModule\RecommendedModulePresenter'
|
||||
|
||||
mbo.addons_selection_link_provider:
|
||||
class: 'PrestaShop\Module\Mbo\AddonsSelectionLinkProvider'
|
||||
arguments:
|
||||
- '@prestashop.core.foundation.version'
|
||||
- '@prestashop.adapter.legacy.context'
|
||||
- '@prestashop.adapter.legacy.configuration'
|
||||
- '@request_stack'
|
||||
|
||||
mbo.controller.modules.catalog:
|
||||
class: 'PrestaShop\Module\Mbo\Controller\Admin\ModuleCatalogController'
|
||||
|
||||
mbo.controller.modules.selection:
|
||||
class: 'PrestaShop\Module\Mbo\Controller\Admin\ModuleSelectionController'
|
||||
arguments:
|
||||
- '@request_stack'
|
||||
- '@mbo.externalcontent.provider'
|
||||
- '@mbo.addons_selection_link_provider'
|
||||
|
||||
mbo.controller.modules.recommended:
|
||||
class: 'PrestaShop\Module\Mbo\Controller\Admin\ModuleRecommendedController'
|
||||
arguments:
|
||||
- '@request_stack'
|
||||
- '@mbo.tab.collection.provider'
|
||||
- '@mbo.recommendedmodules.presenter'
|
||||
|
||||
mbo.controller.themes.catalog:
|
||||
class: 'PrestaShop\Module\Mbo\Controller\Admin\ThemeCatalogController'
|
||||
arguments:
|
||||
- '@request_stack'
|
||||
- '@mbo.externalcontent.provider'
|
||||
- '@mbo.addons_selection_link_provider'
|
||||
Reference in New Issue
Block a user