getServiceManager()->get(EntryPointService::SERVICE_ID); // replace old backoffice $newEntryPoint = new BackOfficeEntryPoint(); foreach ($entryPointService->getEntryPoints() as $entryPoint) { if ($entryPoint instanceof OldEntryPoint) { $entryPointService->overrideEntryPoint($entryPoint->getId(), $newEntryPoint); } } $this->getServiceManager()->register(EntryPointService::SERVICE_ID, $entryPointService); $currentVersion = '0.11'; } $this->setVersion($currentVersion); $this->skip($currentVersion, '2.0.2'); if ($this->isVersion('2.0.2')) { $this->getServiceManager()->register(ResourceUrlBuilder::SERVICE_ID, new ResourceUrlBuilder()); $this->setVersion('2.1.0'); } if ($this->isVersion('2.1.0')) { AclProxy::applyRule(new AccessRule('grant', TaoRoles::BACK_OFFICE, Redirector::class . '@redirectTaskToInstance')); $this->setVersion('2.1.1'); } $this->skip('2.1.1', '4.4.1'); //Updater files are deprecated. Please use migrations. //See: https://github.com/oat-sa/generis/wiki/Tao-Update-Process $this->setVersion($this->getExtension()->getManifest()->getVersion()); } }