How magento/magento2 works
Magento Open Source is an extensible e-commerce platform. Its principal user journey is browsing a storefront and receiving product or content results; the README establishes the store-building purpose, while the supplied excerpts do not expose the storefront request path or checkout implementation. The graph therefore focuses on evidenced runtime infrastructure and sampled capabilities: URL rewrites, GraphQL cache-tag collection, catalog frontend storage configuration, and CMS/theme media storage. Several connections are omitted because the relevant implementation or wiring was not sampled.
Main entry points: DbStorage.php URL rewrite storage · CacheableQueryHandler.php GraphQL cache handler · Images/Storage.php CMS image storage · Helper/Storage.php Theme media storage
Components 15
Runtime foundation
- Web entry
pub/index.php - Object factory
lib/internal/Magento/Framework/App/ObjectManagerFactory.php - Object manager
lib/internal/Magento/Framework/App/ObjectManager.php - Directory configuration
lib/internal/Magento/Framework/Filesystem/DirectoryList.php
Storefront services
- Storefront results
- URL rewrite storage
app/code/Magento/UrlRewrite/Model/Storage/DbStorage.php - Catalog frontend storage config
app/code/Magento/Catalog/Block/FrontendStorageManager.php - GraphQL cache handler
app/code/Magento/GraphQlCache/Model/CacheableQueryHandler.php - Cache identity pool
- Cacheable query state
Media management
- CMS image storage
app/code/Magento/Cms/Model/Wysiwyg/Images/Storage.php - Theme media storage
app/code/Magento/Theme/Helper/Storage.php - Media filesystem
Other components
- Store user
- Commerce database
Connections 11
- Store user → Web entry: requests store
- Web entry → Storefront results: serves results
- Object factory → Object manager: creates
lib/internal/Magento/Framework/App/ObjectManagerFactory.php - URL rewrite storage → Commerce database: reads and writes
app/code/Magento/UrlRewrite/Model/Storage/DbStorage.php - URL rewrite storage → Storefront results: resolves routes
- GraphQL cache handler → Cache identity pool: gets identities
app/code/Magento/GraphQlCache/Model/CacheableQueryHandler.php - GraphQL cache handler → Cacheable query state: adds cache tags
app/code/Magento/GraphQlCache/Model/CacheableQueryHandler.php - CMS image storage → Directory configuration: uses directories
app/code/Magento/Cms/Model/Wysiwyg/Images/Storage.php - Theme media storage → Directory configuration: uses directories
app/code/Magento/Theme/Helper/Storage.php - CMS image storage → Media filesystem: manages files
- Theme media storage → Media filesystem: manages files