/
githubmirror
/
magento2
Обзор
Документация
Войти
/
githubmirror
/
magento2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.4-develop
lib/internal/Magento/Framework/Model/ResourceModel/Db/Context.php
76 строк
2 KB
Alexandra Zota
ACP2E-4019: CE copyright updates for 2.4.9-beta1
22 окт 2025, 17:47
22 окт 2025, 17:47
1b769b7
Код
Авторство
О чём код?
<?php /** * Copyright 2015 Adobe * All Rights Reserved. */ 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; } }