Skip to content

feat: add yii2 definition - #91

Merged
geodro merged 2 commits into
lerd-env:mainfrom
Klairm:feat/yii2-basic
Sep 26, 2026
Merged

geodro merged 2 commits into
lerd-env:mainfrom
Klairm:feat/yii2-basic

Conversation

@Klairm

@Klairm Klairm commented Sep 26, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@Klairm
Klairm requested a review from a team as a code owner September 26, 2026 12:43
The index entry gave its detect rules as strings, which lerd cannot parse, so the whole store index would have failed to load on every install. It now uses the same rule objects as every other entry, and the framework is named yii with 2 as its version so Yii 3 can join it later.

Detection keys on yiisoft/yii2 alone, because Yii 3 ships a yii console script too. db.php is handed straight to yii\db\Connection, which rejects unknown keys, so url_key is none and lerd no longer writes APP_URL into it.

The queue worker runs queue/listen, since queue/run drains the queue and exits, which left the unit restarting forever. The redis wiring is gone because it overwrote the connection class in db.php, and so is sqlite, which needs a project path lerd cannot express in env values yet. Tinker, migrate:create and gii are dropped because none of them worked from lerd, along with the permissions step the Yii installer already covers. Fixtures only show when the project has a fixtures folder, and the definition now carries the Yii leaf mark.

@geodro geodro left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @Klairm thanks for adding this one. I've added some fixes. Looks good to go!

@geodro
geodro merged commit 1f6f922 into lerd-env:main Sep 26, 2026
1 check passed
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.

2 participants