Skip to content

Commit

Permalink
Merge pull request #685 from akeneo/release/104.3.6
Browse files Browse the repository at this point in the history
Release/104.3.6
  • Loading branch information
magentix authored Apr 8, 2024
2 parents 98902f7 + 702a12b commit 6dd5ab3
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 4 deletions.
18 changes: 18 additions & 0 deletions App/ResourceConnection.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

declare(strict_types=1);

namespace Akeneo\Connector\App;

use Magento\Framework\App\ResourceConnection as BaseResourceConnection;

/**
* @author Agence Dn'D <[email protected]>
* @copyright 2004-present Agence Dn'D
* @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* @link https://www.dnd.fr/
*/
class ResourceConnection extends BaseResourceConnection
{

}
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -481,3 +481,7 @@

### Version 104.3.5 :
* Fix undefined method

### Version 104.3.6 :
* PGTO-427: Custom Resource Connection
*
2 changes: 1 addition & 1 deletion Helper/Import/Entities.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace Akeneo\Connector\Helper\Import;

use Akeneo\Connector\App\ResourceConnection;
use Akeneo\Connector\Helper\Authenticator;
use Akeneo\Connector\Helper\Config as ConfigHelper;
use Akeneo\Connector\Model\Source\Edition;
Expand All @@ -17,7 +18,6 @@
use Magento\Catalog\Model\Product as BaseProductModel;
use Magento\Eav\Api\Data\AttributeInterface;
use Magento\Framework\App\DeploymentConfig;
use Magento\Framework\App\ResourceConnection;
use Magento\Framework\Config\ConfigOptionsListConstants;
use Magento\Framework\DB\Adapter\AdapterInterface;
use Magento\Framework\DB\Ddl\Table;
Expand Down
2 changes: 1 addition & 1 deletion Helper/Import/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Akeneo\Connector\Helper\Import;

use Akeneo\Connector\App\ResourceConnection;
use Akeneo\Connector\Helper\Authenticator;
use Akeneo\Connector\Helper\Config as ConfigHelper;
use Akeneo\Pim\ApiClient\AkeneoPimClientInterface;
Expand All @@ -10,7 +11,6 @@
use Magento\CatalogUrlRewrite\Model\ProductUrlRewriteGenerator;
use Magento\Framework\App\Config\ScopeConfigInterface;
use Magento\Framework\App\DeploymentConfig;
use Magento\Framework\App\ResourceConnection;
use Magento\Framework\DB\Adapter\AdapterInterface;
use Magento\Framework\DB\Select;
use Magento\Framework\Serialize\Serializer\Json;
Expand Down
2 changes: 1 addition & 1 deletion Model/Config/ConfigManagement.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace Akeneo\Connector\Model\Config;

use Akeneo\Connector\App\ResourceConnection;
use Akeneo\Connector\Block\Adminhtml\System\Config\Form\Field\Website;
use Akeneo\Connector\Helper\Config as ConfigHelper;
use Akeneo\Connector\Model\Backend\Json;
Expand All @@ -12,7 +13,6 @@
use Magento\Eav\Model\Entity\Attribute;
use Magento\Framework\App\Area;
use Magento\Framework\App\Filesystem\DirectoryList;
use Magento\Framework\App\ResourceConnection;
use Magento\Framework\DB\Adapter\AdapterInterface;
use Magento\Framework\DB\Select;
use Magento\Framework\Module\Dir;
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"nyholm/psr7": "^1.5"
},
"type": "magento2-module",
"version": "104.3.5",
"version": "104.3.6",
"license": [
"OSL-3.0",
"AFL-3.0"
Expand Down
7 changes: 7 additions & 0 deletions etc/di.xml
Original file line number Diff line number Diff line change
Expand Up @@ -446,4 +446,11 @@
<argument name="jobExecutor" xsi:type="object">Akeneo\Connector\Executor\JobExecutor\Proxy</argument>
</arguments>
</type>

<type name="Akeneo\Connector\App\ResourceConnection">
<arguments>
<argument name="connectionFactory" xsi:type="object">Magento\Framework\App\ResourceConnection\ConnectionFactory</argument>
<argument name="deploymentConfig" xsi:type="object">Magento\Framework\App\DeploymentConfig</argument>
</arguments>
</type>
</config>

0 comments on commit 6dd5ab3

Please sign in to comment.