Skip to content

T83 mvc project no views - #90

Merged
niden merged 7 commits into
masterfrom
T83-mvc-project-no-views
Nov 22, 2026
Merged

niden merged 7 commits into
masterfrom
T83-mvc-project-no-views

Conversation

@niden

@niden niden commented Nov 22, 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

crest new --template-engine=none gives an MVC project with no views: no ViewProvider, layout or view, 'views' => false in crest.php, a front controller that calls useImplicitView(false), and an IndexController that returns JSON. init takes none for the views folder, and config:show shows none. In such a project, make:scaffold stops, make:module writes no views folder and a Module.php with no view, and make:controller and make:module print their guidance with no view. In a terminal, new now asks for the template engine of an MVC project.

Stacked on #89.

Thanks

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@niden niden mentioned this pull request Nov 22, 2026
3 of 4 tasks
Base automatically changed from T81-make-provider-adr-database to master November 22, 2026 00:50
@github-actions

Copy link
Copy Markdown

Code Metrics Report

master (eb2b86f) #90 (0c4f536) +/-
Coverage 99.8% 99.8% +0.0%
Test Execution Time 9s 8s -1s
Details
  |                     | master (eb2b86f) | #90 (0c4f536) |  +/-  |
  |---------------------|------------------|---------------|-------|
+ | Coverage            |            99.8% |         99.8% | +0.0% |
  |   Files             |               93 |            93 |     0 |
  |   Lines             |             3678 |          3729 |   +51 |
+ |   Covered           |             3671 |          3722 |   +51 |
+ | Test Execution Time |               9s |            8s |   -1s |

Code coverage of files in pull request scope (100.0% → 100.0%, patch 100.0%)

Files Coverage +/- Patch Coverage Status
src/Command/Config/ShowCommand.php 100.0% 0.0% 100.0% modified
src/Command/Make/ControllerCommand.php 100.0% 0.0% 100.0% modified
src/Command/Make/ModuleCommand.php 100.0% 0.0% 100.0% modified
src/Command/Make/ScaffoldCommand.php 100.0% 0.0% 100.0% modified
src/Command/NewCommand.php 100.0% 0.0% 100.0% modified
src/Command/Questions.php 100.0% 0.0% 100.0% modified
src/Generator/Project/MvcSkeleton.php 100.0% 0.0% 100.0% modified
src/Generator/Project/TemplateEngines.php 100.0% 0.0% - modified
src/Project/Config.php 100.0% 0.0% 100.0% modified
src/Project/Settings.php 100.0% 0.0% - modified

Reported by octocov

@niden
niden merged commit 1e0f636 into master Nov 22, 2026
20 checks passed
@niden
niden deleted the T83-mvc-project-no-views branch November 22, 2026 01:00
@niden niden self-assigned this Nov 22, 2026
@niden niden added the enhancement New feature or request label Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant