mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-05-30 23:40:08 +00:00
move containers-definition-path to Dataconst
Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
<file src="src/ContainerDefinitionFetcher.php">
|
||||
<PossiblyFalseArgument>
|
||||
<code><![CDATA[file_get_contents($path)]]></code>
|
||||
<code><![CDATA[file_get_contents(__DIR__ . '/../containers.json')]]></code>
|
||||
</PossiblyFalseArgument>
|
||||
</file>
|
||||
<file src="src/Controller/DockerController.php">
|
||||
@@ -36,6 +35,7 @@
|
||||
<file src="src/Data/DataConst.php">
|
||||
<FalsableReturnStatement>
|
||||
<code><![CDATA[realpath(__DIR__ . '/../cool-seccomp-profile.json')]]></code>
|
||||
<code><![CDATA[realpath(__DIR__ . '/../containers.json')]]></code>
|
||||
<code><![CDATA[realpath(__DIR__ . '/../../../community-containers/')]]></code>
|
||||
<code><![CDATA[realpath(__DIR__ . '/../../data/')]]></code>
|
||||
<code><![CDATA[realpath(__DIR__ . '/../../session/')]]></code>
|
||||
@@ -45,6 +45,7 @@
|
||||
<code><![CDATA[string]]></code>
|
||||
<code><![CDATA[string]]></code>
|
||||
<code><![CDATA[string]]></code>
|
||||
<code><![CDATA[string]]></code>
|
||||
</InvalidFalsableReturnType>
|
||||
</file>
|
||||
<file src="src/Docker/DockerActionManager.php">
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user