cphalcon icon indicating copy to clipboard operation
cphalcon copied to clipboard

[Bug]Retrieve service with camelCase name from Volt

Open nexik opened this issue 12 years ago • 2 comments

I set in my DI service sevice with camelCase name:

$di->set('formFormatter', 'formFormatter');

I cannot access it in the view, but if I change its name to formformatter (whole name in lower case) than volt will retrieve service with no problem.

Is this a bug or some sort of convention?

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

nexik avatar Jan 05 '14 00:01 nexik

@sergeyklay This is no longer a bug in the 2.0.x series.

SidRoberts avatar Mar 14 '16 11:03 SidRoberts

Yeah. I saw

sergeyklay avatar Mar 14 '16 11:03 sergeyklay