Skip to content
This repository was archived by the owner on Jun 4, 2024. It is now read-only.

Conversation

@Insolita
Copy link
Collaborator

@Insolita Insolita commented Nov 20, 2021

'prefix' => ''

'prefix' will be ignored, example url-rule pattern '/prefix/blog/post' => 'blog/post'

'prefix' => ['namespace' =>'app\modules\prefix\controllers']

the controller will be generated with a defined namespace, path resolved accordingly namespace, example url-rule pattern '/prefix/blog/post' => 'prefix/blog/post'

'prefix' => ['namespace' =>'app\modules\prefix\controllers', 'path' => '@app/backend/prefix/controllers']

the controller will be generated with a defined namespace and located by path

'prefix' => ['namespace' =>'app\modules\secret\controllers', 'module' => 'secret']
example url-rule pattern '/prefix/blog/post' => 'secret/blog/post'

(special action naming not implemented yet)

@cebe cebe added enhancement New feature or request generator-feature Functionality missing from the generator labels Nov 20, 2021
@cebe cebe added this to the 2.0 milestone Nov 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request generator-feature Functionality missing from the generator

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Api versioning prefix Add ability to generate non-db models Make internal generators customizable by DI container

2 participants