createFileSystem(); $this->getServiceManager()->register( PlatformKeyChainRepository::SERVICE_ID, new PlatformKeyChainRepository( [ PlatformKeyChainRepository::OPTION_DEFAULT_KEY_ID => 'defaultPlatformKeyId', PlatformKeyChainRepository::OPTION_DEFAULT_KEY_NAME => 'defaultPlatformKeyName', PlatformKeyChainRepository::OPTION_DEFAULT_PUBLIC_KEY_PATH => '/platform/default/public.key', PlatformKeyChainRepository::OPTION_DEFAULT_PRIVATE_KEY_PATH => '/platform/default/private.key', ] ) ); } public function down(Schema $schema): void { $this->getServiceManager()->unregister(PlatformKeyChainRepository::SERVICE_ID); } /** * @throws InvalidServiceManagerException * @throws common_Exception */ private function createFileSystem(): void { /** @var FileSystemService $fsService */ $fsService = $this->getServiceManager()->get(FileSystemService::SERVICE_ID); $fsService->createFileSystem(PlatformKeyChainRepository::FILE_SYSTEM_ID); $this->getServiceManager()->register(FileSystemService::SERVICE_ID, $fsService); } }