Repository navigation
[#105] - Moving from devtools: a front controller for the commands that boot the project - #116
Merged
Merged
Conversation
…m devtools: make:model reads the db service of app/config/services.php Assisted-by: Claude Code
Code Metrics Report
Details | | master (81a28eb) | #116 (6d03d9f) | +/- |
|---------------------|------------------|----------------|------|
| Coverage | 99.8% | 99.8% | 0.0% |
| Files | 97 | 97 | 0 |
| Lines | 4203 | 4203 | 0 |
| Covered | 4196 | 4196 | 0 |
+ | Test Execution Time | 13s | 12s | -1s |Reported by octocov |
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.
Hello!
In raising this pull request, I confirm the following:
composer test,composer csandcomposer analyzeall passA gap in the guide "Moving from devtools".
make:modelandmake:scaffoldread thedbservice, so crest starts the class of thebootstrapkey increst.php. A project of devtools has no such class:public/index.phpdefinesBASE_PATHandAPP_PATHand includesapp/config/services.php, which registers thedbservice (in thesimple,microandmodulestemplates).crest initthen proposes no front controller, andmake:modelstops with "this command needs the project container".The guide now has a step for
app/AppFront.php: a class whoseboot()defines the two constants, makes aFactoryDefault, includesapp/config/services.phpand returns the container.public/index.phpdoes not change.initproposesApp\AppFrontfor a class with that name.Checked by hand (not committed): a scratch project with the
services.phpandconfig.phpof the devtoolssimpletemplate on MySQL, and this class inbootstrap;make:model userswroteapp/models/Base/UsersBase.phpandapp/models/Users.phpinApp\models.Thanks