aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/plugin-class-classifier/lists
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/plugin-class-classifier/lists')
-rw-r--r--scripts/plugin-class-classifier/lists/overrides.list7
-rw-r--r--scripts/plugin-class-classifier/lists/static-state.list21
-rw-r--r--scripts/plugin-class-classifier/lists/two-world.list6
3 files changed, 34 insertions, 0 deletions
diff --git a/scripts/plugin-class-classifier/lists/overrides.list b/scripts/plugin-class-classifier/lists/overrides.list
new file mode 100644
index 00000000..099578e0
--- /dev/null
+++ b/scripts/plugin-class-classifier/lists/overrides.list
@@ -0,0 +1,7 @@
+# Per-class category corrections: "FQCN category reason...". Every entry
+# must carry a reason. Keep this list short; prefer fixing the rules.
+Composer\Util\Platform rust-proxy env table is shared process state; the child's Platform stub RPCs putEnv/getEnv/clearEnv so both worlds see the same environment
+Composer\Autoload\ClassLoader php-native the child bootstraps via the real vendor/composer/ClassLoader.php before any stub could load; a same-FQCN stub cannot shadow it. Registered-loader state is per-world.
+Composer\InstalledVersions php-native same bootstrap constraint as ClassLoader (real file in vendor/composer is always loaded); its static $installed is genuinely shared state — Rust must push a reload after each install dump (see static-state.list needs-sync)
+Composer\Platform\HhvmDetector php-native stateless environment probe; only reachable as a consumed ctor param of PlatformRepository, no Rust-owned instance is ever provided to plugins. Plugin-custom detectors passed into a proxied PlatformRepository become an explicit error.
+Composer\Package\Version\VersionGuesser php-native stateless computation over VCS output; only reachable as a consumed ctor param of RootPackageLoader, no Rust-owned instance is ever provided to plugins. Plugin-custom guessers passed into proxied ctors become an explicit error.
diff --git a/scripts/plugin-class-classifier/lists/static-state.list b/scripts/plugin-class-classifier/lists/static-state.list
new file mode 100644
index 00000000..a33faeec
--- /dev/null
+++ b/scripts/plugin-class-classifier/lists/static-state.list
@@ -0,0 +1,21 @@
+# Disposition of classes that write static properties.
+# memo-cache pure memoization; each world computes its own copy
+# seed-once copied from the Rust side once at child startup
+# needs-sync genuinely shared process state; must not be php-native
+# A class writing statics without an entry here fails the run.
+Composer\Autoload\ClassLoader memo-cache
+Composer\Cache memo-cache
+Composer\Downloader\FileDownloader needs-sync
+Composer\Downloader\ZipDownloader memo-cache
+Composer\InstalledVersions needs-sync
+Composer\Package\Version\VersionParser memo-cache
+Composer\Platform\HhvmDetector memo-cache
+Composer\Repository\PlatformRepository memo-cache
+Composer\Util\ErrorHandler memo-cache
+Composer\Util\Git memo-cache
+Composer\Util\Hg memo-cache
+Composer\Util\Http\ProxyManager memo-cache
+Composer\Util\Platform needs-sync
+Composer\Util\ProcessExecutor seed-once
+Composer\Util\Silencer memo-cache
+Composer\Util\Svn memo-cache
diff --git a/scripts/plugin-class-classifier/lists/two-world.list b/scripts/plugin-class-classifier/lists/two-world.list
new file mode 100644
index 00000000..11425cf6
--- /dev/null
+++ b/scripts/plugin-class-classifier/lists/two-world.list
@@ -0,0 +1,6 @@
+# Types with independent sibling implementations in each world
+# (docs/dev/plugin-class-classification.md, category two-world).
+# One namespace prefix or exact FQCN per line.
+Composer\Console
+Composer\Command
+Symfony\Component\Console