Skip to content

Commit 0375e41

Browse files
authored
MAGETWO-66754: Set getConnection() as public method #6243
2 parents 99c286e + 94d6fc4 commit 0375e41

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)