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,12 @@
services:
PrestaShop\PsAccountsInstaller\Installer\Installer:
class: 'PrestaShop\PsAccountsInstaller\Installer\Installer'
public: true
arguments:
- '3.0.0' # !php/const PrestaShop\Module\PrestashopFacebook\Config\Config::COMPLIANT_PS_ACCOUNTS_VERSION
PrestaShop\PsAccountsInstaller\Installer\Facade\PsAccounts:
class: 'PrestaShop\PsAccountsInstaller\Installer\Facade\PsAccounts'
public: true
arguments:
- '@PrestaShop\PsAccountsInstaller\Installer\Installer'

View File

@@ -0,0 +1,14 @@
services:
PrestaShop\Module\PrestashopFacebook\Adapter\ConfigurationAdapter:
class: PrestaShop\Module\PrestashopFacebook\Adapter\ConfigurationAdapter
public: true
arguments:
- '@=service("ps_facebook.shop").id'
PrestaShop\Module\PrestashopFacebook\Adapter\ToolsAdapter:
class: PrestaShop\Module\PrestashopFacebook\Adapter\ToolsAdapter
public: true
Prestashop\ModuleLibGuzzleAdapter\ClientFactory:
class: Prestashop\ModuleLibGuzzleAdapter\ClientFactory
public: true

View File

@@ -0,0 +1,39 @@
services:
PrestaShop\Module\PrestashopFacebook\API\Client\FacebookCategoryClient:
class: PrestaShop\Module\PrestashopFacebook\API\Client\FacebookCategoryClient
public: true
arguments:
- '@PrestaShop\Module\PrestashopFacebook\Factory\PsApiClientFactory'
- '@PrestaShop\Module\PrestashopFacebook\Repository\GoogleCategoryRepository'
- '@PrestaShop\Module\PrestashopFacebook\API\ResponseListener'
PrestaShop\Module\PrestashopFacebook\API\Client\FacebookClient:
class: PrestaShop\Module\PrestashopFacebook\API\Client\FacebookClient
public: true
arguments:
- '@PrestaShop\Module\PrestashopFacebook\Factory\FacebookEssentialsApiClientFactory'
- '@PrestaShop\Module\PrestashopFacebook\Provider\AccessTokenProvider'
- '@PrestaShop\Module\PrestashopFacebook\Adapter\ConfigurationAdapter'
- '@PrestaShop\Module\PrestashopFacebook\Handler\ConfigurationHandler'
- '@PrestaShop\Module\PrestashopFacebook\API\ResponseListener'
PrestaShop\Module\PrestashopFacebook\API\EventSubscriber\AccountSuspendedSubscriber:
class: PrestaShop\Module\PrestashopFacebook\API\EventSubscriber\AccountSuspendedSubscriber
public: true
arguments:
- '@PrestaShop\Module\PrestashopFacebook\Adapter\ConfigurationAdapter'
PrestaShop\Module\PrestashopFacebook\API\EventSubscriber\ApiErrorSubscriber:
class: PrestaShop\Module\PrestashopFacebook\API\EventSubscriber\ApiErrorSubscriber
public: true
arguments:
- '@PrestaShop\Module\PrestashopFacebook\Handler\ErrorHandler\ErrorHandler'
PrestaShop\Module\PrestashopFacebook\API\ResponseListener:
class: PrestaShop\Module\PrestashopFacebook\API\ResponseListener
public: true
arguments:
[[
'@PrestaShop\Module\PrestashopFacebook\API\EventSubscriber\AccountSuspendedSubscriber',
'@PrestaShop\Module\PrestashopFacebook\API\EventSubscriber\ApiErrorSubscriber'
]]

View File

@@ -0,0 +1,4 @@
services:
PrestaShop\Module\PrestashopFacebook\Buffer\TemplateBuffer:
class: PrestaShop\Module\PrestashopFacebook\Buffer\TemplateBuffer
public: true

View File

@@ -0,0 +1,5 @@
services:
ps_facebook.cache:
class: 'string'
public: true
factory: ['PrestaShop\Module\PrestashopFacebook\Factory\CacheFactory', 'getCachePath']

View File

@@ -0,0 +1,4 @@
services:
PrestaShop\Module\PrestashopFacebook\Config\Env:
class: PrestaShop\Module\PrestashopFacebook\Config\Env
public: true

View File

@@ -0,0 +1,40 @@
services:
ps_facebook.context:
class: 'Context'
public: true
factory: ['PrestaShop\Module\PrestashopFacebook\Factory\ContextFactory', 'getContext']
ps_facebook.controller:
class: 'Controller'
public: true
factory: ['PrestaShop\Module\PrestashopFacebook\Factory\ContextFactory', 'getController']
ps_facebook.cookie:
class: 'Cookie'
public: true
factory: ['PrestaShop\Module\PrestashopFacebook\Factory\ContextFactory', 'getCookie']
ps_facebook.language:
class: 'Language'
public: true
factory: ['PrestaShop\Module\PrestashopFacebook\Factory\ContextFactory', 'getLanguage']
ps_facebook.currency:
class: 'Currency'
public: true
factory: ['PrestaShop\Module\PrestashopFacebook\Factory\ContextFactory', 'getCurrency']
ps_facebook.smarty:
class: 'Smarty'
public: true
factory: ['PrestaShop\Module\PrestashopFacebook\Factory\ContextFactory', 'getSmarty']
ps_facebook.shop:
class: 'Shop'
public: true
factory: ['PrestaShop\Module\PrestashopFacebook\Factory\ContextFactory', 'getShop']
ps_facebook.link:
class: 'Shop'
public: true
factory: ['PrestaShop\Module\PrestashopFacebook\Factory\ContextFactory', 'getLink']

View File

@@ -0,0 +1,10 @@
services:
PrestaShop\Module\PrestashopFacebook\Dispatcher\EventDispatcher:
class: PrestaShop\Module\PrestashopFacebook\Dispatcher\EventDispatcher
public: true
arguments:
- '@PrestaShop\Module\PrestashopFacebook\Handler\ApiConversionHandler'
- '@PrestaShop\Module\PrestashopFacebook\Handler\PixelHandler'
- '@PrestaShop\Module\PrestashopFacebook\Adapter\ConfigurationAdapter'
- '@PrestaShop\Module\PrestashopFacebook\Provider\EventDataProvider'
- '@ps_facebook.context'

View File

@@ -0,0 +1,14 @@
services:
PrestaShop\Module\PrestashopFacebook\Factory\FacebookEssentialsApiClientFactory:
class: PrestaShop\Module\PrestashopFacebook\Factory\FacebookEssentialsApiClientFactory
public: true
arguments:
- '@Prestashop\ModuleLibGuzzleAdapter\ClientFactory'
PrestaShop\Module\PrestashopFacebook\Factory\PsApiClientFactory:
class: PrestaShop\Module\PrestashopFacebook\Factory\PsApiClientFactory
public: true
arguments:
- '@PrestaShop\Module\PrestashopFacebook\Config\Env'
- '@PrestaShop\PsAccountsInstaller\Installer\Facade\PsAccounts'
- '@Prestashop\ModuleLibGuzzleAdapter\ClientFactory'

View File

@@ -0,0 +1,56 @@
services:
PrestaShop\Module\PrestashopFacebook\Handler\ApiConversionHandler:
class: PrestaShop\Module\PrestashopFacebook\Handler\ApiConversionHandler
public: true
arguments:
- '@PrestaShop\Module\PrestashopFacebook\Adapter\ConfigurationAdapter'
- '@PrestaShop\Module\PrestashopFacebook\Handler\ErrorHandler\ErrorHandler'
- '@PrestaShop\Module\PrestashopFacebook\API\Client\FacebookClient'
PrestaShop\Module\PrestashopFacebook\Handler\CategoryMatchHandler:
class: PrestaShop\Module\PrestashopFacebook\Handler\CategoryMatchHandler
public: true
arguments:
- '@PrestaShop\Module\PrestashopFacebook\Repository\GoogleCategoryRepository'
PrestaShop\Module\PrestashopFacebook\Handler\ConfigurationHandler:
class: PrestaShop\Module\PrestashopFacebook\Handler\ConfigurationHandler
public: true
arguments:
- '@PrestaShop\Module\PrestashopFacebook\Adapter\ConfigurationAdapter'
PrestaShop\Module\PrestashopFacebook\Handler\MessengerHandler:
class: PrestaShop\Module\PrestashopFacebook\Handler\MessengerHandler
public: true
arguments:
- '@ps_facebook.language'
- '@PrestaShop\Module\PrestashopFacebook\Adapter\ConfigurationAdapter'
- '@PrestaShop\Module\PrestashopFacebook\Config\Env'
PrestaShop\Module\PrestashopFacebook\Handler\PixelHandler:
class: PrestaShop\Module\PrestashopFacebook\Handler\PixelHandler
public: true
arguments:
- '@ps_facebook'
- '@PrestaShop\Module\PrestashopFacebook\Adapter\ConfigurationAdapter'
PrestaShop\Module\PrestashopFacebook\Handler\ErrorHandler\ErrorHandler:
class: PrestaShop\Module\PrestashopFacebook\Handler\ErrorHandler\ErrorHandler
public: true
arguments:
- '@ps_facebook'
- '@PrestaShop\Module\PrestashopFacebook\Config\Env'
PrestaShop\Module\PrestashopFacebook\Handler\EventBusProductHandler:
class: PrestaShop\Module\PrestashopFacebook\Handler\EventBusProductHandler
public: true
arguments:
- '@PrestaShop\Module\PrestashopFacebook\Repository\ProductRepository'
PrestaShop\Module\PrestashopFacebook\Handler\PrevalidationScanRefreshHandler:
class: PrestaShop\Module\PrestashopFacebook\Handler\PrevalidationScanRefreshHandler
public: true
arguments:
- '@PrestaShop\Module\PrestashopFacebook\Provider\PrevalidationScanCacheProvider'
- '@PrestaShop\Module\PrestashopFacebook\Repository\ProductRepository'
- '@=service("ps_facebook.shop").id'

