Skip to content
Academy
0/15

Routes

On this page

Auditable architecture · Unit 5 of 5

The plan before the disk

The current generators run preflight, write and verify certain results. Internally they produce an inspectable GenerationResult, but the public skeleton doesn't expose --dry-run.

Intermediate to senior40 min

By the end, you'll be able to

  • Separate preflight, writing and verification
  • Avoid attributing --dry-run to the public CLI

Understand

The current generators run preflight, write and verify certain results. Internally they produce an inspectable GenerationResult, but the public skeleton doesn't expose --dry-run.

The lesson is to review scope and conflicts before mutating, not to document a flag that doesn't exist.

See

Open the plan before the disk

Explore the conceptual sequence and keep the difference from the published CLI in view.

Do

Run the practice in your checkout and keep the output as evidence.

terminal
$php bin/coa make:controller CatalogPlugin HealthController --path=/health
$php bin/coa inspect:routes

Verify

Show that you can apply the unit. Progress only advances once you pass the assessment.

Criteria assessed

  • Tell the internal plan apart from a --dry-run flag that the public CLI doesn't expose.
  • Check the resulting registration after generating.

Graded assessment

Solve the 3 scenarios. This unit requires 3 of 3 correct answers.

0 attempts
Question 1 of 3A guide proposes php bin/coa make:controller ... --dry-run to teach the write plan. How should it be reviewed against the current public CLI?
Question 2 of 3The generator created HealthController.php, but /health doesn't appear in the host. Which evidence should close the task?
Question 3 of 3A generation would produce three files, but one of them already exists. Which outcome represents the safest behavior?

Grading validates answers in this browser; it doesn't certify identity.

Primary sources

Content verified: 2026-07-10