[DependencyInjection] Regex optimization
This commit is contained in:
parent
2186535848
commit
48155ccc2f
@ -282,7 +282,7 @@ class Container implements ContainerInterface, \ArrayAccess
|
||||
|
||||
static public function camelize($id)
|
||||
{
|
||||
return preg_replace(array('/(^|_)+(.)/e', '/\.(.)/e'), array("strtoupper('\\2')", "'_'.strtoupper('\\1')"), $id);
|
||||
return preg_replace(array('/(?:^|_)+(.)/e', '/\.(.)/e'), array("strtoupper('\\1')", "'_'.strtoupper('\\1')"), $id);
|
||||
}
|
||||
|
||||
static public function underscore($id)
|
||||
|
Reference in New Issue
Block a user