Commit 2d5dc235 authored by webchick's avatar webchick

Issue #2559191 by andriyun, andypost: Clean-up migrate executable

parent 410d8384
......@@ -513,9 +513,7 @@ protected function attemptMemoryReclaim() {
// Entity storage can blow up with caches so clear them out.
$container = \Drupal::getContainer();
/** @var \Drupal\Core\Entity\EntityManagerInterface $manager */
$manager = $container->get('entity.manager');
$manager = \Drupal::entityManager();
foreach ($manager->getDefinitions() as $id => $definition) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment