From 0f6ef857ebf2051550aa19c409305f777551060b Mon Sep 17 00:00:00 2001 From: Maxence Lange Date: Thu, 7 Nov 2024 17:47:04 -0100 Subject: [PATCH] feat(core): setting NCU namespace Signed-off-by: Maxence Lange --- composer.json | 3 ++- lib/composer/composer/autoload_psr4.php | 1 + lib/composer/composer/autoload_static.php | 8 ++++++++ lib/unstable/.gitkeep | 0 psalm-ocp.xml | 1 + 5 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 lib/unstable/.gitkeep diff --git a/composer.json b/composer.json index 5912a81f987..f11ced48b67 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", + "NCU\\": "lib/unstable" } }, "require": { diff --git a/lib/composer/composer/autoload_psr4.php b/lib/composer/composer/autoload_psr4.php index 74e48cf69ae..b07b2c0074b 100644 --- a/lib/composer/composer/autoload_psr4.php +++ b/lib/composer/composer/autoload_psr4.php @@ -9,5 +9,6 @@ return array( 'OC\\Core\\' => array($baseDir . '/core'), 'OC\\' => array($baseDir . '/lib/private'), 'OCP\\' => array($baseDir . '/lib/public'), + 'NCU\\' => array($baseDir . '/lib/unstable'), '' => array($baseDir . '/lib/private/legacy'), ); diff --git a/lib/composer/composer/autoload_static.php b/lib/composer/composer/autoload_static.php index 4bac34425ac..3fc72c2b6e4 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 ( + 'NCU\\' => 4, + ), ); public static $prefixDirsPsr4 = array ( @@ -32,6 +36,10 @@ class ComposerStaticInit749170dad3f5e7f9ca158f5a9f04f6a2 array ( 0 => __DIR__ . '/../../..' . '/lib/public', ), + 'NCU\\' => + array ( + 0 => __DIR__ . '/../../..' . '/lib/unstable', + ), ); public static $fallbackDirsPsr4 = array ( diff --git a/lib/unstable/.gitkeep b/lib/unstable/.gitkeep new file mode 100644 index 00000000000..e69de29bb2d diff --git a/psalm-ocp.xml b/psalm-ocp.xml index e49f7fd929b..de4741aa2dd 100644 --- a/psalm-ocp.xml +++ b/psalm-ocp.xml @@ -19,6 +19,7 @@ + -- 2.39.5