Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Request: Allow to pass custom inflectors to the Dispatch component. #132

Open
ignace opened this Issue Sep 8, 2012 · 1 comment

Comments

Projects
None yet
2 participants

ignace commented Sep 8, 2012

By default modules and controllers are formatted like below:

$this->module = $this->payload->has('module') ? ucfirst(strtolower($this->payload->get('module'))) : '';
$this->controller = $this->payload->has('controller') ? ucfirst(strtolower($this->payload->get('controller'))) : '';

I would like to be able to pass a custom inflector to change how these should look either by passing inflectors to the Dispatch component or in the Payload:

$this->module = $this->payload->has('module') ? $this->payload->get('module') : '';
$this->controller = $this->payload->has('controller') ? $this->payload->get('controller') : '';

So that when someone adheres to an all-lowercase directory/file convention it does not conflict on case sensitive OS.

Owner

trq commented Oct 2, 2012

@ignace I don't suppose you want to have a crack at implementing this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment