application/Espo/Core/Utils/Util.php
public static function getClassName($filePath)
    {
        $className = preg_replace('/\.php$/i', '', $filePath);
        $className = preg_replace('/^(application|custom)(\/|\\\)/i', '', $className);
        $className = '\\'.static::toFormat($className, '\\');

        return $className;
    }
public static function getClassName($filePath)
    {
        $className = preg_replace('/\.php$/i', '', $filePath);
        $className = preg_replace('/^(application|custom)(\/|\\\)/i', '', $className);
        $className = '\\'.static::toFormat($className, '\\');

        return $className;
    }
public static function getClassName ( $ filePath ) { $ className = preg_replace ( '/\.php$/i' , '' , $ filePath ) ; $ className = preg_replace ( '/^(application|custom)(\/|\\\)/i' , '' , $ className ) ; $ className = '\\' . static :: toFormat ( $ className , '\\' ) ; return $ className ; }
Get class name from the file path

@param  string $filePath

@return string
Get class name from the file path