Repository navigation
Rewrite the remaining architecture, extension, reference and operations pages - #113
Open
DavidLambauer wants to merge 8 commits into
Open
DavidLambauer wants to merge 8 commits into
DavidLambauer wants to merge 8 commits into
Conversation
- Architectural overview: layers, the six areas, dependency injection through di.xml (there is no annotation-based DI, as the page claimed), the extension mechanisms and the request flow from pub/index.php to the response. - Component types: the five component types registered with ComponentRegistrar and their real directory trees (web/ lives in view/<area>/web; commands are defined in modules). - Getting started: fix the samples that crashed (a block reading a _coreRegistry that Template doesn't have, a missing import, an undefined $product, a theme without theme.xml). - Service contracts: add the di.xml preference the page left out; it claimed that matching namespaces were enough. - Data interfaces and models: define the constants the model uses (the old sample referenced an undefined self::ID) and add the resource model, collection and extension attributes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Create and package an extension: composer.json, registration.php, module.xml and distribution with Composer, including how Mage-OS packages replace the magento/* names. Fix the CLI sample (missing imports, execute(): int), the layout sample (product.info.price is a container) and "override by subclassing". - Extension best practices: a checklist with the real register() signature, constructor injection only, and declarative schema with patches and the whitelist instead of InstallSchema.php. - Secure development: a checklist for module code (form keys, escaping, ACL, bound SQL, input validation, CSP, encrypted config) instead of plain-PHP $_POST samples and a FilterManager filter that doesn't exist. - Glossary: Mage-OS terms instead of PHP basics; the plugin example now uses afterGetName(). - Coding standards: phpcs --standard=Magento2 from mage-os/magento-coding-standard instead of PSR12 and ECGM2. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…he product links tutorial - Troubleshooting: the failures people hit on Mage-OS 4.0 (search engine, database version, document root, permissions without 777, memory limits from the shipped ini files, static content deploy). - Performance: production mode, OPcache, Varnish, Valkey/Redis, indexers and queues. Fix the samples that shared one Redis database between caches, queried a customer_id column that doesn't exist and cached arrays without serializing them. - Scalability: several web nodes, shared or remote media storage, a load balancer snippet that doesn't cause a redirect loop, and the note that read/write database splitting is Adobe Commerce-only. - Product links tutorial: rebuilt as Vendor_CustomProductLink with frontend output; it no longer calls methods that don't exist or shows the first product's links on every product. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…hem on Mage-OS 4.0.0 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ng them on Mage-OS 4.0.0 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The content is accurate. Four reviews checked it against the 4.0.0 code and found one broken step and a few small errors. Read as an AI would read it, the larger problem is repetition. Module setup (registration.php, module.xml, composer.json) appears on 5 pages, with identical code on 3 of them.
|
…ting them on Mage-OS 4.0.0 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…on Mage-OS 4.0.0 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 30, 2026
…t does Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This was referenced Nov 30, 2026
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.
The last batch from the content audit: the 14 pages that were still the original AI text. Every page was checked against the Mage-OS 4.0.0 code. There is one commit per group.
This PR only changes page content. It keeps every slug, creates or deletes no pages, and doesn't touch the nav, so it merges independently of #108–#112.
Architecture and development basics
di.xml, the extension mechanisms and the request flow.web/lives inview/<area>/web, and commands are defined in modules._coreRegistrythatTemplatedoesn't have;theme.xml.di.xmlpreference the old page left out.self::ID), and adds the resource model, collection and extension attributes.Extensions, secure coding, references
composer.json,registration.phpandmodule.xml;replacethemagento/*names;InstallSchema.php.phpcs --standard=Magento2frommage-os/magento-coding-standardinstead of PSR12/ECGM2.Troubleshooting, performance, scalability, tutorial
customer_idcolumn that doesn't exist;Vendor_CustomProductLinkwith frontend output, and no calls to methods that don't exist;All XML samples validate against the 4.0.0 XSD files, and all PHP samples pass
php -lon PHP 8.4.Tested on a running store
Every command and code sample on these pages was then run on a Mage-OS 4.0.0 store in Warden (PHP 8.4, MariaDB 11.8, OpenSearch 3.4, Valkey 8.1, Varnish 8.0, RabbitMQ 4.2), and the pages were corrected wherever the store behaved differently from what the code suggested. What needs several servers or outside services was checked in the code only.
Follow-ups after #108–#112 merge
production-deployment,create-a-web-api-endpoint, the Hyvä section).Merge order and notes for reviewers: #115.
🤖 Generated with Claude Code