. */ namespace SP\Domain\Config\Services; use SP\Core\Application; use SP\Domain\Config\Ports\UpgradeConfigService; use SP\Domain\Providers\FileLogHandlerProvider; use SP\Domain\Upgrade\Services\UpgradeBase; /** * Class UpgradeConfig */ final class UpgradeConfig extends UpgradeBase implements UpgradeConfigService { public function __construct( Application $application, FileLogHandlerProvider $fileLogHandlerProvider ) { parent::__construct($application, $fileLogHandlerProvider); $this->eventDispatcher->attach($fileLogHandlerProvider); } protected static function getUpgrades(): array { return []; } protected function commitVersion(string $version): void { $this->configData->setConfigVersion($version); } protected function applyUpgrade(string $version): bool { return true; } }