File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
app/code/Magento/Tax/Setup Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 7
7
namespace Magento \Tax \Setup ;
8
8
9
9
use Magento \Directory \Model \ResourceModel \Region \CollectionFactory ;
10
- use Magento \Framework \App \ObjectManager ;
11
10
use Magento \Framework \Setup \InstallDataInterface ;
12
11
use Magento \Framework \Setup \ModuleContextInterface ;
13
12
use Magento \Framework \Setup \ModuleDataSetupInterface ;
@@ -46,12 +45,10 @@ class InstallData implements InstallDataInterface
46
45
*/
47
46
public function __construct (
48
47
TaxSetupFactory $ taxSetupFactory ,
49
- CollectionFactory $ collectionFactory = null
48
+ CollectionFactory $ collectionFactory
50
49
) {
51
50
$ this ->taxSetupFactory = $ taxSetupFactory ;
52
- $ this ->regionCollectionFactory = $ collectionFactory ?: ObjectManager::getInstance ()->get (
53
- \Magento \Directory \Model \ResourceModel \Region \CollectionFactory::class
54
- );
51
+ $ this ->regionCollectionFactory = $ collectionFactory ;
55
52
}
56
53
57
54
/**
You can’t perform that action at this time.
0 commit comments