class FrontendServiceProvider extends AbstractServiceProvider
Properties
| protected Application | $container | from AbstractServiceProvider |
|
Methods
static string
bundledFontUrl( Container $container, string $file)
The URL of a bundled Font Awesome webfont, stamped with the same revision the compiled stylesheet gives it.
Details
__construct( Application $app)
at
line 37
void
register()
at
line 317
void
boot( Container $container, Dispatcher $events, Factory $views)
at
line 341
void
addBaseCss( SourceCollector $sources)
at
line 436
static protected string
bundledFontUrl( Container $container, string $file)
The URL of a bundled Font Awesome webfont, stamped with the same revision the compiled stylesheet gives it.
LessCompiler::finalize() appends `?v=<hash of the font file>` to every font URL in the CSS, so a changed font is a new URL. Anything else that points at the same font has to carry that revision too, or the browser treats it as a different file. The revision comes from the assets, which read the same file the stylesheet's revision comes from.