Skip to content

Conversation

@Jomaanro
Copy link

@Jomaanro Jomaanro commented Aug 1, 2013

Whe executing the ./yii command it will scan the custom console Controllers and display the name to execute this command. If you have a controller which is camelCased the name will be incorrent.

For example:

TestCustomController.php will be displayed as testCustom. This is actually not working and should be test-custom

The preg_replace will put a - (minus sign) before every capital letter except the first one and lowers the complete string. Now the output will be correct.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0%) when pulling 3249901 on Jomaanro:master into af6f6d1 on yiisoft:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 12862c3 on Jomaanro:master into 62dee14 on yiisoft:master.

@qiangxue qiangxue closed this in d836654 Aug 3, 2013
@qiangxue
Copy link
Member

qiangxue commented Aug 3, 2013

Thanks. Used Inflector instead.

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.

3 participants