first commit
This commit is contained in:
34
modules/ps_eventbus/config/admin/index.php
Normal file
34
modules/ps_eventbus/config/admin/index.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2020 PrestaShop.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (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:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* 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.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2020 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (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;
|
||||
4
modules/ps_eventbus/config/admin/services.yml
Normal file
4
modules/ps_eventbus/config/admin/services.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
imports:
|
||||
- { resource: ../common.yml }
|
||||
- { resource: ../front/repository.yml }
|
||||
- { resource: ../front/services.yml }
|
||||
12
modules/ps_eventbus/config/common.yml
Normal file
12
modules/ps_eventbus/config/common.yml
Normal file
@@ -0,0 +1,12 @@
|
||||
services:
|
||||
ps_eventbus.db:
|
||||
class: Db
|
||||
factory: [ 'Db', 'getInstance' ]
|
||||
|
||||
ps_eventbus.context:
|
||||
class: Context
|
||||
factory: [ 'Context', 'getContext' ]
|
||||
|
||||
ps_eventbus.link:
|
||||
class: Link
|
||||
factory: [ 'PrestaShop\Module\PsEventbus\Factory\Link', 'get' ]
|
||||
11
modules/ps_eventbus/config/front/api.yml
Normal file
11
modules/ps_eventbus/config/front/api.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
services:
|
||||
PrestaShop\Module\PsEventbus\Api\EventBusSyncClient:
|
||||
class: PrestaShop\Module\PsEventbus\Api\EventBusSyncClient
|
||||
arguments:
|
||||
- '@ps_eventbus.link'
|
||||
|
||||
PrestaShop\Module\PsEventbus\Api\EventBusProxyClient:
|
||||
class: PrestaShop\Module\PsEventbus\Api\EventBusProxyClient
|
||||
arguments:
|
||||
- '@ps_eventbus.link'
|
||||
|
||||
12
modules/ps_eventbus/config/front/decorator.yml
Normal file
12
modules/ps_eventbus/config/front/decorator.yml
Normal file
@@ -0,0 +1,12 @@
|
||||
services:
|
||||
PrestaShop\Module\PsEventbus\Decorator\ProductDecorator:
|
||||
class: PrestaShop\Module\PsEventbus\Decorator\ProductDecorator
|
||||
arguments:
|
||||
- '@ps_eventbus.context'
|
||||
- '@PrestaShop\Module\PsEventbus\Repository\LanguageRepository'
|
||||
- '@PrestaShop\Module\PsEventbus\Repository\ProductRepository'
|
||||
- '@PrestaShop\Module\PsEventbus\Repository\CategoryRepository'
|
||||
- '@PrestaShop\Module\PsEventbus\Formatter\ArrayFormatter'
|
||||
|
||||
PrestaShop\Module\PsEventbus\Decorator\CategoryDecorator:
|
||||
class: PrestaShop\Module\PsEventbus\Decorator\CategoryDecorator
|
||||
34
modules/ps_eventbus/config/front/index.php
Normal file
34
modules/ps_eventbus/config/front/index.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2020 PrestaShop.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (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:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* 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.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2020 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (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;
|
||||
41
modules/ps_eventbus/config/front/provider.yml
Normal file
41
modules/ps_eventbus/config/front/provider.yml
Normal file
@@ -0,0 +1,41 @@
|
||||
services:
|
||||
PrestaShop\Module\PsEventbus\Provider\ModuleDataProvider:
|
||||
class: PrestaShop\Module\PsEventbus\Provider\ModuleDataProvider
|
||||
arguments:
|
||||
- '@PrestaShop\Module\PsEventbus\Repository\ModuleRepository'
|
||||
|
||||
PrestaShop\Module\PsEventbus\Provider\ProductDataProvider:
|
||||
class: PrestaShop\Module\PsEventbus\Provider\ProductDataProvider
|
||||
arguments:
|
||||
- '@PrestaShop\Module\PsEventbus\Repository\ProductRepository'
|
||||
- '@PrestaShop\Module\PsEventbus\Decorator\ProductDecorator'
|
||||
- '@PrestaShop\Module\PsEventbus\Repository\LanguageRepository'
|
||||
- '@PrestaShop\Module\PsEventbus\Formatter\ArrayFormatter'
|
||||
|
||||
PrestaShop\Module\PsEventbus\Provider\CategoryDataProvider:
|
||||
class: PrestaShop\Module\PsEventbus\Provider\CategoryDataProvider
|
||||
arguments:
|
||||
- '@PrestaShop\Module\PsEventbus\Repository\CategoryRepository'
|
||||
- '@PrestaShop\Module\PsEventbus\Decorator\CategoryDecorator'
|
||||
- '@PrestaShop\Module\PsEventbus\Formatter\ArrayFormatter'
|
||||
|
||||
PrestaShop\Module\PsEventbus\Provider\OrderDataProvider:
|
||||
class: PrestaShop\Module\PsEventbus\Provider\OrderDataProvider
|
||||
arguments:
|
||||
- '@ps_eventbus.context'
|
||||
- '@PrestaShop\Module\PsEventbus\Repository\OrderRepository'
|
||||
- '@PrestaShop\Module\PsEventbus\Repository\OrderDetailsRepository'
|
||||
- '@PrestaShop\Module\PsEventbus\Formatter\ArrayFormatter'
|
||||
|
||||
PrestaShop\Module\PsEventbus\Provider\CartDataProvider:
|
||||
class: PrestaShop\Module\PsEventbus\Provider\CartDataProvider
|
||||
arguments:
|
||||
- '@PrestaShop\Module\PsEventbus\Repository\CartRepository'
|
||||
- '@PrestaShop\Module\PsEventbus\Repository\CartProductRepository'
|
||||
- '@PrestaShop\Module\PsEventbus\Formatter\ArrayFormatter'
|
||||
|
||||
PrestaShop\Module\PsEventbus\Provider\GoogleTaxonomyDataProvider:
|
||||
class: PrestaShop\Module\PsEventbus\Provider\GoogleTaxonomyDataProvider
|
||||
arguments:
|
||||
- '@PrestaShop\Module\PsEventbus\Repository\GoogleTaxonomyRepository'
|
||||
- '@ps_eventbus.context'
|
||||
101
modules/ps_eventbus/config/front/repository.yml
Normal file
101
modules/ps_eventbus/config/front/repository.yml
Normal file
@@ -0,0 +1,101 @@
|
||||
services:
|
||||
PrestaShop\Module\PsEventbus\Repository\CurrencyRepository:
|
||||
class: PrestaShop\Module\PsEventbus\Repository\CurrencyRepository
|
||||
|
||||
PrestaShop\Module\PsEventbus\Repository\LanguageRepository:
|
||||
class: PrestaShop\Module\PsEventbus\Repository\LanguageRepository
|
||||
|
||||
PrestaShop\Module\PsEventbus\Repository\ConfigurationRepository:
|
||||
class: PrestaShop\Module\PsEventbus\Repository\ConfigurationRepository
|
||||
|
||||
PrestaShop\Module\PsEventbus\Repository\EventbusSyncRepository:
|
||||
class: PrestaShop\Module\PsEventbus\Repository\EventbusSyncRepository
|
||||
arguments:
|
||||
- '@ps_eventbus.db'
|
||||
- '@ps_eventbus.context'
|
||||
|
||||
PrestaShop\Module\PsEventbus\Repository\CategoryRepository:
|
||||
class: PrestaShop\Module\PsEventbus\Repository\CategoryRepository
|
||||
arguments:
|
||||
- '@ps_eventbus.db'
|
||||
- '@ps_eventbus.context'
|
||||
|
||||
PrestaShop\Module\PsEventbus\Repository\ImageRepository:
|
||||
class: PrestaShop\Module\PsEventbus\Repository\ImageRepository
|
||||
arguments:
|
||||
- '@ps_eventbus.db'
|
||||
|
||||
PrestaShop\Module\PsEventbus\Repository\ModuleRepository:
|
||||
class: PrestaShop\Module\PsEventbus\Repository\ModuleRepository
|
||||
arguments:
|
||||
- '@ps_eventbus.db'
|
||||
|
||||
PrestaShop\Module\PsEventbus\Repository\ProductRepository:
|
||||
class: PrestaShop\Module\PsEventbus\Repository\ProductRepository
|
||||
arguments:
|
||||
- '@ps_eventbus.db'
|
||||
- '@ps_eventbus.context'
|
||||
- '@PrestaShop\Module\PsEventbus\Formatter\ArrayFormatter'
|
||||
|
||||
PrestaShop\Module\PsEventbus\Repository\ServerInformationRepository:
|
||||
class: PrestaShop\Module\PsEventbus\Repository\ServerInformationRepository
|
||||
arguments:
|
||||
- '@ps_eventbus.context'
|
||||
- '@ps_eventbus.db'
|
||||
- '@PrestaShop\Module\PsEventbus\Repository\CurrencyRepository'
|
||||
- '@PrestaShop\Module\PsEventbus\Repository\LanguageRepository'
|
||||
- '@PrestaShop\Module\PsEventbus\Repository\ConfigurationRepository'
|
||||
- '@PrestaShop\Module\PsEventbus\Repository\ShopRepository'
|
||||
- '@PrestaShop\Module\PsEventbus\Formatter\ArrayFormatter'
|
||||
|
||||
PrestaShop\Module\PsEventbus\Repository\ThemeRepository:
|
||||
class: PrestaShop\Module\PsEventbus\Repository\ThemeRepository
|
||||
arguments:
|
||||
- '@ps_eventbus.context'
|
||||
- '@ps_eventbus.db'
|
||||
|
||||
PrestaShop\Module\PsEventbus\Repository\OrderRepository:
|
||||
class: PrestaShop\Module\PsEventbus\Repository\OrderRepository
|
||||
arguments:
|
||||
- '@ps_eventbus.db'
|
||||
|
||||
PrestaShop\Module\PsEventbus\Repository\OrderDetailsRepository:
|
||||
class: PrestaShop\Module\PsEventbus\Repository\OrderDetailsRepository
|
||||
arguments:
|
||||
- '@ps_eventbus.db'
|
||||
- '@ps_eventbus.context'
|
||||
|
||||
PrestaShop\Module\PsEventbus\Repository\CartRepository:
|
||||
class: PrestaShop\Module\PsEventbus\Repository\CartRepository
|
||||
arguments:
|
||||
- '@ps_eventbus.db'
|
||||
- '@ps_eventbus.context'
|
||||
|
||||
PrestaShop\Module\PsEventbus\Repository\CartProductRepository:
|
||||
class: PrestaShop\Module\PsEventbus\Repository\CartProductRepository
|
||||
arguments:
|
||||
- '@ps_eventbus.db'
|
||||
- '@ps_eventbus.context'
|
||||
|
||||
PrestaShop\Module\PsEventbus\Repository\GoogleTaxonomyRepository:
|
||||
class: PrestaShop\Module\PsEventbus\Repository\GoogleTaxonomyRepository
|
||||
arguments:
|
||||
- '@ps_eventbus.db'
|
||||
|
||||
PrestaShop\Module\PsEventbus\Repository\DeletedObjectsRepository:
|
||||
class: PrestaShop\Module\PsEventbus\Repository\DeletedObjectsRepository
|
||||
arguments:
|
||||
- '@ps_eventbus.db'
|
||||
- '@ps_eventbus.context'
|
||||
|
||||
PrestaShop\Module\PsEventbus\Repository\IncrementalSyncRepository:
|
||||
class: PrestaShop\Module\PsEventbus\Repository\IncrementalSyncRepository
|
||||
arguments:
|
||||
- '@ps_eventbus.db'
|
||||
- '@ps_eventbus.context'
|
||||
|
||||
PrestaShop\Module\PsEventbus\Repository\ShopRepository:
|
||||
class: PrestaShop\Module\PsEventbus\Repository\ShopRepository
|
||||
arguments:
|
||||
- '@ps_eventbus.context'
|
||||
- '@ps_eventbus.db'
|
||||
44
modules/ps_eventbus/config/front/services.yml
Normal file
44
modules/ps_eventbus/config/front/services.yml
Normal file
@@ -0,0 +1,44 @@
|
||||
imports:
|
||||
- { resource: ../common.yml }
|
||||
- { resource: api.yml }
|
||||
- { resource: decorator.yml }
|
||||
- { resource: provider.yml }
|
||||
- { resource: repository.yml }
|
||||
|
||||
services:
|
||||
PrestaShop\Module\PsEventbus\Formatter\JsonFormatter:
|
||||
class: PrestaShop\Module\PsEventbus\Formatter\JsonFormatter
|
||||
|
||||
PrestaShop\Module\PsEventbus\Formatter\ArrayFormatter:
|
||||
class: PrestaShop\Module\PsEventbus\Formatter\ArrayFormatter
|
||||
|
||||
PrestaShop\Module\PsEventbus\Service\CompressionService:
|
||||
class: PrestaShop\Module\PsEventbus\Service\CompressionService
|
||||
arguments:
|
||||
- '@PrestaShop\Module\PsEventbus\Formatter\JsonFormatter'
|
||||
|
||||
PrestaShop\Module\PsEventbus\Service\ProxyService:
|
||||
class: PrestaShop\Module\PsEventbus\Service\ProxyService
|
||||
arguments:
|
||||
- '@PrestaShop\Module\PsEventbus\Api\EventBusProxyClient'
|
||||
- '@PrestaShop\Module\PsEventbus\Formatter\JsonFormatter'
|
||||
|
||||
PrestaShop\Module\PsEventbus\Service\ApiAuthorizationService:
|
||||
class: PrestaShop\Module\PsEventbus\Service\ApiAuthorizationService
|
||||
arguments:
|
||||
- '@PrestaShop\Module\PsEventbus\Repository\EventbusSyncRepository'
|
||||
- '@PrestaShop\Module\PsEventbus\Api\EventBusSyncClient'
|
||||
|
||||
PrestaShop\Module\PsEventbus\Service\DeletedObjectsService:
|
||||
class: PrestaShop\Module\PsEventbus\Service\DeletedObjectsService
|
||||
arguments:
|
||||
- '@ps_eventbus.context'
|
||||
- '@PrestaShop\Module\PsEventbus\Repository\DeletedObjectsRepository'
|
||||
- '@PrestaShop\Module\PsEventbus\Service\ProxyService'
|
||||
|
||||
PrestaShop\Module\PsEventbus\Service\SynchronizationService:
|
||||
class: PrestaShop\Module\PsEventbus\Service\SynchronizationService
|
||||
arguments:
|
||||
- '@PrestaShop\Module\PsEventbus\Repository\EventbusSyncRepository'
|
||||
- '@PrestaShop\Module\PsEventbus\Repository\IncrementalSyncRepository'
|
||||
- '@PrestaShop\Module\PsEventbus\Service\ProxyService'
|
||||
34
modules/ps_eventbus/config/index.php
Normal file
34
modules/ps_eventbus/config/index.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2020 PrestaShop.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (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:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* 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.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2020 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (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;
|
||||
Reference in New Issue
Block a user