1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-06 22:45:02 +02:00

[ticket/11949] Do not prepend leading backslash to cache class name

The container seems to prepend the leading \ itself, so we get an
InvalidArgumentException with message '"'\\phpbb\\cache\\driver\\file'" is
not a valid class name for the "cache.driver" service.'

PHPBB3-11949
This commit is contained in:
Joas Schilling 2013-11-09 17:06:38 +01:00
parent 7344024b10
commit 31e60f0c8d

View File

@ -70,7 +70,7 @@ class config extends Extension
{ {
if (preg_match('#^[a-z]+$#', $acm_type)) if (preg_match('#^[a-z]+$#', $acm_type))
{ {
return '\\phpbb\cache\driver\\'.$acm_type; return 'phpbb\\cache\\driver\\' . $acm_type;
} }
return $acm_type; return $acm_type;