We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://github.com/filejet/filejet-bundle/blob/master/src/Twig/FileJetExtension.php#L40
public function getAsset(string $path, string $mutation = null): string { $mutation = empty($mutation) ? '' : "/${mutation}"; $mutation .= $this->config->isAutoMode() ? ',auto' : ''; $originPath = urlencode("{$this->config->getBaseUrl()}{$path}"); return "{$this->config->getPublicUrl()}/ext{$mutation}?src={$originPath}"; }
should looks like e.g
public function getAsset(string $path, string $mutation = null): string { $parts = []; if($mutation) { $parts[] = $mutation; } if($this->config->isAutoMode()) { $parts[] = 'auto'; } $finalMutation = !empty($parts) ? "/" . implode(',', $parts) : ''; $originPath = urlencode("{$this->config->getBaseUrl()}{$path}"); return "{$this->config->getPublicUrl()}/ext{$finalMutation}?src={$originPath}"; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
https://github.com/filejet/filejet-bundle/blob/master/src/Twig/FileJetExtension.php#L40
should looks like e.g
The text was updated successfully, but these errors were encountered: