Skip to content

Commit 205dd26

Browse files
committed
MAGETWO-64499: Error during deploying using " auto_increment_increment = 3" as Mysql option
1 parent 108fdb4 commit 205dd26

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

app/code/Magento/Tax/Setup/InstallData.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
namespace Magento\Tax\Setup;
88

99
use Magento\Directory\Model\ResourceModel\Region\CollectionFactory;
10-
use Magento\Framework\App\ObjectManager;
1110
use Magento\Framework\Setup\InstallDataInterface;
1211
use Magento\Framework\Setup\ModuleContextInterface;
1312
use Magento\Framework\Setup\ModuleDataSetupInterface;
@@ -46,12 +45,10 @@ class InstallData implements InstallDataInterface
4645
*/
4746
public function __construct(
4847
TaxSetupFactory $taxSetupFactory,
49-
CollectionFactory $collectionFactory = null
48+
CollectionFactory $collectionFactory
5049
) {
5150
$this->taxSetupFactory = $taxSetupFactory;
52-
$this->regionCollectionFactory = $collectionFactory ?: ObjectManager::getInstance()->get(
53-
\Magento\Directory\Model\ResourceModel\Region\CollectionFactory::class
54-
);
51+
$this->regionCollectionFactory = $collectionFactory;
5552
}
5653

5754
/**

0 commit comments

Comments
 (0)