31 parent::__construct($context);
42 $version = $this->productMetadata->getVersion();
43 $versionParts = explode(
'.',
$version);
44 if ((!isset($versionParts[0]) || !isset($versionParts[1]))
45 || $this->isGitBasedInstallation(
$version)
49 $majorMinorVersion = $versionParts[0] .
'.' . $versionParts[1];
51 $this->productMetadata->getName() .
'/' .
52 $majorMinorVersion .
' (' .
53 $this->productMetadata->getEdition() .
')' 63 private function isGitBasedInstallation($fullVersion)
65 $versionParts = explode(
'-', $fullVersion);
66 return (isset($versionParts[0]) && $versionParts[0] ==
'dev');
__construct(Context $context, ProductMetadataInterface $productMetadata)