Skip to content

[#105] - Moving from devtools: a front controller for the commands that boot the project - #116

Merged
niden merged 1 commit into
masterfrom
T105-devtools-front-controller
Nov 28, 2026
Merged

niden merged 1 commit into
masterfrom
T105-devtools-front-controller

Conversation

@niden

@niden niden commented Nov 28, 2026

Copy link
Copy Markdown
Member

Hello!

In raising this pull request, I confirm the following:

  • I have checked that another pull request for this purpose does not exist
  • I wrote some tests for this PR
  • composer test, composer cs and composer analyze all pass
  • I have created a PR for the documentation about this change, if user facing

A gap in the guide "Moving from devtools". make:model and make:scaffold read the db service, so crest starts the class of the bootstrap key in crest.php. A project of devtools has no such class: public/index.php defines BASE_PATH and APP_PATH and includes app/config/services.php, which registers the db service (in the simple, micro and modules templates). crest init then proposes no front controller, and make:model stops with "this command needs the project container".

The guide now has a step for app/AppFront.php: a class whose boot() defines the two constants, makes a FactoryDefault, includes app/config/services.php and returns the container. public/index.php does not change. init proposes App\AppFront for a class with that name.

Checked by hand (not committed): a scratch project with the services.php and config.php of the devtools simple template on MySQL, and this class in bootstrap; make:model users wrote app/models/Base/UsersBase.php and app/models/Users.php in App\models.

Thanks

…m devtools: make:model reads the db service of app/config/services.php

Assisted-by: Claude Code
@github-actions

Copy link
Copy Markdown

Code Metrics Report

master (81a28eb) #116 (6d03d9f) +/-
Coverage 99.8% 99.8% 0.0%
Test Execution Time 13s 12s -1s
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

@niden
niden merged commit a64cc0f into master Nov 28, 2026
21 checks passed
@niden
niden deleted the T105-devtools-front-controller branch November 28, 2026 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant