mirror of
https://github.com/Intervention/image.git
synced 2025-08-30 17:19:50 +02:00
Merge branch 'vlakoff-AbstractDriver'
This commit is contained in:
@@ -104,7 +104,11 @@ abstract class AbstractDriver
|
|||||||
*/
|
*/
|
||||||
private function getCommandClassName($name)
|
private function getCommandClassName($name)
|
||||||
{
|
{
|
||||||
$name = mb_convert_case($name[0], MB_CASE_UPPER, 'utf-8') . mb_substr($name, 1, mb_strlen($name));
|
if (extension_loaded('mbstring')) {
|
||||||
|
$name = mb_strtoupper(mb_substr($name, 0, 1)) . mb_substr($name, 1);
|
||||||
|
} else {
|
||||||
|
$name = strtoupper(substr($name, 0, 1)) . substr($name, 1);
|
||||||
|
}
|
||||||
|
|
||||||
$drivername = $this->getDriverName();
|
$drivername = $this->getDriverName();
|
||||||
$classnameLocal = sprintf('\Intervention\Image\%s\Commands\%sCommand', $drivername, ucfirst($name));
|
$classnameLocal = sprintf('\Intervention\Image\%s\Commands\%sCommand', $drivername, ucfirst($name));
|
||||||
|
Reference in New Issue
Block a user