![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/magento/framework/Model/ResourceModel/Db/ |
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Framework\Model\ResourceModel\Db; /** * Constructor modification point for Magento\Framework\Model\ResourceModel\Db\AbstractDb. * * All context classes were introduced to allow for backwards compatible constructor modifications * of classes that were supposed to be extended by extension developers. * * Do not call methods of this class directly. * * As Magento moves from inheritance-based APIs all such classes will be deprecated together with * the classes they were introduced for. * * @codeCoverageIgnore */ class Context implements \Magento\Framework\ObjectManager\ContextInterface { /** * @var \Magento\Framework\App\ResourceConnection */ protected $resources; /** * @var TransactionManagerInterface */ protected $transactionManager; /** * @var ObjectRelationProcessor */ protected $objectRelationProcessor; /** * @param \Magento\Framework\App\ResourceConnection $resource * @param TransactionManagerInterface $transactionManager * @param ObjectRelationProcessor $objectRelationProcessor */ public function __construct( \Magento\Framework\App\ResourceConnection $resource, TransactionManagerInterface $transactionManager, ObjectRelationProcessor $objectRelationProcessor ) { $this->transactionManager = $transactionManager; $this->resources = $resource; $this->objectRelationProcessor = $objectRelationProcessor; } /** * @return \Magento\Framework\App\ResourceConnection */ public function getResources() { return $this->resources; } /** * @return TransactionManagerInterface */ public function getTransactionManager() { return $this->transactionManager; } /** * @return ObjectRelationProcessor */ public function getObjectRelationProcessor() { return $this->objectRelationProcessor; } }