Repository navigation
Closed
Labels
enhancementNew feature or request
Description
Goal: the second flavor. Build an MVC application with crest, without writing the boilerplate by hand.
Flavor is a generator concern only. The console core never sees it. A command reads the flavor from crest.php in handle().
- Flavor plumbing:
Flavor::MVCdefault paths, namespaces, stub set -
make:controller(devtoolscontroller) -
make:modelfrom a live database schema (devtoolsmodel) -
make:model --all(devtoolsall-models) -
make:module(devtoolsmodule) -
make:scaffold: model, controller and views from one table (devtoolsscaffold). Do this last.
make:model needs a database. Add database services to docker-compose.yml only then.
Rules (from the ADR generators)
- A flavor can change the generated file, never the arguments. Different arguments means a different command.
- No adapter classes.
Stub::resolve($flavor, $name)already selects the stub. - Handlers are one command per flavor:
make:action(ADR),make:controller(MVC),make:task(CLI). - Providers and middleware are flavor-scoped. MVC registers with DI, not with
Phalcon\Container.
Also in this issue
- Flavor guard on the ADR-only generators. Today
make:responderin an MVC project fails withunknown path 'responder'. The message names a config key, not the real problem. - Move the
commanddefault path andcommand.stubto a set that all flavors share. A crest command is the same class in every flavor. It is in the ADR set now only because ADR is the only populated set. -
crest initproposes the flavor from what the project has, and asks for it. - The path proposals of
inituse the default paths of that flavor. Until theninitwrites'flavor' => 'adr'. [NFR]: Close the open items before the 1.0 release #42
Open
--template-engine=phtml|voltfor the view stubs.- devtools model generation had 14 options:
--namespace,--extends,--base-class,--abstract,--get-set,--camelize,--doc,--annotate,--mapcolumn,--relations,--fk,--schema,--excludefields,--output. Decide which stay. Do not port all of them. - devtools module generation had
--config-type=ini|json|php|yaml.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Type
Projects
- StatusShow more project fieldsReleased
Activity
niden commentedon Nov 21, 2026
Resolved