View File

@@ -0,0 +1,28 @@
<?php
/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License version 3.0
* that is bundled with this package in the file LICENSE.md.
* 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 and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0
*/
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;

View File

@@ -0,0 +1,7 @@
services:
PrestaShop\Module\PrestashopFacebook\Manager\FbeFeatureManager:
class: PrestaShop\Module\PrestashopFacebook\Manager\FbeFeatureManager
public: true
arguments:
- '@PrestaShop\Module\PrestashopFacebook\Adapter\ConfigurationAdapter'
- '@PrestaShop\Module\PrestashopFacebook\API\Client\FacebookClient'

View File

@@ -0,0 +1,6 @@
services:
PrestaShop\Module\PrestashopFacebook\Presenter\ModuleUpgradePresenter:
class: 'PrestaShop\Module\PrestashopFacebook\Presenter\ModuleUpgradePresenter'
public: true
arguments:
- '@ps_facebook.context'

View File

@@ -0,0 +1,88 @@
services:
PrestaShop\Module\PrestashopFacebook\Provider\AccessTokenProvider:
class: PrestaShop\Module\PrestashopFacebook\Provider\AccessTokenProvider
public: true
arguments:
- '@PrestaShop\Module\PrestashopFacebook\Adapter\ConfigurationAdapter'
- '@PrestaShop\Module\PrestashopFacebook\API\ResponseListener'
- '@ps_facebook.controller'
- '@PrestaShop\Module\PrestashopFacebook\Factory\PsApiClientFactory'
PrestaShop\Module\PrestashopFacebook\Provider\GoogleCategoryProviderInterface:
alias: 'PrestaShop\Module\PrestashopFacebook\Provider\GoogleCategoryProvider'
public: true
PrestaShop\Module\PrestashopFacebook\Provider\GoogleCategoryProvider:
class: PrestaShop\Module\PrestashopFacebook\Provider\GoogleCategoryProvider
public: true
arguments:
- '@PrestaShop\Module\PrestashopFacebook\Repository\GoogleCategoryRepository'
PrestaShop\Module\PrestashopFacebook\Provider\FacebookDataProvider:
class: PrestaShop\Module\PrestashopFacebook\Provider\FacebookDataProvider
public: true
arguments:
- '@PrestaShop\Module\PrestashopFacebook\API\Client\FacebookClient'
- '@PrestaShop\Module\PrestashopFacebook\Adapter\ConfigurationAdapter'
PrestaShop\Module\PrestashopFacebook\Provider\FbeDataProvider:
class: PrestaShop\Module\PrestashopFacebook\Provider\FbeDataProvider
public: true
arguments:
- '@PrestaShop\Module\PrestashopFacebook\Adapter\ConfigurationAdapter'
PrestaShop\Module\PrestashopFacebook\Provider\FbeFeatureDataProvider:
class: PrestaShop\Module\PrestashopFacebook\Provider\FbeFeatureDataProvider
public: true
arguments:
- '@PrestaShop\Module\PrestashopFacebook\API\Client\FacebookClient'
- '@PrestaShop\Module\PrestashopFacebook\Adapter\ConfigurationAdapter'
PrestaShop\Module\PrestashopFacebook\Provider\EventDataProvider:
class: PrestaShop\Module\PrestashopFacebook\Provider\EventDataProvider
public: true
arguments:
- '@PrestaShop\Module\PrestashopFacebook\Adapter\ToolsAdapter'
- '@PrestaShop\Module\PrestashopFacebook\Adapter\ConfigurationAdapter'
- '@PrestaShop\Module\PrestashopFacebook\Repository\ProductRepository'
- '@ps_facebook.context'
- '@ps_facebook'
- '@PrestaShop\Module\PrestashopFacebook\Provider\ProductAvailabilityProviderInterface'
- '@PrestaShop\Module\PrestashopFacebook\Repository\GoogleCategoryRepository'
- '@PrestaShop\Module\PrestashopFacebook\Provider\GoogleCategoryProvider'
PrestaShop\Module\PrestashopFacebook\Provider\ProductAvailabilityProviderInterface:
alias: 'PrestaShop\Module\PrestashopFacebook\Provider\ProductAvailabilityProvider'
public: true
PrestaShop\Module\PrestashopFacebook\Provider\ProductAvailabilityProvider:
class: PrestaShop\Module\PrestashopFacebook\Provider\ProductAvailabilityProvider
public: true
PrestaShop\Module\PrestashopFacebook\Provider\MultishopDataProvider:
class: PrestaShop\Module\PrestashopFacebook\Provider\MultishopDataProvider
public: true
arguments:
- '@PrestaShop\Module\PrestashopFacebook\Repository\ShopRepository'
- '@PrestaShop\Module\Ps_facebook\Tracker\Segment'
PrestaShop\Module\PrestashopFacebook\Provider\ProductSyncReportProvider:
class: PrestaShop\Module\PrestashopFacebook\Provider\ProductSyncReportProvider
public: true
arguments:
- '@PrestaShop\Module\PrestashopFacebook\Adapter\ConfigurationAdapter'
- '@PrestaShop\Module\PrestashopFacebook\Factory\PsApiClientFactory'
- '@PrestaShop\Module\PrestashopFacebook\API\ResponseListener'
PrestaShop\Module\PrestashopFacebook\Provider\PrevalidationScanCacheProvider:
class: PrestaShop\Module\PrestashopFacebook\Provider\PrevalidationScanCacheProvider
public: true
arguments:
- '@ps_facebook'
- '@ps_facebook.cache'
PrestaShop\Module\PrestashopFacebook\Provider\PrevalidationScanDataProvider:
class: PrestaShop\Module\PrestashopFacebook\Provider\PrevalidationScanDataProvider
public: true
arguments:
- '@PrestaShop\Module\PrestashopFacebook\Provider\PrevalidationScanCacheProvider'

View File

@@ -0,0 +1,26 @@
services:
PrestaShop\Module\PrestashopFacebook\Repository\GoogleCategoryRepository:
class: PrestaShop\Module\PrestashopFacebook\Repository\GoogleCategoryRepository
public: true
arguments:
- '@PrestaShop\Module\PrestashopFacebook\Adapter\ConfigurationAdapter'
PrestaShop\Module\PrestashopFacebook\Repository\ProductRepository:
class: PrestaShop\Module\PrestashopFacebook\Repository\ProductRepository
public: true
arguments:
- '@ps_facebook.language'
PrestaShop\Module\PrestashopFacebook\Repository\ShopRepository:
class: PrestaShop\Module\PrestashopFacebook\Repository\ShopRepository
public: true
PrestaShop\Module\PrestashopFacebook\Repository\TabRepository:
class: PrestaShop\Module\PrestashopFacebook\Repository\TabRepository
public: true
PrestaShop\Module\PrestashopFacebook\Repository\ServerInformationRepository:
class: PrestaShop\Module\PrestashopFacebook\Repository\ServerInformationRepository
public: true
arguments:
- '@PrestaShop\PsAccountsInstaller\Installer\Facade\PsAccounts'

View File

@@ -0,0 +1,9 @@
services:
PrestaShop\Module\Ps_facebook\Tracker\Segment:
class: 'PrestaShop\Module\Ps_facebook\Tracker\Segment'
public: true
arguments:
- '@ps_facebook.context'
- '@PrestaShop\Module\PrestashopFacebook\Config\Env'
- '@PrestaShop\Module\PrestashopFacebook\Adapter\ConfigurationAdapter'
- '@PrestaShop\PsAccountsInstaller\Installer\Facade\PsAccounts'