Download project

This commit is contained in:
Roman Pyrih
2024-11-20 09:09:44 +01:00
parent 547a138d6a
commit 5ff041757f
40737 changed files with 7766183 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
services:
_defaults:
public: true
mbo.accounts.data_provider:
class: PrestaShop\Module\Mbo\Accounts\Provider\AccountsDataProvider
arguments:
- "5.2.5"
mbo.ps_accounts.installer:
class: 'PrestaShop\PsAccountsInstaller\Installer\Installer'
public: true
arguments:
- "5.2.5"
mbo.ps_accounts.facade:
class: 'PrestaShop\PsAccountsInstaller\Installer\Facade\PsAccounts'
public: true
arguments:
- "@mbo.ps_accounts.installer"

View File

@@ -0,0 +1,16 @@
services:
_defaults:
public: true
# Addons API Client
mbo.addons.client.api:
class: PrestaShop\Module\Mbo\Addons\ApiClient
arguments:
- "@mbo.addons.client.http"
calls:
- method: setDefaultParams
arguments:
- "@=service('translator').getLocale()"
- "@=service('prestashop.adapter.data_provider.country').getIsoCodebyId()"
- "@=service('prestashop.adapter.legacy.configuration').get('_PS_BASE_URL_')"
- "@=service('prestashop.core.foundation.version').getSemVersion()"

View File

@@ -0,0 +1,14 @@
services:
_defaults:
public: true
mbo.addons.client.http:
class: GuzzleHttp\Client
arguments:
$config:
base_url: "%env(ADDONS_API_URL)%"
timeout: "7200"
headers:
Accept: "application/json"
CURLOPT_FORBID_REUSE: true
CURLOPT_FRESH_CONNECT: true

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,16 @@
services:
_defaults:
public: true
prestashop.adapter.admin.data_provider.addons:
class: PrestaShop\Module\Mbo\Addons\AddonsDataProvider
decorates: prestashop.core.admin.data_provider.addons_interface
decoration_on_invalid: ignore
arguments:
- '@mbo.addons.client.api'
- '@prestashop.module.zip.manager'
- '@mbo.addons.user'
- '@translator'
- '@=service("prestashop.adapter.legacy.configuration").get("ADDONS_API_MODULE_CHANNEL", "stable")'
properties:
cacheDir: "%kernel.cache_dir%"