@@ -294,12 +294,12 @@ class to generate absolute URLs for their assets::
294294 // ...
295295
296296 $urlPackage = new UrlPackage(
297- 'http ://static.example.com/images/',
297+ 'https ://static.example.com/images/',
298298 new StaticVersionStrategy('v1')
299299 );
300300
301301 echo $urlPackage->getUrl('/logo.png');
302- // result: http ://static.example.com/images/logo.png?v1
302+ // result: https ://static.example.com/images/logo.png?v1
303303
304304You can also pass a schema-agnostic URL::
305305
@@ -326,15 +326,15 @@ constructor::
326326 // ...
327327
328328 $urls = [
329- '//static1.example.com/images/',
330- '//static2.example.com/images/',
329+ 'https: //static1.example.com/images/',
330+ 'https: //static2.example.com/images/',
331331 ];
332332 $urlPackage = new UrlPackage($urls, new StaticVersionStrategy('v1'));
333333
334334 echo $urlPackage->getUrl('/logo.png');
335- // result: http ://static1.example.com/images/logo.png?v1
335+ // result: https ://static1.example.com/images/logo.png?v1
336336 echo $urlPackage->getUrl('/icon.png');
337- // result: http ://static2.example.com/images/icon.png?v1
337+ // result: https ://static2.example.com/images/icon.png?v1
338338
339339For each asset, one of the URLs will be randomly used. But, the selection
340340is deterministic, meaning that each asset will always be served by the same
@@ -384,7 +384,7 @@ they all have different base paths::
384384 $defaultPackage = new Package($versionStrategy);
385385
386386 $namedPackages = [
387- 'img' => new UrlPackage('http ://img.example.com/', $versionStrategy),
387+ 'img' => new UrlPackage('https ://img.example.com/', $versionStrategy),
388388 'doc' => new PathPackage('/somewhere/deep/for/documents', $versionStrategy),
389389 ];
390390
@@ -400,7 +400,7 @@ document inside a template::
400400 // result: /main.css?v1
401401
402402 echo $packages->getUrl('/logo.png', 'img');
403- // result: http ://img.example.com/logo.png?v1
403+ // result: https ://img.example.com/logo.png?v1
404404
405405 echo $packages->getUrl('resume.pdf', 'doc');
406406 // result: /somewhere/deep/for/documents/resume.pdf?v1
0 commit comments