Skip to content

Commit 6b6084c

Browse files
ACPT-1929: Fixing race conditions in ACPT-1493
Fixing bug in my last commit
1 parent aadb64c commit 6b6084c

File tree

1 file changed

+2
-3
lines changed
  • lib/internal/Magento/Framework/ObjectManager/Resetter

1 file changed

+2
-3
lines changed

lib/internal/Magento/Framework/ObjectManager/Resetter/Resetter.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ class Resetter implements ResetterInterface
3030
/** @var WeakMapSorter|null Note: We use temporal coupling here because of chicken/egg during bootstrapping */
3131
private ?WeakMapSorter $weakMapSorter = null;
3232

33-
3433
/**
3534
* @var array
3635
*/
@@ -46,8 +45,8 @@ public function __construct(
4645
private ?ComponentRegistrarInterface $componentRegistrar = null,
4746
private array $classList = [],
4847
) {
49-
if (null === $componentRegistrar) {
50-
$componentRegistrar = new ComponentRegistrar();
48+
if (null === $this->componentRegistrar) {
49+
$this->componentRegistrar = new ComponentRegistrar();
5150
}
5251
foreach ($this->getPaths() as $resetPath) {
5352
if (!\file_exists($resetPath)) {

0 commit comments

Comments
 (0)