diff --git a/core/modules/migrate/src/MemoryManager.php b/core/modules/migrate/src/MemoryManager.php index 515979d36d..ac01e79677 100644 --- a/core/modules/migrate/src/MemoryManager.php +++ b/core/modules/migrate/src/MemoryManager.php @@ -77,12 +77,12 @@ public function __construct(EventDispatcherInterface $dispatcher, $reclaim_thres */ public function ensureMemory() { if ($this->isLimitExceeded()) { - $event = new MigrateMemoryLimitEvent($this->getUsageRatio(), $this->getUsageInBytes(), $this->getLimit(), MemoryManagerInterface::PRE_RECLAIMED); + $event = new MigrateMemoryLimitEvent($this->getUsageRatio(), $this->getUsageInBytes(), $this->getLimit(), self::PRE_RECLAIMED); $this->dispatcher->dispatch(MigrateEvents::MEMORY_LIMIT, $event); // Re-check the reclaim threshold to ensure we reclaimed enough to // continue. if ($this->isLimitExceeded($this->memoryReclaimThreshold)) { - $event = new MigrateMemoryLimitEvent($this->getUsageRatio(), $this->getUsageInBytes(), $this->getLimit(), MemoryManagerInterface::STILL_EXCEEDED); + $event = new MigrateMemoryLimitEvent($this->getUsageRatio(), $this->getUsageInBytes(), $this->getLimit(), self::STILL_EXCEEDED); $this->dispatcher->dispatch(MigrateEvents::MEMORY_LIMIT, $event); return FALSE; }