The changes of each release that this documentation covers, newest first. The source is CHANGELOG.md of the repository.
Unreleased
Added
- Added
route:list: lists routes with their method and Action class. #1 - Added
config:show: shows the resolved configuration, each value marked declared or default. #1 - Added
container:list: lists container services with their class and resolved state. #1 - Added
event:list: lists the events manager listeners. #1 - Added
list(aliasescommands,enumerate). #1 - Added the
bootstrapkey tocrest.php: the front controller class to boot, e.g.App\Front\AppFront::class. Itsboot()must return a container. #1 - Added
Crest\Console\Input::argumentString(),optionString()andoptionStringOrNull(). - Added
make:command: generates a crest command and prints itsextra.crest.commandsentry. #5 - Added
make:middleware: generates an ADR middleware and prints its middleware-map entry. #5 - Added
make:provider: generates aPhalcon\Containerservice provider and prints theregisterProviders()override. #5 - Added
make:responder: generates an ADR responder that implementsResponder. #5 - Added
stub:publish: copies packaged stubs toresources/stubs/<flavor>/. #5 - Added
make:action --stub: renders a named stub instead of the--responderdefault. Using both is an error. #5 - Added
command,middleware,providerandresponderto the defaultpaths. #5 - Added
Crest\Command\ProjectCommand: base for commands that read a project; resolves--directoryand--config. #5 - Added
Crest\Generator\ClassName::suffixed(): appends a suffix once (CorsandCorsMiddlewareboth giveCorsMiddleware). #5 - Added
make:action --template: overrides the view template (default<path>/index). #5 - Added
Crest\Command\ProjectCommand::writer(): builds the stub writer for themake:*commands. #5 - Added
Crest\ADR\ActionResolver::methodFor(): gets an Action’s HTTP method from the router. #1 - Added
Crest\Console\Registry::descriptions()andCrest\Console\Output::commandTable(): one listing forcrestandcrest list. - Added
new: creates an ADR project from stubs. Options:--namespace,--php,--phalcon. #8 - Added
up,downandinstall:docker compose up -d,docker compose downandcomposer installin the project container. #8 - Added
Crest\Process\RunnerandShellRunner: run external programs. A missing program or directory is a crest error. #8 - Added
Crest\Generator\ClassName::namespace(): validates a namespace. #8 - Added
Crest\Command\Make\NamedArtifactCommand: base ofmake:command,make:controller,make:middleware,make:module,make:providerandmake:responder. - Added
serve(aliasserver): starts PHP’s built-in web server for the project. #10 - Added a package hint for unknown commands, for example
unknown command 'migration:run'; provided by phalcon/migrations, andCrest\Console\Registry::withProviders(). #19 - Added the hand-off: in a project, a global crest passes each project command to the crest of the project. #27
- Added
Crest\Project\Locator::project(): the nearest directory with acomposer.json. #27 - Added
init: writescrest.phpfor an existing project. It proposes the values that it finds (namespace, front controller, runtime) and asks for each one. #28 - Added the global option
--no-interaction(-n): ask no questions and use the default answers. #28 - Added the
runtimekey tocrest.php:host, ordockerwith a compose service. #28 - Added questions to
newfor the values that no option gives (namespace, PHP, Phalcon, runtime). #28 - Added the options
--runtime=host|dockerand--servicetonew: they answer the runtime questions. #28 - Added the launcher
./crestto the projects thatnewcreates: it runs crest with docker only. #29 - Added
resources/setup.sh: one command creates, starts and installs a project with docker only. #30 - Added the
newkey tocrest.php: the commands thatnewruns in the project after it writes the files. #32 - Added
Crest\Project\Steps: reads and checks thenewkey. #32 - Added
Crest\Console\Output::alias()andCrest\Console\Kernel::alias(): in a container, crest shows the host paths of the project, fromCREST_HOST_ROOT. #42 - Added the path questions to
init: a folder for each path. #42 - Added the
bootstrap,runtimeandservicerows toconfig:show. #42 - Added
Crest\Project\Vendor: the vendor and bin folders of a project, by the rules of composer. #34 - Added
--helptoresources/setup.sh: it shows the options ofnew. #42 - Added flavors to the project commands:
Crest\Command\ProjectCommand::flavors()declares them, andsupports()is the rule. A command for a different flavor stops with an error that names the flavor. #44 - Added
Crest\Console\Registry::withDefault()anddefaultName(): the command that the kernel runs when the user names none. Crest runslist. #44 - Added an optional filter to
Crest\Console\Registry::descriptions(): it keeps only the commands that pass it. #44 - Added
Crest\Project\Config::find(): the configuration of the project, or null when there is nocrest.php. #44 - Added
resources/stubs/shared/(Crest\Generator\Stub::SHARED): the stubs that all flavors use. #45 - Added
Crest\Generator\Stub::packagedFolder()andpackagedFolders(): the packaged folder of a stub, and of each stub of a flavor. #45 - Added
make:controllerfor MVC projects: writes a controller that extendsCrestControllerBase, a base class insrc/Controllers/Base/that crest owns. #46 - Added the
controllerdefault path (src/Controllers) for MVC projects, and the MVC stubscontroller,controller-baseandfragment-guidance-controller. #46 - Added
Crest\Generator\ArtifactWriter::renderOwned(),renderOnce()andMARKER, andCrest\Generator\Outcome: the write rules for a generated base class and for a class that the developer owns. #46 - Added
new --flavor=adr|mvc:crest new my-app --flavor=mvcwrites an MVC project that runs.newasks for the flavor first. #47 - Added
new --template-engine: the view engine of an MVC project. It acceptsphtml, the default. #47 - Added
stub:publish --flavor: the flavor of a project stub before the project exists,mvcby default. #47 - Added the MVC default paths
provider(src/Providers) andviews(themes/default), and the MVC project stubsproject-front,project-readme,project-provider-dispatcher,project-phtml-provider,project-phtml-layoutandproject-phtml-index. #47 - Added
Crest\Generator\Project:Skeleton(the files, the values and the first artifacts of the project of a flavor),AdrSkeleton,MvcSkeleton,Skeletons,AnswersandTemplateEngines, andCrest\Generator\ControllerBase. #47 - Added the flavor question of
init, andinit --flavor:initproposesadrormvcfrom the default folders that the project has. #48 - Added
Crest\Project\Config::NO_CLASS_PATHS(views), the path keys of folders with no classes, andCrest\Project\Survey::flavor(). #48 - Added
make:modelfor MVC projects: it reads a table through thedbservice of the project, and writes a model insrc/Models/and its base insrc/Models/Base/, which crest owns. #50 - Added the
modeldefault path (src/Models) for MVC projects, and the MVC stubsmodel,model-baseandfragment-model-property. #50 - Added
Crest\Generator\ClassName::fromTable()andRESERVED,Crest\Generator\ModelPropertiesandCrest\Project\Database.ClassName::PATTERNis public. #50 - Added the relations to
make:model: the base gets abelongsTo()for each foreign key of the table and ahasMany()for each foreign key that points to it, each with an alias in aRelationAliasattribute. #51 - Added the MVC stubs
fragment-model-belongs-toandfragment-model-has-many, the attributeCrest\Attribute\RelationAlias, andCrest\Generator\ModelRelations,Crest\Generator\RelationAliasesandCrest\Generator\ClassName::studly(). #51 - Added the database tests on SQLite, MySQL 8.0, MariaDB 10.6 and PostgreSQL 18:
composer test-dbruns the four suites, andcomposer test-db-<driver>runs one. #65 - Added
make:model --all: it writes a model for each table of the database.--exclude=a,bskips tables. #52 - Added
Crest\Generator\ForeignKeysandCrest\Generator\ModelTables. #52 - Added names to
make:model: themodelskey ofcrest.php, withclassesandcamelCase, and--property="column=name,..."for one table. #53 - Added
Crest\Attribute\PropertyName,Crest\Generator\BaseAttributes,Crest\Generator\ModelNames,Crest\Generator\PropertyNames,Crest\Generator\Sentence,Crest\Project\Config::models(),Crest\Generator\Stub::hasPlaceholder(),Crest\Generator\ForeignKeys::related()andusing(), and the MVC stubfragment-model-column-map. #53 - Added
new --database=none|mariadb|mysql|pgsql|sqliteand its question: the project gets the database service or file, the connection values, and aDbProviderthat registers thedbservice. #54 - Added
Crest\Generator\Project\DatabaseChoice, the project stubsproject-provider-dbandproject-provider-db-sqlite(ADR and MVC), and the shared project stubsproject-compose-mysql,project-compose-mariadb,project-compose-pgsql,project-env-databaseandproject-env-sqlite. #54 - Added
phalcon/phqlto thecomposer.jsonof an MVC project with Phalcon v6 and a database. #54 - Added the
modelskey to thecrest.phpthatnewandinitwrite for an MVC project, andnew --camel-case. #54 - Added the
modelskey toconfig:showin an MVC project: acamelCaserow and aTABLE CLASStable. AddedCrest\Generator\ModelNames::camelCase(). #71 - Added a
Noteline tomake:modelfor a table whose class comes frommodels.classes: it names the old files and the related tables to run again. #71 - Added
make:modulefor MVC projects: it writesModule.phpand the foldersControllers,Modelsandviewsin themodulepath (src/Modules), and prints how to register the module and its routes. #55 - Added the
moduledefault path, the MVC stubsmodule,fragment-guidance-moduleandfragment-guidance-controller-module,Crest\Generator\ModuleLocationandCrest\Generator\ArtifactWriter::directory(). #55 - Added
--module=<name>tomake:controllerandmake:model: they write into the module, with its namespace. #55 - Added
make:scaffoldfor MVC projects: it writes a model, a form, a controller and the viewsindex,newandeditfor one table.--modulewrites into a module. #56 - Added the
formdefault path (src/Forms), the MVC stubsscaffold-form-base,scaffold-form,scaffold-controller,scaffold-view-index,scaffold-view-new,scaffold-view-edit,fragment-guidance-scaffoldandfragment-guidance-scaffold-module,Crest\Generator\FormElements,Crest\Generator\ControllerRoute,ModelCommand::readTable()andModelCommand::writeTable(). #56 - Added the
models.schemakey tocrest.php:make:modelandmake:scaffoldread the tables of that schema, and the base callssetSchema(). One schema applies to all the tables.config:showshows it in aschemarow. #69 - Added
ModelNames::schemaOf(),schema()andcheckSchema(),ForeignKeys::elsewhere()and the MVC stubfragment-model-schema. #69 - Added the
models.getSetkey andcrest new --get-set: protected model properties with a getter and a setter. #70 - Added
crest new --template-engine=none: an MVC project with no views. It gets noViewProvider, layout or view,'views' => falseincrest.php, a front controller that callsuseImplicitView(false), and anIndexControllerthat returns JSON.inittakesnonefor theviewsfolder, andconfig:showshowsnone. #83 - Added
Crest\Project\Config::hasViews(),Crest\Generator\Project\TemplateEngines::NONE, and the MVC stubsproject-none-controller,module-no-views,fragment-guidance-module-no-views,fragment-guidance-controller-no-viewsandfragment-guidance-controller-module-no-views. #83 - Added
make:model --all --views: a model for each view too.ModelTables::of()has a new last parameterwithViews. #88 - Added
make:repositoryfor ADR projects: a repository for a database table, over the data mapper (Phalcon\DataMapper). It writes a base that crest writes again when the table changes (the table, its primary key, its columns,find(),add(),update()anddelete()), and a repository that the developer owns. #84 - Added the
repositorydefault path (src/Repository) of ADR projects, the ADR stubsrepository-base,repositoryandfragment-guidance-repository,Crest\Generator\TableColumnsandCrest\Project\Database::connection(). #84 - Added
crest new --template-engine=volt: an MVC project with Volt views. It gets aViewProviderwith the Volt engine, the layoutindex.voltand the viewindex/index.volt,var/cache/volt/.gitignore,'templateEngine' => 'volt'increst.php, andphalcon/voltincomposer.jsonfor--phalcon=v6.make:scaffoldwrites Volt views in such a project,config:showshows the engine, andinitwrites the key when the views folder has.voltfiles. #85 - Added the
templateEnginekey ofcrest.php,Crest\Project\Config::templateEngine(),Crest\Generator\Project\TemplateEngines::VOLTanddelimiters(), the last parametersopenandcloseofCrest\Generator\Stub::render(), and the MVC stubsproject-volt-provider,project-volt-layout,project-volt-index,scaffold-volt-view-index,scaffold-volt-view-newandscaffold-volt-view-edit. A Volt view stub has[[ name ]]placeholders. #85 - Added
phalcon/voltto the dev requirements. #85 - Added
make:database <driver>: adds a database to a project that exists, in each flavor. It writesDbProviderand, for SQLite,storage/database.sqliteandstorage/.gitkeep, from the stubs ofnew --database. It changes no file that exists: it prints the line for the front controller, and the lines for.gitignoreand.env. #95 - Added
crest init --database=none|mariadb|mysql|pgsql|sqliteand its question: aftercrest.php,initadds the database asmake:databasedoes. #95 - Added
Crest\Generator\Project\DatabaseSetup,Crest\Generator\Project\DatabaseChoice::arguments(),Crest\Project\Bootstrap::overriding()(frommake:provider), and the stubsfragment-guidance-database(MVC and ADR) andfragment-guidance-database-override(ADR). #95 - Added the server databases to
make:databaseandinit --database(MySQL, MariaDB, PostgreSQL): Crest prints the compose servicedatabasewith its volume,depends_onfor the app service, the Dockerfile lines of the PDO extension and the.envlines, from the stubs ofnew --database. A compose file with adatabaseservice gets a note in place of the service. A project with no compose file gets a note, and no compose, Dockerfile or.envlines. An app service nameddatabasestops the command, as innew. #96 - Added
Crest\Project\Survey::composeFile(), and madeSurvey::services()public. The check of an app service nameddatabasemoved fromnewtoCrest\Generator\Project\DatabaseChoice::checkService(). #96 - Added the checks of a project that exists to
make:database: when theproviderfolder has noDbProvider.php, it starts the front controller, if it can, and stops when the container has adbservice. A front controller that does not start does not stop it.init --databasedoes only the check of the file. With no front controller (nobootstrapkey),make:databaseandinit --databaseprint the line for the container of the project, from the new stubfragment-guidance-database-no-front, and no line for a front. AddedCrest\Generator\Project\DatabaseSetup::checkContainer();DatabaseChoice::arguments()takes the root of a SQLite provider as an optional parameter. #97 - Added a CI job on Windows (
windows-latest, PHP 8.4,phalcon/phalcon): the unit suite, a real hand-off from a global crest to the crest of a project (php.exe vendor\bin\crest, with its exit status), and a realPATHEXTlookup ofShellRunner. The docs say thatnew,upanddownwith docker on Windows get best effort only, and that WSL2 is the Linux path. #103 - Added the guide “Moving from devtools” to the docs: the Crest command for each devtools v4 command,
crest initfor a project of devtools, with a front controller that includesapp/config/services.phpfor the commands that boot the project, the models, and the Annotations metadata strategy. #105 - Added a list of schemas to
models.schema, for example['public', 'billing']; the first is the default schema.make:model,make:model --allandmake:scaffoldread the tables, the columns and the foreign keys of each schema, and each base callssetSchema()with the schema of its table. A table of another schema is<schema>.<table>in the commands,--exclude,models.classesand theRelationAliaskeys, and<default>.<table>is the table. A foreign key between two schemas of the list gives abelongsTo()and ahasMany(). A table name in two schemas keeps its class in the default schema, and the other table stops untilmodels.classesgives it a class. #86 - Added
ModelNames::schemas(),isList(),tableOf(),name(),nameOf()andwithTables(),ModelTables::listed()andModelProperties::ofName(). #86 - Added a CI job for mutation testing: Infection on PHP 8.4 with
phalcon/phalcon, for all ofsrc/, on each push and pull request, gated at MSI 100.infection/infectionis a dev dependency. #16 - Added the help of each command:
crest <command> --helpshows a help text, examples, the value marker and the default of each option, the aliases and the flavors. The Command reference of the guide comes from the same definitions (composer docs), and a test checks it. New:Definition::help(),Definition::example()andCommand::notes(). #16 - Added the documentation site crest.phalcon.io, in
docs/: the guide as the pages of version 1.0, the Command reference fromcomposer docs, and a changelog page fromCHANGELOG.md.docs/index.mdis removed. #128
Changed
make:actionwrites aparams()declaration for routes with attributes.make:actionrejects a static segment after a placeholder:/album/{id}/editmust be/album/edit/{id}.- Renamed
Crest\AdrtoCrest\ADR, and theFlavorcases toADR,CLIandMVC. Backed values are unchanged. - Renamed
Crest\ADR\CandidateSourcetoActionResolver, andPhalconRouterCandidatestoPhalconRouterResolver. - Dependencies resolve against PHP 8.1 (
config.platform). - Default
pathsare per flavor.adrandmvc(#46) have defaults of their own;commandis in each flavor (#45). #5 crest,crest listandcrest --versionshow a chevron before the name. No color when piped or withNO_COLOR. #5make:action --responder=viewprints the template name. #5route:listandmake:actiontake an optionalActionResolver. #5event:listreads all listeners with onegetListenerMap()call. #1phalcon/talonmoved from^0.8to^1.0.0.- phpcs and php-cs-fixer use the shared Phalcon rules from
phalcon/code-quality, added torequire-dev. stub:publishwithout a name skips theproject-*andfragment-*stubs. Publish them by name. #8- Rendering a stub fails when a placeholder has no value. The error names the stub. #8
- Changed
crest.phpto required: the project root is its folder. Without it, crest saysrun 'crest init'. #28 - Changed
config:show: a value thatcrest.phpdoes not state has the origindefault. #28 - Changed the hand-off: a project with
crest.phpthat does not require crest gets thecomposer require --dev phalcon/cresthint. #28 - Changed
new:crest.phpstates every path and the runtime. #28 - Changed
install: it uses the service of theruntimekey. #28 - Changed the placeholders of the
project-configstub. A copy that was published before this change stopsnewandinit; publish it again. #28 - Reserved the global option
--no-interaction(-n). A contributed command that declares either one fails when it runs. #28 - Changed
new: it takes an optionalRunner. #32 - Changed the compose file of
new:init: true, sodocker compose downstops the container at once. For an existing project, addinit: trueto the service. #42 - Changed the hand-off and
serve: they usevendor-dirandbin-dirofcomposer.json, andCOMPOSER_VENDOR_DIRandCOMPOSER_BIN_DIR. #34 - Changed
init: the namespace must be in the psr-4 map ofcomposer.json, and the other proposals follow it. #42 - Changed the
runtimekey: the host runtime keeps a statedservice, andcrest installuses it. Aservicethat is not a service name is an error. #42 - Changed
./crest: onecrest=line names the crest of the project, and the crest commands getCREST_HOST_ROOT. #42 - Changed
resources/setup.sh: it refuses a system folder as the working folder, writesAPP_PORTinto the project.env, supports rootless docker, and prints the commands to continue after a faileduporinstall. #42 - Changed the listing: in a project,
crestandcrest listshow only the commands for the flavor of the project. #44 - Changed
make:command: it runs in each flavor, and thecommanddefault path is in each flavor.command.stubandfragment-guidance-command.stubmoved toresources/stubs/shared/. #45 - Changed
stub:publish: it also publishes the shared stubs, intoresources/stubs/shared/. #45 - Moved the project stubs that are the same in both flavors to
resources/stubs/shared/:project-compose,project-composer,project-config,project-dockerfile,project-env,project-gitignore,project-htrouter,project-indexandproject-launcher. #47 - Changed the
project-configstub:'flavor' => '{{ flavor }}'.Crest\Project\Settingshas the flavor as its first value. #47 - Changed the error of the
newkey: it names the publishedproject-configthatnewused. #47 - Changed
new: it stops when the writtencrest.phpdoes not have the chosen flavor. #47 - Moved
Crest\Command\Make\ControllerCommand::BASEandBASE_FOLDERtoCrest\Generator\ControllerBase::NAMEandFOLDER. #47 - Changed
init: it asks for the flavor after the namespace, so a script that sends answers toinitneeds one more line. For an MVC project, it asks for the MVC paths. #48 - Changed
Crest\Project\Survey::paths()andsettings():paths()takes the root, the folder and the flavor;settings()takes the root and the flavors to compare. #48 - Changed
make:provider: it also runs in MVC projects, with the MVC stubsproviderandfragment-guidance-provider. #49 - Changed
init: for an MVC project, it also asks for themodelfolder, so a script that sends answers toinitneeds one more line. #50 - Changed the requirements: crest requires
ext-tokenizer(PHP turns it on by default).make:modelreads theRelationAliasattributes of a base with it. #51 - Changed
Crest\Generator\Stub::render(): it puts in all the values in one pass, so a value with the text of a placeholder goes into the file as it is. #51 - Changed
Crest\Generator\ModelRelations::of(): its first argument is theCrest\Generator\ForeignKeysof the run, not the database adapter. #52 - Changed the MVC stubs
model-base(the placeholder{{ columnMap }}) andfragment-model-property(the placeholder{{ property }}): publish them again. #53 - Moved
Crest\Generator\RelationAliases::read()toCrest\Generator\BaseAttributes::read(). #53 - Changed
Crest\Generator\ModelProperties::of(): it no longer checks the names. #53 - Changed
Crest\Generator\ModelTables::of()andCrest\Generator\ModelRelations::of(): they take aCrest\Generator\ModelNames, andModelRelations::of()takes the property names of the table, not its columns. #53 - Changed the error of
make:modelfor a column that is not a property name: it gives the--propertyto use. #53 - Changed the lines of
make:modelfor an alias with the name of a property of the table: they sayhas the name of a property, nothas the name of a column. #53 - Changed the project stubs
project-compose,project-dockerfile,project-env,project-gitignore,project-composer,project-configandproject-front(ADR and MVC): they have new placeholders. For a project with a database or--camel-case, publish a copy again. #54 - Changed
new: in a terminal, it asks for the database, so a script that sends answers tonewneeds one more line.Crest\Generator\Project\Answershas a new last argumentdatabase, andCrest\Project\Settingsa new last argumentcamelCase. #54 - Changed
init: for an MVC project, it also asks for themodulefolder, so a script that sends answers toinitneeds one more line.newwrites themodulepath into thecrest.phpof an MVC project. #55 - Changed
init: for an MVC project, it also asks for theformfolder, so a script that sends answers toinitneeds one more line.newwrites theformpath into thecrest.phpof an MVC project. #56 - Changed
new: an MVC project getsUrlProvider, which sets the base URI to/. Added the stubproject-provider-url. A published copy ofproject-frontneeds theuseline ofUrlProviderand the linenew UrlProvider(),. #56 - Changed
make:model: withmodels.schema, a publishedmodel-baseneeds{{ schema }}. Publish it again withcrest stub:publish model-base --force. #69 - Changed
ModelProperties::of()andForeignKeys::read(): each one takes the schema as an optional last parameter. #69 - Changed the default flavor to
mvc:newwith no--flavor, the flavor thatinitproposes for a tie, acrest.phpwith noflavorkey, andstub:publish --flavor. An ADR project whosecrest.phphas noflavorkey must add'flavor' => 'adr'. - Changed
make:providerin an ADR project: when the front controller of thebootstrapkey declaresregisterProviders(), it prints only theprovide()line, from the new stubfragment-guidance-provider-override. A second override was a “cannot redeclare” error. #81 - Changed
new: in a terminal, for an MVC project, it asks for the template engine (phtmlornone) after the flavor, so a script that sends answers tonewneeds one more line. #83 - Changed the MVC stubs
project-frontandproject-readme: they have the new placeholders{{ viewUse }},{{ viewProvider }},{{ implicitView }}and{{ viewsRow }}. A copy published before #83 works for a project with views. For--template-engine=none, publishproject-frontagain. #83 - Changed
new --flavor=adr --database:DbProviderregisters aPhalcon\DataMapper\Pdo\Connectionwith the aliasdb, not aPhalcon\Dbadapter. The ADR stubsproject-provider-dbandproject-provider-db-sqlitehave the new placeholders{{ dsnDriver }}and{{ dsnCharset }}. A copy published before #84 keeps aPhalcon\Dbadapter, andmake:repositorystops on it. #84 - Changed
init: for an ADR project, it also asks for therepositoryfolder, so a script that sends answers toinitneeds one more line.newwrites therepositorypath into thecrest.phpof an ADR project. #84 - Changed
make:scaffold: it stops in a project with no views. In that project,make:modulewrites noviewsfolder, andmake:controllerandmake:moduleprint their guidance with no view.Crest\Project\Settingstakesfalsefor theviewspath, andCrest\Command\Questions::path()givesfalsefor the answernone. #83 - Changed
make:modelon SQLite: from cphalcon 5.24.1 andphalcon/phalcon6.0.0, a composite key gives one relation with all its columns, and a key with no referenced columns (REFERENCES customers) gives a relation to the primary key of the referenced table. The fixes are in Phalcon (phalcon/cphalcon#17814, phalcon/cphalcon#17815); crest needs no code change. The docs give the versions. #87 - Changed
make:model --all: from cphalcon 5.24.0 andphalcon/phalcon6.0.0, it writes no model for a MariaDB sequence, and one model for a PostgreSQL partitioned table, with none for its partitions. The fix is in Phalcon (phalcon/cphalcon#17769); crest needs no code change. The docs give the versions. #101 - Changed the database servers of the crest tests (
docker-compose.ymland CI) to MySQL 8.4 and MariaDB 11.4, the versions thatcrest new --databasewrites. They were MySQL 8.0 and MariaDB 10.6, both past their end of life. The MariaDB service of CI checks its health withhealthcheck.sh: the 11.4 image has nomysqladmin. #102 - Changed the line ends of the output to
PHP_EOL, also the line ends inside a text, for example a stub with\r\nor\n. Before, on Windows, the guidance of a stub had\nin a line that ended with\r\n. #103 - Changed the message of a
models.schemathat is not valid tomodels.schema must be the name of a schema, or a list of names. #86 - Changed
ForeignKeys::read(): the third parameter is theModelNamesof the run, not the schema. #86 - Changed the stub
model-base: the comment givesmake:model {{ name }}, the name of the table with its schema.{{ table }}stays the table forsetSource(). #86 - Changed
Crest\Project\Configto@internal: it is not part of the API for a package. A package gets the project fromProject::context(), as aProjectContext. #16 - Changed the PHP floor of crest to 8.2 (
^8.2; it was^8.1), the floor ofphalcon/migrations.crest new --phprefuses 8.1: the project requires crest as a dev dependency. CI no longer runs PHP 8.1; the quality, database and coverage jobs run on 8.2. The dev dependencies are updated for 8.2.resources/infection.json5names../src: Infection 0.32, the version for PHP 8.2, reads each path from the folder of the file. #16 - Changed
crest newfor the releases of Phalcon: a v5 project requiresext-phalcon^5.24.1(it was^5.18), also in thepie installline of its Dockerfile, and a v6 project requiresphalcon/phalcon^6.0(it was^6.0@RC). cphalcon 5.24.1 andphalcon/phalcon6.0.0 are the first releases with all the fixes that crest needs: the PIE build of cphalcon 5.24.0 does not have three of them. #100 - Changed the dev dependencies to the releases:
phalcon/phalcon^6.0(it was the branchv6.0.x-dev), withminimum-stabilitystable. CI installs cphalcon^5.24.1for the v5 variant (it was^5.18), so the database tests that skipped before cphalcon 5.24.0 run there. #100 - Changed the coverage floor of CI (octocov) to 98.6% (it was 95%), below the measured 99.8%. A pull request also needs
diff >= 0, as before. #14 - Changed the README: it is shorter, and it points to the documentation. #16
Fixed
make:middleware,make:providerandmake:respondergenerate valid code when the name is the suffix (make:middleware Middleware). #5- Generators exit 1 with
could not create <directory>when the target cannot be created. #5 stub:publishrejects a name that is a path. #5ClassName::suffixed()accepts non-Latin class names. #5container:listandevent:listtype against Phalcon’s published contracts (Phalcon\Contracts\Container\Service\Collection,Enumerable), notContainerandManager. #1route:listgets the HTTP method from the router, not from the class name. #1bin/crestloads the autoloader of its install, not the one in a dev checkout. A global crest from a symlinked path repository passes project commands to the crest of the project. #33- The error
no answer; input endedstarts on its own line. #42 - The
Run make:model ... tooline ofmake:modelno longer names a table that gets no class. #71 - Fixed
make:model: a foreign key to a table of another schema no longer gives a relation to a model of the wrong table. It gives aSkippedline. #69 - Fixed
make:model <view>on SQLite: it writes a model, as on the other databases. PhalcontableExists()does not find a view on SQLite, so crest also callsviewExists().ForeignKeys::read()also reads the views oflistViews(). #88 - Fixed the program search of
ShellRunneron Windows: a file with an ending ofPATHEXT, for examplecomposer.bat, is a program. Before,is_executable()was true there only for a binary, so the commands of thenewkey increst.php, for examplecomposer install, did not findcomposer.bat. #103 - Fixed
make:modelwith a list of schemas: a table of another schema that gets a new class frommodels.classesgives theNoteline for its old files, as a table of the default schema does. #86 - Fixed
make:model <schema>.<table>with a list of schemas: a name in another case is the listed table, not another table with the same class. On MySQL withlower_case_table_names, the run writes the table; on a server that keeps the case, the table is not found. #86 - Fixed the class clash error of a list of schemas: a table with a line in
models.classeskeeps its class, so the error does not tell you to add a line for it. #86 - Fixed the files of the package:
.gitattributesgivesexport-ignoreto the paths ofarchive.exclude. Packagist gives the zip of GitHub, which reads.gitattributes, notcomposer.json, so before, the package had the tests, the CI files and the tool configs. #16
Removed
- Removed the shadowed-action warning from
make:action. - Removed the
phalcon/cli-options-parserrequirement. - Removed the inference of the namespace and paths from
composer.jsonwhen there is nocrest.php. #28 - Removed the error
no stubs are packaged for the '<flavor>' flavorofstub:publish: each flavor has the shared stubs. #45 - Removed the
phalcon/phqlandphalcon/voltlines from thecomposer.jsonof a v6 project, and the placeholders{{ phql }}and{{ volt }}from the stubproject-composer:phalcon/phalcon6.0.0 requires both packages. A copy of the stub that a project published before stopscrest newbefore it writes a file; publish it again. #100 - Removed
phalcon/phqlandphalcon/voltfrom the dev dependencies of crest:phalcon/phalconbrings them. #100 - Removed the five test helpers that skipped a database test with cphalcon before 5.24.0. #100