move containers-definition-path to Dataconst

Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
Simon L. 2025-11-05 11:36:46 +01:00
parent 4ba7f1ed64
commit 897e3e7e6e
3 changed files with 7 additions and 2 deletions

View file

@ -38,7 +38,7 @@ readonly class ContainerDefinitionFetcher {
*/
private function GetDefinition(): array
{
$data = json_decode(file_get_contents(__DIR__ . '/../containers.json'), true);
$data = json_decode(file_get_contents(DataConst::GetContainersDefinitionPath()), true);
$additionalContainerNames = [];
foreach ($this->configurationManager->GetEnabledCommunityContainers() as $communityContainer) {

View file

@ -62,4 +62,8 @@ class DataConst {
public static function GetCollaboraSeccompProfilePath() : string {
return realpath(__DIR__ . '/../cool-seccomp-profile.json');
}
public static function GetContainersDefinitionPath() : string {
return realpath(__DIR__ . '/../containers.json');
}
}