From d5d42a3ac5feda9df81926057c788c4034edcfc8 Mon Sep 17 00:00:00 2001 From: Maxence Lange Date: Fri, 25 Oct 2024 11:19:05 -0100 Subject: [PATCH] feat(core): setting NCT namespace Signed-off-by: Maxence Lange --- composer.json | 3 ++- lib/composer/composer/autoload_psr4.php | 1 + lib/composer/composer/autoload_static.php | 8 ++++++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 5912a81f98785..5b0ed80da3880 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,8 @@ "": "lib/private/legacy", "OC\\": "lib/private", "OC\\Core\\": "core/", - "OCP\\": "lib/public" + "OCP\\": "lib/public", + "NCT\\": "lib/testing" } }, "require": { diff --git a/lib/composer/composer/autoload_psr4.php b/lib/composer/composer/autoload_psr4.php index 74e48cf69ae28..6031ee5b7c3f8 100644 --- a/lib/composer/composer/autoload_psr4.php +++ b/lib/composer/composer/autoload_psr4.php @@ -9,5 +9,6 @@ 'OC\\Core\\' => array($baseDir . '/core'), 'OC\\' => array($baseDir . '/lib/private'), 'OCP\\' => array($baseDir . '/lib/public'), + 'NCT\\' => array($baseDir . '/lib/testing'), '' => array($baseDir . '/lib/private/legacy'), ); diff --git a/lib/composer/composer/autoload_static.php b/lib/composer/composer/autoload_static.php index 0e93ee8addd7e..8a7073101398c 100644 --- a/lib/composer/composer/autoload_static.php +++ b/lib/composer/composer/autoload_static.php @@ -17,6 +17,10 @@ class ComposerStaticInit749170dad3f5e7f9ca158f5a9f04f6a2 'OC\\' => 3, 'OCP\\' => 4, ), + 'N' => + array ( + 'NCT\\' => 4, + ), ); public static $prefixDirsPsr4 = array ( @@ -32,6 +36,10 @@ class ComposerStaticInit749170dad3f5e7f9ca158f5a9f04f6a2 array ( 0 => __DIR__ . '/../../..' . '/lib/public', ), + 'NCT\\' => + array ( + 0 => __DIR__ . '/../../..' . '/lib/testing', + ), ); public static $fallbackDirsPsr4 = array (