@@ -286,12 +286,12 @@ class to generate absolute URLs for their assets::
286286 // ...
287287
288288 $urlPackage = new UrlPackage(
289- 'http ://static.example.com/images/',
289+ 'https ://static.example.com/images/',
290290 new StaticVersionStrategy('v1')
291291 );
292292
293293 echo $urlPackage->getUrl('/logo.png');
294- // result: http ://static.example.com/images/logo.png?v1
294+ // result: https ://static.example.com/images/logo.png?v1
295295
296296You can also pass a schema-agnostic URL::
297297
@@ -318,15 +318,15 @@ constructor::
318318 // ...
319319
320320 $urls = [
321- '//static1.example.com/images/',
322- '//static2.example.com/images/',
321+ 'https: //static1.example.com/images/',
322+ 'https: //static2.example.com/images/',
323323 ];
324324 $urlPackage = new UrlPackage($urls, new StaticVersionStrategy('v1'));
325325
326326 echo $urlPackage->getUrl('/logo.png');
327- // result: http ://static1.example.com/images/logo.png?v1
327+ // result: https ://static1.example.com/images/logo.png?v1
328328 echo $urlPackage->getUrl('/icon.png');
329- // result: http ://static2.example.com/images/icon.png?v1
329+ // result: https ://static2.example.com/images/icon.png?v1
330330
331331For each asset, one of the URLs will be randomly used. But, the selection
332332is deterministic, meaning that each asset will always be served by the same
@@ -376,7 +376,7 @@ they all have different base paths::
376376 $defaultPackage = new Package($versionStrategy);
377377
378378 $namedPackages = [
379- 'img' => new UrlPackage('http ://img.example.com/', $versionStrategy),
379+ 'img' => new UrlPackage('https ://img.example.com/', $versionStrategy),
380380 'doc' => new PathPackage('/somewhere/deep/for/documents', $versionStrategy),
381381 ];
382382
@@ -392,7 +392,7 @@ document inside a template::
392392 // result: /main.css?v1
393393
394394 echo $packages->getUrl('/logo.png', 'img');
395- // result: http ://img.example.com/logo.png?v1
395+ // result: https ://img.example.com/logo.png?v1
396396
397397 echo $packages->getUrl('resume.pdf', 'doc');
398398 // result: /somewhere/deep/for/documents/resume.pdf?v1
0 commit comments