Repository navigation
Conversation
Brings over the app skeleton structure from tyrsson/mezzio-bleeding-edge (1.1.x) -- the layout, not that repo's tool config. - `config/config.php` -- the ConfigAggregator stack, with App\ConfigProvider in the provider list - `config/container.php` -- ServiceManager built from the aggregated config - `config/pipeline.php` -- the stock Mezzio pipeline (error handler, routing, dispatch, not-found) - `config/autoload/dependencies.global.php`, `config/autoload/mezzio.global.php` and the `local.php` ignore - `config/development.config.php.dist` -- laminas-development-mode stub - `public/index.php` and `public/.htaccess` - `bin/clear-config-cache.php`, wired as `composer clear-config-cache` - `data/cache/` as the config cache target, ignored except for `.gitkeep` - composer: mezzio/mezzio (+ fastroute, helpers), laminas/laminas-config-aggregator, laminas-diactoros, laminas-servicemanager, laminas-stdlib, and a `serve` script Deliberately left out until they are needed: the view layer (laminas-view, mezzio-laminasviewrenderer), the templates, the sample handlers, and the Traccio/swoole dev middleware. Without a renderer Mezzio falls back to its plain 404/error bodies, which is why `mezzio.global.php` carries no `error_handler` template map yet. Verified by booting the container and dispatching a request: GET / returns "404 Cannot GET http://localhost/" (no routes registered yet). Mago format/lint/analyze/guard clean, both suites green, the config cache writes to data/cache/ and `composer clear-config-cache` removes it. Signed-off-by: Joey Smith <jsmith@webinertia.net>
Checkpoint of the in-progress application surface. - compose.yml gains MySQL, phpMyAdmin and Mailpit alongside the tooling container, published on the host so PHP running there reaches the database on 127.0.0.1. - composer.json consumes the webware components from sibling path repositories and adds php-db, with composer.lock following. - config/config.php registers the Webware, php-db and view providers. - App\ConfigProvider maps the layout, home page and error templates. - Adds the layout, home page, 404, error and htmx body templates.
Member
Author
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.
Work in progress. Not ready to merge, and CI is expected to fail.
Checkpoint of the application surface built so far.
compose.ymlgains MySQL, phpMyAdmin and Mailpit alongside the tooling container, with the ports published so PHP running on the host reaches the database on127.0.0.1. This is what the console'sacl:init-dbanduser:init-dbwere exercised against.composer.jsonconsumes the webware components from siblingpathrepositories and addsphp-db, withcomposer.lockfollowing.config/config.phpregisters the Webware, php-db and view providers.App\ConfigProvidermaps the layout, home page and error templates.Relationship to #4
This branch is cut from
feat/mezzio-app-bootstrap, so it carries #4's commits and the diff below includes them until #4 merges. The app surface from #4 is a hard dependency of this work: these changes modifyconfig/config.phpand build onpublic/,bin/and the Mezzio dependency set that #4 introduces, so the two cannot be separated without breaking this one. If you would rather not have the overlap in review, I can instead push these commits onto #4 and close this.Known state
magoand the unit suite are not yet green against this snapshot.config/autoload/mysql.local.phpis deliberately untracked, since it holds local credentials.