Repository navigation
Port to Craft 6 (native, adapter-free) via craft-6-plugin-porting skill - #94
Draft
lukeholder wants to merge 1 commit into
Draft
lukeholder wants to merge 1 commit into
lukeholder wants to merge 1 commit into
Conversation
- Require craftcms/cms ^6.0.0 and PHP ^8.5; no craftcms/yii2-adapter - Move to CraftCms\GuestEntries namespace with Laravel-style folders - Native Plugin base class, PluginSettings, and settingsForm() - Invokable SaveController routed from routes/actions.php - Replace Yii events with SavingGuestEntry, SavedGuestEntry and GuestEntrySaveFailed - Remove legacy settings migrations and Twig settings template - Add UPGRADE.md and update README for Craft 6 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Ports Guest Entries to Craft 6 as a fully native plugin. It does not require
craftcms/yii2-adapter.craftcms/cms ^6.0.0and PHP^8.5.CraftCms\GuestEntriesnamespace with Laravel-style folders (Http/Controllers,Events,Data).Pluginbase class,PluginSettingswith a property hook, andsettingsForm()replacing the Twig settings template.SaveControlleris now an invokable class routed fromroutes/actions.php, soactions/guest-entries/saveis unchanged.SaveEventare replaced bySavingGuestEntry,SavedGuestEntryandGuestEntrySaveFailed(clean break, no compatibility layer).UPGRADE.mdand updates the README for the Craft 6 form idioms (old(),errors,session()).Testing
Tested in a Craft 6.0.0-alpha.20 host with no adapter and no
yiisoft/yii2:Not verified / follow-ups
ecs.php,phpstan.neon, the dev dependencies and.github/workflows/ci.ymlstill target Craft 4/5.errors.get('fields.body')) are not tested.TypeErrorin Craft).5.xbranch already contains a separate Craft 6 port and conflicts with this branch, so this PR targets4.x.🤖 Generated with Claude Code