Skip to content

Commit a804532

Browse files
committed
Use HTTPS links when possible
1 parent 5eb01ea commit a804532

21 files changed

+36
-36
lines changed

components/asset.rst

+8-8
Original file line numberDiff line numberDiff line change
@@ -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

304304
You 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

339339
For each asset, one of the URLs will be randomly used. But, the selection
340340
is 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

components/intl.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ Learn more
378378
/reference/forms/types/timezone
379379

380380
.. _install the intl extension: https://www.php.net/manual/en/intl.setup.php
381-
.. _ICU library: http://site.icu-project.org/
381+
.. _ICU library: https://icu.unicode.org/
382382
.. _`Unicode ISO 15924 Registry`: https://www.unicode.org/iso15924/iso15924-codes.html
383383
.. _`ISO 3166-1 alpha-2`: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
384384
.. _`ISO 3166-1 alpha-3`: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3

components/phpunit_bridge.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ to register a new `test listener`_ called ``SymfonyTestsListener``:
5050

5151
.. code-block:: xml
5252
53-
<!-- http://phpunit.de/manual/6.0/en/appendixes.configuration.html -->
53+
<!-- https://phpunit.de/manual/6.0/en/appendixes.configuration.html -->
5454
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5555
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/6.0/phpunit.xsd"
5656
>
@@ -199,7 +199,7 @@ message, enclosed with ``/``. For example, with:
199199

200200
.. code-block:: xml
201201
202-
<!-- http://phpunit.de/manual/6.0/en/appendixes.configuration.html -->
202+
<!-- https://phpunit.de/manual/6.0/en/appendixes.configuration.html -->
203203
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
204204
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/6.0/phpunit.xsd"
205205
>
@@ -828,7 +828,7 @@ namespaces in the ``phpunit.xml`` file, as done for example in the
828828

829829
.. code-block:: xml
830830
831-
<!-- http://phpunit.de/manual/4.1/en/appendixes.configuration.html -->
831+
<!-- https://phpunit.de/manual/4.1/en/appendixes.configuration.html -->
832832
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
833833
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/4.1/phpunit.xsd"
834834
>
@@ -1019,7 +1019,7 @@ Add the following configuration to the ``phpunit.xml.dist`` file:
10191019

10201020
.. code-block:: xml
10211021
1022-
<!-- http://phpunit.de/manual/6.0/en/appendixes.configuration.html -->
1022+
<!-- https://phpunit.de/manual/6.0/en/appendixes.configuration.html -->
10231023
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10241024
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/6.0/phpunit.xsd"
10251025
>

components/serializer.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1890,7 +1890,7 @@ Learn more
18901890
.. _RFC3339: https://tools.ietf.org/html/rfc3339#section-5.8
18911891
.. _`options with libxml`: https://www.php.net/manual/en/libxml.constants.php
18921892
.. _`DOM XML_* constants`: https://www.php.net/manual/en/dom.constants.php
1893-
.. _JSON: http://www.json.org/
1893+
.. _JSON: https://www.json.org/json-en.html
18941894
.. _XML: https://www.w3.org/XML/
18951895
.. _YAML: https://yaml.org/
18961896
.. _CSV: https://tools.ietf.org/html/rfc4180

components/uid.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ to create each type of UUID::
5858
$uuid = Uuid::v3(Uuid::NAMESPACE_OID, $name); // same as: Uuid::v3('oid', $name);
5959
$uuid = Uuid::v3(Uuid::NAMESPACE_X500, $name); // same as: Uuid::v3('x500', $name);
6060

61-
// UUID type 6 is not part of the UUID standard. It's lexicographically sortable
61+
// UUID type 6 is not yet part of the UUID standard. It's lexicographically sortable
6262
// (like ULIDs) and contains a 60-bit timestamp and 63 extra unique bits.
63-
// It's defined in http://gh.peabody.io/uuidv6/
63+
// It's defined in https://www.ietf.org/archive/id/draft-peabody-dispatch-new-uuid-format-04.html#name-uuid-version-6
6464
$uuid = Uuid::v6(); // $uuid is an instance of Symfony\Component\Uid\UuidV6
6565

6666
.. versionadded:: 5.3

deployment.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -255,10 +255,10 @@ Learn More
255255

256256
.. _`Capifony`: https://github.com/everzet/capifony
257257
.. _`Capistrano`: https://capistranorb.com/
258-
.. _`Fabric`: http://www.fabfile.org/
258+
.. _`Fabric`: https://www.fabfile.org/
259259
.. _`Ansistrano`: https://ansistrano.com/
260260
.. _`Magallanes`: https://github.com/andres-montanez/Magallanes
261-
.. _`Memcached`: http://memcached.org/
261+
.. _`Memcached`: https://memcached.org/
262262
.. _`Redis`: https://redis.io/
263263
.. _`Symfony plugin`: https://github.com/capistrano/symfony/
264264
.. _`Deployer`: https://deployer.org/

deployment/proxies.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,4 +182,4 @@ handling the request::
182182
.. _`CloudFront`: https://en.wikipedia.org/wiki/Amazon_CloudFront
183183
.. _`CloudFront IP ranges`: https://ip-ranges.amazonaws.com/ip-ranges.json
184184
.. _`HTTP Host header attacks`: https://www.skeletonscribe.net/2013/05/practical-http-host-header-attacks.html
185-
.. _`nginx realip module`: http://nginx.org/en/docs/http/ngx_http_realip_module.html
185+
.. _`nginx realip module`: https://nginx.org/en/docs/http/ngx_http_realip_module.html

http_cache/esi.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -253,4 +253,4 @@ The ``render_esi`` helper supports two other useful options:
253253
of ``continue`` indicating that, in the event of a failure, the gateway cache
254254
will remove the ESI tag silently.
255255

256-
.. _`ESI`: http://www.w3.org/TR/esi-lang
256+
.. _`ESI`: https://www.w3.org/TR/esi-lang/

http_cache/varnish.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,9 @@ proxy before it has expired, it adds complexity to your caching setup.
225225
Varnish and other reverse proxies for cache invalidation.
226226

227227
.. _`Varnish`: https://varnish-cache.org/
228-
.. _`Edge Architecture`: http://www.w3.org/TR/edge-arch
228+
.. _`Edge Architecture`: https://www.w3.org/TR/edge-arch
229229
.. _`clean the cookies header`: https://varnish-cache.org/docs/7.0/reference/vmod_cookie.html
230-
.. _`Surrogate-Capability Header`: http://www.w3.org/TR/edge-arch
230+
.. _`Surrogate-Capability Header`: https://www.w3.org/TR/edge-arch
231231
.. _`cache invalidation`: https://tools.ietf.org/html/rfc2616#section-13.10
232232
.. _`FOSHttpCacheBundle`: https://foshttpcachebundle.readthedocs.io/en/latest/features/user-context.html
233233
.. _`default.vcl`: https://github.com/varnishcache/varnish-cache/blob/3.0/bin/varnishd/default.vcl

introduction/http_fundamentals.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -372,8 +372,8 @@ Here's what we've learned so far:
372372

373373
.. _`xkcd`: https://xkcd.com/
374374
.. _`XMLHttpRequest`: https://en.wikipedia.org/wiki/XMLHttpRequest
375-
.. _`HTTP 1.1 RFC`: http://www.w3.org/Protocols/rfc2616/rfc2616.html
376-
.. _`HTTP Bis`: http://datatracker.ietf.org/wg/httpbis/
375+
.. _`HTTP 1.1 RFC`: https://www.w3.org/Protocols/rfc2616/rfc2616.html
376+
.. _`HTTP Bis`: https://datatracker.ietf.org/wg/httpbis/
377377
.. _`List of HTTP header fields`: https://en.wikipedia.org/wiki/List_of_HTTP_header_fields
378378
.. _`list of HTTP status codes`: https://en.wikipedia.org/wiki/List_of_HTTP_status_codes
379379
.. _`List of common media types`: https://www.iana.org/assignments/media-types/media-types.xhtml

reference/constraints/File.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -390,5 +390,5 @@ The message that is displayed if the uploaded file is only partially uploaded.
390390

391391
This message has no parameters.
392392

393-
.. _`IANA website`: http://www.iana.org/assignments/media-types/media-types.xhtml
393+
.. _`IANA website`: https://www.iana.org/assignments/media-types/media-types.xhtml
394394
.. _`Wikipedia: Binary prefix`: https://en.wikipedia.org/wiki/Binary_prefix

reference/constraints/Image.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -557,5 +557,5 @@ options has been set.
557557

558558
This message has no parameters.
559559

560-
.. _`IANA website`: http://www.iana.org/assignments/media-types/media-types.xhtml
560+
.. _`IANA website`: https://www.iana.org/assignments/media-types/media-types.xhtml
561561
.. _`PHP GD extension`: https://www.php.net/manual/en/book.image.php

reference/formats/message_format.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -498,8 +498,8 @@ The ``number`` formatter allows you to format numbers using Intl's :phpclass:`Nu
498498
// "9 988 776,65 €"
499499
echo $translator->trans('value_of_object', ['value' => 9988776.65]);
500500
501-
.. _`online editor`: http://format-message.github.io/icu-message-format-for-translators/
501+
.. _`online editor`: https://format-message.github.io/icu-message-format-for-translators/
502502
.. _`ICU MessageFormat`: https://unicode-org.github.io/icu/userguide/format_parse/messages/
503503
.. _`switch statement`: https://www.php.net/control-structures.switch
504-
.. _`Language Plural Rules`: http://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html
504+
.. _`Language Plural Rules`: https://www.unicode.org/cldr/charts/43/supplemental/language_plural_rules.html
505505
.. _`constants defined by the IntlDateFormatter class`: https://www.php.net/manual/en/class.intldateformatter.php

reference/formats/xliff.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ loaded/dumped inside a Symfony application:
3737
</file>
3838
</xliff>
3939
40-
.. _XLIFF: http://docs.oasis-open.org/xliff/xliff-core/v2.1/xliff-core-v2.1.html
40+
.. _XLIFF: https://docs.oasis-open.org/xliff/xliff-core/v2.1/xliff-core-v2.1.html

reference/forms/types/datetime.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -231,5 +231,5 @@ Field Variables
231231
| | | contains the input type to use (``datetime``, ``date`` or ``time``). |
232232
+----------+------------+----------------------------------------------------------------------+
233233

234-
.. _`datetime local`: http://w3c.github.io/html-reference/datatypes.html#form.data.datetime-local
234+
.. _`datetime local`: https://html.spec.whatwg.org/multipage/input.html#local-date-and-time-state-(type=datetime-local)
235235
.. _`Date/Time Format Syntax`: https://unicode-org.github.io/icu/userguide/format_parse/datetime/#datetime-format-syntax

reference/forms/types/language.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,4 +141,4 @@ The actual default value of this option depends on other field options:
141141

142142
.. _`ISO 639-1 alpha-2`: https://en.wikipedia.org/wiki/ISO_639-1
143143
.. _`ISO 639-2 alpha-3 (2T)`: https://en.wikipedia.org/wiki/ISO_639-2
144-
.. _`International Components for Unicode`: http://site.icu-project.org
144+
.. _`International Components for Unicode`: https://icu.unicode.org/

reference/forms/types/options/required.rst.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ from your validation information.
1515
The required option also affects how empty data for each field is
1616
handled. For more details, see the `empty_data`_ option.
1717

18-
.. _`HTML5 required attribute`: http://diveintohtml5.info/forms.html
18+
.. _`HTML5 required attribute`: https://html.spec.whatwg.org/multipage/input.html#attr-input-required

reference/forms/types/timezone.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,4 +133,4 @@ The actual default value of this option depends on other field options:
133133

134134
.. include:: /reference/forms/types/options/row_attr.rst.inc
135135

136-
.. _`ICU Project`: http://site.icu-project.org/
136+
.. _`ICU Project`: https://icu.unicode.org/

security/ldap.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,6 @@ Configuration example for form login and query_string
528528
};
529529
530530
.. _`LDAP PHP extension`: https://www.php.net/manual/en/intro.ldap.php
531-
.. _`RFC4515`: http://www.faqs.org/rfcs/rfc4515.html
531+
.. _`RFC4515`: https://datatracker.ietf.org/doc/rfc4515/
532532
.. _`LDAP injection`: http://projects.webappsec.org/w/page/13246947/LDAP%20Injection
533533

serializer.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ take a look at how this bundle works.
419419

420420
.. _`API Platform`: https://api-platform.com
421421
.. _`JSON-LD`: https://json-ld.org
422-
.. _`Hydra Core Vocabulary`: http://www.hydra-cg.com
422+
.. _`Hydra Core Vocabulary`: https://www.hydra-cg.com/
423423
.. _`OpenAPI`: https://www.openapis.org
424424
.. _`GraphQL`: https://graphql.org
425425
.. _`JSON:API`: https://jsonapi.org

templates.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1601,4 +1601,4 @@ for this class and :doc:`tag your service </service_container/tags>` with ``twig
16011601
.. _`default Twig filters and functions`: https://twig.symfony.com/doc/3.x/#reference
16021602
.. _`official Twig extensions`: https://github.com/twigphp?q=extra
16031603
.. _`global variables`: https://twig.symfony.com/doc/3.x/advanced.html#id1
1604-
.. _`hinclude.js`: http://mnot.github.io/hinclude/
1604+
.. _`hinclude.js`: https://mnot.github.io/hinclude/

0 commit comments

Comments
 (0)