Browse Source

Fix purger injection (#376)

master v2.0.0-beta.6
Grégoire Paris 5 years ago committed by Théo FIDRY
parent
commit
b4c98ac582
  1. 2
      resources/config/loader.xml
  2. 2
      src/Loader/DoctrineOrmLoader.php

2
resources/config/loader.xml

@ -30,8 +30,8 @@
class="Hautelook\AliceBundle\Loader\DoctrineOrmLoader">
<argument type="service" id="hautelook_alice.resolver.bundle" />
<argument type="service" id="hautelook_alice.locator" />
<argument type="service" id="hautelook_alice.data_fixtures.append_loader" />
<argument type="service" id="hautelook_alice.data_fixtures.purge_loader" />
<argument type="service" id="hautelook_alice.data_fixtures.append_loader" />
<argument type="service" id="logger" on-invalid="null" />
</service>

2
src/Loader/DoctrineOrmLoader.php

@ -75,7 +75,7 @@ final class DoctrineOrmLoader implements AliceBundleLoaderInterface, LoggerAware
}
$this->purgeLoader = $purgeLoader;
$this->appendLoader = $purgeLoader;
$this->appendLoader = $appendLoader;
$this->logger = $logger ?? new NullLogger();
}

Loading…
Cancel
Save