-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Closed
Description
Symfony version(s) affected: 3.4.12 (think currently all published symfony versions affected)
Description
I want to use file://
as base_urls
in the framework
asset
configuration as this is a lot faster when generating pdfs from html.
How to reproduce
config.yml
:
framework:
assets:
packages:
pdf:
base_urls: 'file://%kernel.project_dir%/web'
Twig:
{{ asset('test.jpg', 'pdf') }}
Ends up in:
(1/3) InvalidArgumentException"file:///Users/alex/development/symfony.lo/web" is not a valid URL
jvasseur