private readonly ?string
$shopwareVersionRevision;
public function __construct( string
$environment,
bool
$debug ) { parent::
__construct($environment,
$debug);
// @codeCoverageIgnoreStart - not testable, as static calls cannot be mocked
if (InstalledVersions::
isInstalled('shopware/platform'
)) { $version = InstalledVersions::
getVersion('shopware/platform'
) . '@' . InstalledVersions::
getReference('shopware/platform'
);
} else { $version = InstalledVersions::
getVersion('shopware/core'
) . '@' . InstalledVersions::
getReference('shopware/core'
);
} // @codeCoverageIgnoreEnd
$version = VersionParser::
parseShopwareVersion($version);
$this->shopwareVersion =
$version['version'
];
$this->shopwareVersionRevision =
$version['revision'
];
}