Skip to content

Simplify PSR / autoloading#131

Merged
timkelty merged 5 commits into
mainfrom
feature/cloud-3-opsify
Feb 26, 2026
Merged

Simplify PSR / autoloading#131
timkelty merged 5 commits into
mainfrom
feature/cloud-3-opsify

Conversation

@timkelty

@timkelty timkelty commented Feb 26, 2026

Copy link
Copy Markdown
Contributor
  • Moves things back to their natural PSR-4 namespaces
  • Drops codezero/composer-preload-files (this now happens in build)

timkelty and others added 5 commits February 25, 2026 20:28
…iles from cloud-ops

Move preload.php from cloud-ops to cloud-composer and rewrite
ComposerPlugin to inject it as the first autoload entry directly,
rather than reordering an existing autoload.files declaration.
Also renames PreloadPlugin to ComposerPlugin and adds plugin-optional.
… cloud-ops

Removes the cloud-composer Composer plugin package entirely. The preload.php
file (defining craft_modify_app_config) now lives directly in cloud-ops with
autoload.files, which is simpler and sufficient for the preload ordering needs.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
…d.php to autoload.php

Migrate all cloud-ops classes from craft\cloud to craft\cloud\ops namespace
to eliminate PSR-4 collisions with the cloud plugin. Rename preload.php to
autoload.php for consistency with Composer conventions.
@linear

linear Bot commented Feb 26, 2026

Copy link
Copy Markdown

@timkelty timkelty merged commit 98562ac into main Feb 26, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant