getServiceManager(); $taskLog = $sm->get(TaskLogInterface::SERVICE_ID); $taskLog->setOption(TaskLogInterface::OPTION_TASK_IGNORE_LIST, $this->getIndexationTasks()); $sm->register(TaskLogInterface::SERVICE_ID, $taskLog); } public function down(Schema $schema): void { $sm = $this->getServiceManager(); $taskLog = $sm->get(TaskLogInterface::SERVICE_ID); $taskLog->setOption(TaskLogInterface::OPTION_TASK_IGNORE_LIST, []); $sm->register(TaskLogInterface::SERVICE_ID, $taskLog); } private function getIndexationTasks(): array { return [ UpdateResourceInIndex::class, UpdateClassInIndex::class, DeleteIndexProperty::class, RenameIndexProperties::class, UpdateDataAccessControlInIndex::class, AddSearchIndexFromArray::class, ]; } }