Skip to content

Commit 82706a8

Browse files
committed
add 7.3.0.0 sourceGuardian v16 PHP 8
1 parent e58280e commit 82706a8

178 files changed

Lines changed: 622 additions & 437 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci-release.yml

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
name: CI Release
2+
3+
on:
4+
push:
5+
branches:
6+
- 'rel_*'
7+
- 'main'
8+
- 'master'
9+
workflow_dispatch:
10+
inputs:
11+
debug:
12+
required: false
13+
default: "false"
14+
15+
jobs:
16+
package-tests:
17+
runs-on: ubuntu-latest
18+
19+
services:
20+
mariadb:
21+
image: mariadb:10.6
22+
env:
23+
MYSQL_ROOT_PASSWORD: root
24+
MYSQL_DATABASE: oxid
25+
MYSQL_USER: oxid
26+
MYSQL_PASSWORD: oxid
27+
ports:
28+
- 3306:3306
29+
options: >-
30+
--health-cmd="mysqladmin ping --silent"
31+
--health-interval=10s
32+
--health-timeout=5s
33+
--health-retries=5
34+
35+
strategy:
36+
fail-fast: false
37+
matrix:
38+
include:
39+
# min
40+
- oxid_ref: "dev-b-7.0-ce"
41+
php: "8.0"
42+
# max
43+
- oxid_ref: "dev-b-7.4-ce"
44+
php: "8.4"
45+
46+
name: OXID ${{ matrix.oxid_ref }} in PHP ${{ matrix.php }} tests
47+
48+
env:
49+
DB_HOST: 127.0.0.1
50+
DB_NAME: oxid
51+
DB_USER: oxid
52+
DB_PASS: oxid
53+
54+
steps:
55+
- name: checkout repository
56+
uses: actions/checkout@v4
57+
58+
- name: Run OXID tests
59+
uses: d3datadevelopment/ci-actions/oxid-plugin-test@v1.1.0
60+
with:
61+
php_version: ${{ matrix.php }}
62+
oxid_ref: ${{ matrix.oxid_ref }}
63+
sourceguardian: "FALSE"
64+
composer_package_name: "d3/modcfg"
65+
oxid_module_ids: "d3modcfg_lib"
66+
syntax_check_paths: "."
67+
debug: ${{ github.event.inputs.debug }}
68+
69+
report-status:
70+
runs-on: ubuntu-latest
71+
needs: package-tests
72+
if: always()
73+
steps:
74+
- name: Report CI status
75+
uses: d3datadevelopment/ci-actions/status-reporter@v1.1.0
76+
with:
77+
api_status_endpoint: "${{ vars.GITEA_API }}${{ github.sha }}"
78+
auth_token: ${{ secrets.GITEA_TOKEN }}
79+
state: ${{ needs.package-tests.result }}
80+
description: "CI result: ${{ needs.package-tests.result }}"
81+
target_url: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"

.php-cs-fixer.php

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

Application/Controller/Admin/Configuration/d3mod_status.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
use D3\ModCfg\Application\Model\Install\d3install;
2323
use D3\ModCfg\Application\Model\Configuration\d3_cfg_mod;
2424
use D3\ModCfg\Application\Model\d3str;
25-
use D3\ModCfg\Application\Model\d3filesystem;
2625
use D3\ModCfg\Application\Model\Log\d3log;
2726
use D3\ModCfg\Application\Model\Shopcompatibility\d3ShopCompatibilityAdapterHandler;
2827
use D3\ModCfg\Application\Model\Shopcompatibility\d3shopversionconverter;

Application/Controller/Admin/d3_cfg_mod_list.php

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
use D3\ModCfg\Application\Model\Configuration\d3modprofile;
1919
use D3\ModCfg\Application\Model\Constants;
20-
use Doctrine\DBAL\Connection;
20+
use D3\ModCfg\Application\Model\d3database;
2121
use Doctrine\DBAL\Driver\Exception;
2222
use Doctrine\DBAL\Exception as DBALException;
2323
use DOMAttr;
@@ -33,7 +33,6 @@
3333
use OxidEsales\Eshop\Core\Str;
3434
use OxidEsales\Eshop\Core\Exception\DatabaseConnectionException;
3535
use OxidEsales\EshopCommunity\Internal\Container\ContainerFactory;
36-
use OxidEsales\EshopCommunity\Internal\Framework\Database\ConnectionProviderInterface;
3736
use OxidEsales\EshopCommunity\Internal\Framework\Database\QueryBuilderFactoryInterface;
3837
use Psr\Container\ContainerExceptionInterface;
3938
use Psr\Container\NotFoundExceptionInterface;
@@ -157,8 +156,7 @@ public function d3FixNamespaceNavigation()
157156
*/
158157
protected function prepareWhereQuery($aWhere, $sqlFull)
159158
{
160-
/** @var Connection $db */
161-
$db = ContainerFactory::getInstance()->getContainer()->get(ConnectionProviderInterface::class)->get();
159+
$db = d3database::getInstance()->getDBConnection();
162160
$sQ = parent::prepareWhereQuery($aWhere, $sqlFull);
163161

164162
$oProfiles = $this->d3getListItemObject();
@@ -196,8 +194,7 @@ protected function _calcListItemsCount($sSql)
196194

197195
// count SQL
198196
$oQB = ContainerFactory::getInstance()->getContainer()->get(QueryBuilderFactoryInterface::class)->create();
199-
/** @var Connection $db */
200-
$db = ContainerFactory::getInstance()->getContainer()->get(ConnectionProviderInterface::class)->get();
197+
$db = d3database::getInstance()->getDBConnection();
201198
$oQB->select('count(*)')->from('');
202199

203200
$sSql = $oStr->preg_replace('/select .*? from/i', $oQB->getSQL(), $sSql);
@@ -309,8 +306,7 @@ protected function _prepareOrderByQuery($sSql = null)
309306
{
310307
// sorting
311308
$aSortFields = $this->getListSorting();
312-
/** @var Connection $db */
313-
$db = ContainerFactory::getInstance()->getContainer()->get(ConnectionProviderInterface::class)->get();
309+
$db = d3database::getInstance()->getDBConnection();
314310

315311
if (is_array($aSortFields) && count($aSortFields)) {
316312
// only add order by at full sql not for count(*)

Application/Model/Configuration/d3_cfg_mod.php

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

Application/Model/Configuration/d3_cfg_mod_datastore.php

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

Application/Model/Configuration/d3_cfg_mod_licencecheck.php

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

Application/Model/Configuration/d3_cfg_mod_variant.php

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

Application/Model/Configuration/d3_license_app.php

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

Application/Model/Configuration/d3modprofile.php

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)