Thumbor\Url::stringify PHP Метод

stringify() публичный Метод

See https://github.com/globocom/thumbor/wiki/Usage for available $commands.
public stringify ( string $server, string $secret, string $original, array $commands )
$server string Thumbor server
$secret string shared secret key (may be blank/null)
$original string URL of original image
$commands array array of Thumbor commands
    public function stringify($server, $secret, $original, $commands)
    {
        if (count($commands) > 0) {
            $commandPath = implode('/', $commands);
            $imgPath = sprintf('%s/%s', $commandPath, $original);
        } else {
            $imgPath = $original;
        }
        $signature = $secret ? self::sign($imgPath, $secret) : 'unsafe';
        return sprintf('%s/%s/%s', $server, $signature, $imgPath);
    }