Skip to content

Commit 94d6fc4

Browse files
committed
MAGETWO-66754: Set getConnection() as public method #6243
- Merge Pull Request #6243 from flancer64/magento2:patch-8
2 parents 8209e53 + 85b590f commit 94d6fc4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/internal/Magento/Framework/Model/ResourceModel/AbstractResource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ abstract protected function _construct();
4343
*
4444
* @return \Magento\Framework\DB\Adapter\AdapterInterface
4545
*/
46-
abstract protected function getConnection();
46+
abstract public function getConnection();
4747

4848
/**
4949
* Start resource transaction

lib/internal/Magento/Framework/Model/Test/Unit/ResourceModel/AbstractResourceStub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ protected function _construct()
3131
*
3232
* @return AdapterInterface
3333
*/
34-
protected function getConnection()
34+
public function getConnection()
3535
{
3636
return $this->connectionAdapter;
3737
}

0 commit comments

Comments
 (0)