Skip to content

Commit

Permalink
Merge pull request #48891 from nextcloud/enh/noid/testing-namespace
Browse files Browse the repository at this point in the history
[RFC] Setting NCU\ for unstable/work-in-progress API
  • Loading branch information
ArtificialOwl authored Nov 11, 2024
2 parents a3be6ce + 0f6ef85 commit 7c67df6
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"": "lib/private/legacy",
"OC\\": "lib/private",
"OC\\Core\\": "core/",
"OCP\\": "lib/public"
"OCP\\": "lib/public",
"NCU\\": "lib/unstable"
}
},
"require": {
Expand Down
1 change: 1 addition & 0 deletions lib/composer/composer/autoload_psr4.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
'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'),
);
8 changes: 8 additions & 0 deletions lib/composer/composer/autoload_static.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ class ComposerStaticInit749170dad3f5e7f9ca158f5a9f04f6a2
'OC\\' => 3,
'OCP\\' => 4,
),
'N' =>
array (
'NCU\\' => 4,
),
);

public static $prefixDirsPsr4 = array (
Expand All @@ -32,6 +36,10 @@ class ComposerStaticInit749170dad3f5e7f9ca158f5a9f04f6a2
array (
0 => __DIR__ . '/../../..' . '/lib/public',
),
'NCU\\' =>
array (
0 => __DIR__ . '/../../..' . '/lib/unstable',
),
);

public static $fallbackDirsPsr4 = array (
Expand Down
Empty file added lib/unstable/.gitkeep
Empty file.
1 change: 1 addition & 0 deletions psalm-ocp.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
</plugins>
<projectFiles>
<directory name="lib/public"/>
<directory name="lib/unstable"/>
<ignoreFiles>
<directory name="lib/composer/bin"/>
</ignoreFiles>
Expand Down

0 comments on commit 7c67df6

Please sign in to comment.