Skip to content

Commit 4e30af2

Browse files
committed
Merge branch '4.0'
* 4.0: (31 commits) Use "setAttribute" method Use the proper path of version 2.x Added some minor explanation about 308 code Use 308 to ensure http method is preserved suggest(Controller): suggestion about naming habits Mentioned the new FirewallConfig class [Fix] Custom FormType namespace Fixed a minor error in form collections example fix(Extractor): ExtractorInterface called Fix in line numbering Mention that argon2i doesn't need a salt either Update finder.rst Fix "RequestExceptionInterface" link ...
2 parents 8a8b56d + c311f5f commit 4e30af2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+152
-126
lines changed

best_practices/business-logic.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,6 @@ Next: :doc:`/best_practices/controllers`
275275
.. _`full definition`: https://en.wikipedia.org/wiki/Business_logic
276276
.. _`Doctrine project`: http://www.doctrine-project.org/
277277
.. _`fixture class`: https://symfony.com/doc/current/bundles/DoctrineFixturesBundle/index.html#writing-simple-fixtures
278-
.. _`PSR-1`: http://www.php-fig.org/psr/psr-1/
279-
.. _`PSR-2`: http://www.php-fig.org/psr/psr-2/
278+
.. _`PSR-1`: https://www.php-fig.org/psr/psr-1/
279+
.. _`PSR-2`: https://www.php-fig.org/psr/psr-2/
280280
.. _`PHP-CS-Fixer`: https://github.com/FriendsOfPHP/PHP-CS-Fixer

bundles/best_practices.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -546,11 +546,11 @@ Learn more
546546
* :doc:`/bundles/extension`
547547
* :doc:`/bundles/configuration`
548548

549-
.. _`PSR-4`: http://www.php-fig.org/psr/psr-4/
549+
.. _`PSR-4`: https://www.php-fig.org/psr/psr-4/
550550
.. _`Symfony Flex recipe`: https://github.com/symfony/recipes
551-
.. _`Semantic Versioning Standard`: http://semver.org/
551+
.. _`Semantic Versioning Standard`: https://semver.org/
552552
.. _`Packagist`: https://packagist.org/
553-
.. _`choose any license`: http://choosealicense.com/
553+
.. _`choose any license`: https://choosealicense.com/
554554
.. _`valid license identifier`: https://spdx.org/licenses/
555555
.. _`Travis CI`: https://travis-ci.org/
556556
.. _`Travis Cron`: https://docs.travis-ci.com/user/cron-jobs/

components/console/logger.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,4 +111,4 @@ soon as any error message has been logged during the execution of the command.
111111
This is useful to decide which status code to return as the result of executing
112112
the command.
113113

114-
.. _PSR-3: http://www.php-fig.org/psr/psr-3/
114+
.. _PSR-3: https://www.php-fig.org/psr/psr-3/

components/event_dispatcher.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,6 @@ Learn More
513513
* :ref:`The kernel.event_subscriber tag <dic-tags-kernel-event-subscriber>`
514514

515515
.. _Mediator: https://en.wikipedia.org/wiki/Mediator_pattern
516-
.. _Closures: http://php.net/manual/en/functions.anonymous.php
517-
.. _PHP callable: http://www.php.net/manual/en/language.pseudo-types.php#language.types.callback
516+
.. _Closures: https://php.net/manual/en/functions.anonymous.php
517+
.. _PHP callable: https://php.net/manual/en/language.pseudo-types.php#language.types.callback
518518
.. _Packagist: https://packagist.org/packages/symfony/event-dispatcher

components/finder.rst

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,10 @@ It's also possible to ignore directories that you don't have permission to read:
115115
As the Finder uses PHP iterators, you can pass any URL with a supported
116116
`protocol`_::
117117

118+
// always add a trailing slash when looking for in the FTP root dir
119+
$finder->in('ftp://example.com/');
120+
121+
// you can also look for in a FTP directory
118122
$finder->in('ftp://example.com/pub/');
119123

120124
And it also works with user-defined streams::
@@ -318,8 +322,8 @@ The contents of returned files can be read with
318322
// ...
319323
}
320324

321-
.. _strtotime: http://www.php.net/manual/en/datetime.formats.php
322-
.. _protocol: http://www.php.net/manual/en/wrappers.php
323-
.. _Streams: http://www.php.net/streams
324-
.. _IEC standard: http://physics.nist.gov/cuu/Units/binary.html
325+
.. _strtotime: https://php.net/manual/en/datetime.formats.php
326+
.. _protocol: https://php.net/manual/en/wrappers.php
327+
.. _Streams: https://php.net/streams
328+
.. _IEC standard: https://physics.nist.gov/cuu/Units/binary.html
325329
.. _Packagist: https://packagist.org/packages/symfony/finder

components/http_foundation/session_configuration.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,6 @@ particular cookie by reading the ``getLifetime()`` method::
262262
The expiry time of the cookie can be determined by adding the created
263263
timestamp and the lifetime.
264264

265-
.. _`php.net/session.customhandler`: http://php.net/session.customhandler
266-
.. _`php.net/session.configuration`: http://php.net/session.configuration
267-
.. _`php.net/memcached.setoption`: http://php.net/memcached.setoption
265+
.. _`php.net/session.customhandler`: https://php.net/session.customhandler
266+
.. _`php.net/session.configuration`: https://php.net/session.configuration
267+
.. _`php.net/memcached.setoption`: https://php.net/memcached.setoption

components/http_kernel.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ below for more details).
561561
:class:`Symfony\\Component\\HttpKernel\\Exception\\HttpException` class.
562562

563563
3) If the original exception implements
564-
:class:`Symfony\\Component\\HttpKernel\\Exception\\RequestExceptionInterface`,
564+
:class:`Symfony\\Component\\HttpFoundation\\Exception\\RequestExceptionInterface`,
565565
then the status code of the ``FlattenException`` object is populated with
566566
``400`` and no other headers are modified.
567567

@@ -749,10 +749,10 @@ Learn more
749749
/reference/events
750750

751751
.. _Packagist: https://packagist.org/packages/symfony/http-kernel
752-
.. _reflection: http://php.net/manual/en/book.reflection.php
752+
.. _reflection: https://php.net/manual/en/book.reflection.php
753753
.. _FOSRestBundle: https://github.com/friendsofsymfony/FOSRestBundle
754754
.. _`Create your own framework... on top of the Symfony2 Components`: http://fabien.potencier.org/article/50/create-your-own-framework-on-top-of-the-symfony2-components-part-1
755-
.. _`PHP FPM`: http://php.net/manual/en/install.fpm.php
755+
.. _`PHP FPM`: https://php.net/manual/en/install.fpm.php
756756
.. _`SensioFrameworkExtraBundle`: https://symfony.com/doc/current/bundles/SensioFrameworkExtraBundle/index.html
757757
.. _`@ParamConverter`: https://symfony.com/doc/current/bundles/SensioFrameworkExtraBundle/annotations/converters.html
758758
.. _`@Template`: https://symfony.com/doc/current/bundles/SensioFrameworkExtraBundle/annotations/view.html

components/intl.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,6 @@ Learn more
347347

348348
.. _Packagist: https://packagist.org/packages/symfony/intl
349349
.. _Icu component: https://packagist.org/packages/symfony/icu
350-
.. _intl extension: http://www.php.net/manual/en/book.intl.php
351-
.. _install the intl extension: http://www.php.net/manual/en/intl.setup.php
350+
.. _intl extension: https://php.net/manual/en/book.intl.php
351+
.. _install the intl extension: https://php.net/manual/en/intl.setup.php
352352
.. _ICU library: http://site.icu-project.org/

components/ldap.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ delete existing ones::
126126
$query = $ldap->query('dc=symfony,dc=com', '(&(objectclass=person)(ou=Maintainers))');
127127
$result = $query->execute();
128128
$entry = $result[0];
129-
$entry->addAttribute('email', array('fabpot@symfony.com'));
129+
$entry->setAttribute('email', array('fabpot@symfony.com'));
130130
$em->update($entry);
131131

132132
// Removing an existing entry

components/phpunit_bridge.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -572,11 +572,11 @@ not find the SUT:
572572
.. _PHPUnit: https://phpunit.de
573573
.. _`PHPUnit event listener`: https://phpunit.de/manual/current/en/extending-phpunit.html#extending-phpunit.PHPUnit_Framework_TestListener
574574
.. _`PHPUnit's assertStringMatchesFormat()`: https://phpunit.de/manual/current/en/appendixes.assertions.html#appendixes.assertions.assertStringMatchesFormat
575-
.. _`PHP error handler`: http://php.net/manual/en/book.errorfunc.php
575+
.. _`PHP error handler`: https://php.net/manual/en/book.errorfunc.php
576576
.. _`environment variable`: https://phpunit.de/manual/current/en/appendixes.configuration.html#appendixes.configuration.php-ini-constants-variables
577577
.. _Packagist: https://packagist.org/packages/symfony/phpunit-bridge
578-
.. _`@-silencing operator`: http://php.net/manual/en/language.operators.errorcontrol.php
579-
.. _`@-silenced`: http://php.net/manual/en/language.operators.errorcontrol.php
578+
.. _`@-silencing operator`: https://php.net/manual/en/language.operators.errorcontrol.php
579+
.. _`@-silenced`: https://php.net/manual/en/language.operators.errorcontrol.php
580580
.. _`Travis CI`: https://travis-ci.org/
581581
.. _`test listener`: https://phpunit.de/manual/current/en/appendixes.configuration.html#appendixes.configuration.test-listeners
582582
.. _`@covers`: https://phpunit.de/manual/current/en/appendixes.annotations.html#appendixes.annotations.covers

components/process.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,6 @@ absolute path of the executable PHP binary available on your server::
428428
.. _`PHP Bug#39992`: https://bugs.php.net/bug.php?id=39992
429429
.. _`exec`: https://en.wikipedia.org/wiki/Exec_(operating_system)
430430
.. _`pid`: https://en.wikipedia.org/wiki/Process_identifier
431-
.. _`PHP Documentation`: http://php.net/manual/en/pcntl.constants.php
431+
.. _`PHP Documentation`: https://php.net/manual/en/pcntl.constants.php
432432
.. _Packagist: https://packagist.org/packages/symfony/process
433433
.. _`PHP streams`: http://www.php.net/manual/en/book.stream.php

components/psr7.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,6 @@ to a :class:`Symfony\\Component\\HttpFoundation\\Response` instance::
8585
$httpFoundationFactory = new HttpFoundationFactory();
8686
$symfonyResponse = $httpFoundationFactory->createResponse($psrResponse);
8787

88-
.. _`PSR-7`: http://www.php-fig.org/psr/psr-7/
88+
.. _`PSR-7`: https://www.php-fig.org/psr/psr-7/
8989
.. _`Zend Diactoros`: https://github.com/zendframework/zend-diactoros
9090
.. _`symfony/psr-http-message-bridge on Packagist`: https://packagist.org/packages/symfony/psr-http-message-bridge

components/security/firewall.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,21 @@ will be dispatched by the HttpKernel at the beginning of each request
8888
it processes. This way, the firewall may prevent the user from going any
8989
further than allowed.
9090

91+
Firewall Config
92+
~~~~~~~~~~~~~~~
93+
94+
.. versionadded:: 3.2
95+
The ``FirewallConfig`` class was introduced in Symfony 3.2.
96+
97+
The information about a given firewall, such as its name, provider, context,
98+
entry point and access denied URL, is provided by instances of the
99+
:class:`Symfony\\Bundle\\SecurityBundle\\Security\\FirewallConfig` class.
100+
101+
This object can be accessed through the ``getFirewallConfig(Request $request)``
102+
method of the :class:`Symfony\\Component\\Security\\Http\\FirewallMap` class and
103+
through the ``getConfig()`` method of the
104+
:class:`Symfony\\Bundle\\SecurityBundle\\Security\\FirewallContext` class.
105+
91106
.. _firewall_listeners:
92107

93108
Firewall Listeners

components/serializer.rst

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -885,6 +885,18 @@ The array keys beginning with ``@`` are considered XML attributes::
885885
// <foo bar="value" />
886886
// </response>
887887

888+
Use the special ``#`` key to define the data of a node::
889+
890+
array('foo' => array('@bar' => 'value', '#' => 'baz'));
891+
892+
// is encoded as follows:
893+
// <?xml version="1.0"?>
894+
// <response>
895+
// <foo bar="value">
896+
// baz
897+
// </foo>
898+
// </response>
899+
888900
Context
889901
~~~~~~~
890902

@@ -1085,7 +1097,7 @@ Learn more
10851097
A popular alternative to the Symfony Serializer Component is the third-party
10861098
library, `JMS serializer`_ (released under the Apache license, so incompatible with GPLv2 projects).
10871099

1088-
.. _`PSR-1 standard`: http://www.php-fig.org/psr/psr-1/
1100+
.. _`PSR-1 standard`: https://www.php-fig.org/psr/psr-1/
10891101
.. _`JMS serializer`: https://github.com/schmittjoh/serializer
10901102
.. _Packagist: https://packagist.org/packages/symfony/serializer
10911103
.. _RFC3339: https://tools.ietf.org/html/rfc3339#section-5.8

contributing/code/bc.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -300,9 +300,9 @@ Change value of a constant Yes [1]_ [5]_
300300
Changing an argument type is only possible with a parent type.
301301
Changing a return type is only possible with a child type.
302302
303-
.. _Semantic Versioning: http://semver.org/
304-
.. _scalar type: http://php.net/manual/en/function.is-scalar.php
305-
.. _boolean values: http://php.net/manual/en/function.boolval.php
306-
.. _string values: http://www.php.net/manual/en/function.strval.php
307-
.. _integer values: http://www.php.net/manual/en/function.intval.php
308-
.. _float values: http://www.php.net/manual/en/function.floatval.php
303+
.. _Semantic Versioning: https://semver.org/
304+
.. _scalar type: https://php.net/manual/en/function.is-scalar.php
305+
.. _boolean values: https://php.net/manual/en/function.boolval.php
306+
.. _string values: https://php.net/manual/en/function.strval.php
307+
.. _integer values: https://php.net/manual/en/function.intval.php
308+
.. _float values: https://php.net/manual/en/function.floatval.php

contributing/code/bugs.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ If your problem definitely looks like a bug, report it using the official bug
4444

4545
* *(optional)* Attach a :doc:`patch <patches>`.
4646

47-
.. _`Stack Overflow`: http://stackoverflow.com/questions/tagged/symfony2
47+
.. _`Stack Overflow`: https://stackoverflow.com/questions/tagged/symfony2
4848
.. _IRC channel: https://symfony.com/irc
4949
.. _the Symfony Slack: https://symfony.com/slack-invite
5050
.. _tracker: https://github.com/symfony/symfony/issues

contributing/code/patches.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -368,15 +368,15 @@ convert many commits to one commit. This is no longer necessary today, because
368368
Symfony project uses a proprietary tool which automatically squashes all commits
369369
before merging.
370370

371-
.. _ProGit: http://git-scm.com/book
371+
.. _ProGit: https://git-scm.com/book
372372
.. _GitHub: https://github.com/join
373373
.. _`GitHub's Documentation`: https://help.github.com/articles/ignoring-files
374374
.. _Symfony repository: https://github.com/symfony/symfony
375-
.. _dev mailing-list: http://groups.google.com/group/symfony-devs
375+
.. _dev mailing-list: https://groups.google.com/group/symfony-devs
376376
.. _travis-ci.org: https://travis-ci.org/
377-
.. _`travis-ci.org status icon`: http://about.travis-ci.org/docs/user/status-images/
378-
.. _`travis-ci.org Getting Started Guide`: http://about.travis-ci.org/docs/user/getting-started/
377+
.. _`travis-ci.org status icon`: https://about.travis-ci.com/docs/user/status-images/
378+
.. _`travis-ci.org Getting Started Guide`: https://about.travis-ci.com/docs/user/getting-started/
379379
.. _`documentation repository`: https://github.com/symfony/symfony-docs
380-
.. _`fabbot`: http://fabbot.io
381-
.. _`PSR-1`: http://www.php-fig.org/psr/psr-1/
382-
.. _`PSR-2`: http://www.php-fig.org/psr/psr-2/
380+
.. _`fabbot`: https://fabbot.io
381+
.. _`PSR-1`: https://www.php-fig.org/psr/psr-1/
382+
.. _`PSR-2`: https://www.php-fig.org/psr/psr-2/

contributing/code/standards.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -267,9 +267,9 @@ License
267267
present at the top of every PHP file, before the namespace.
268268

269269
.. _`PHP CS Fixer tool`: http://cs.sensiolabs.org/
270-
.. _`PSR-0`: http://www.php-fig.org/psr/psr-0/
271-
.. _`PSR-1`: http://www.php-fig.org/psr/psr-1/
272-
.. _`PSR-2`: http://www.php-fig.org/psr/psr-2/
273-
.. _`PSR-4`: http://www.php-fig.org/psr/psr-4/
274-
.. _`identical comparison`: http://php.net/manual/en/language.operators.comparison.php
270+
.. _`PSR-0`: https://www.php-fig.org/psr/psr-0/
271+
.. _`PSR-1`: https://www.php-fig.org/psr/psr-1/
272+
.. _`PSR-2`: https://www.php-fig.org/psr/psr-2/
273+
.. _`PSR-4`: https://www.php-fig.org/psr/psr-4/
274+
.. _`identical comparison`: https://php.net/manual/en/language.operators.comparison.php
275275
.. _`Yoda conditions`: https://en.wikipedia.org/wiki/Yoda_conditions

contributing/community/releases.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ version: a new version is published every six months, and there is a two months
192192
period to upgrade. Companies wanting more stability use the LTS versions: a new
193193
version is published every two years and there is a year to upgrade.
194194

195-
.. _Semantic Versioning: http://semver.org/
195+
.. _Semantic Versioning: https://semver.org/
196196
.. _Git repository: https://github.com/symfony/symfony
197197
.. _SensioLabs: http://sensiolabs.com/
198198
.. _roadmap notification: https://symfony.com/roadmap

controller.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ This controller is pretty straightforward:
5858
the ``use`` keyword imports the ``Response`` class, which the controller
5959
must return.
6060

61-
* *line 7*: The class can technically be called anything - but should end in the
62-
word ``Controller``
61+
* *line 7*: The class can technically be called anything, but it's suffixed
62+
with ``Controller`` by convention.
6363

6464
* *line 12*: The action method is allowed to have a ``$max`` argument thanks to the
6565
``{max}`` :doc:`wildcard in the route </routing>`.

controller/soap_web_service.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ An example WSDL is below.
165165
</service>
166166
</definitions>
167167
168-
.. _`PHP SOAP`: http://php.net/manual/en/book.soap.php
168+
.. _`PHP SOAP`: https://php.net/manual/en/book.soap.php
169169
.. _`NuSOAP`: http://sourceforge.net/projects/nusoap
170-
.. _`output buffering`: http://php.net/manual/en/book.outcontrol.php
170+
.. _`output buffering`: https://php.net/manual/en/book.outcontrol.php
171171
.. _`Zend SOAP`: http://framework.zend.com/manual/current/en/modules/zend.soap.server.html

create_framework/http_foundation.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -289,16 +289,16 @@ applications using it (like `Symfony`_, `Drupal 8`_, `phpBB 3`_, `ezPublish
289289
5`_, `Laravel`_, `Silex`_ and `more`_).
290290

291291
.. _`Twig`: http://twig.sensiolabs.org/
292-
.. _`HTTP specification`: http://tools.ietf.org/wg/httpbis/
292+
.. _`HTTP specification`: https://tools.ietf.org/wg/httpbis/
293293
.. _`audited`: https://symfony.com/blog/symfony2-security-audit
294294
.. _`Symfony`: https://symfony.com/
295295
.. _`Drupal 8`: https://drupal.org/
296296
.. _`phpBB 3`: https://www.phpbb.com/
297-
.. _`ezPublish 5`: http://ez.no/
298-
.. _`Laravel`: http://laravel.com/
299-
.. _`Silex`: http://silex.sensiolabs.org/
297+
.. _`ezPublish 5`: https://ez.no/
298+
.. _`Laravel`: https://laravel.com/
299+
.. _`Silex`: https://silex.sensiolabs.org/
300300
.. _`Midgard CMS`: http://www.midgard-project.org/
301-
.. _`Zikula`: http://zikula.org/
302-
.. _`autoloaded`: http://php.net/autoload
303-
.. _`PSR-4`: http://www.php-fig.org/psr/psr-4/
301+
.. _`Zikula`: https://zikula.org/
302+
.. _`autoloaded`: https://php.net/autoload
303+
.. _`PSR-4`: https://www.php-fig.org/psr/psr-4/
304304
.. _`more`: https://symfony.com/components/HttpFoundation

create_framework/http_kernel_controller_resolver.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,5 +202,5 @@ Let's conclude with the new version of our framework::
202202
Think about it once more: our framework is more robust and more flexible than
203203
ever and it still has less than 50 lines of code.
204204

205-
.. _`reflection`: http://php.net/reflection
205+
.. _`reflection`: https://php.net/reflection
206206
.. _`FrameworkExtraBundle`: https://symfony.com/doc/current/bundles/SensioFrameworkExtraBundle/annotations/converters.html

create_framework/templating.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,5 +177,5 @@ As always, you can decide to stop here and use the framework as is; it's
177177
probably all you need to create simple websites like those fancy one-page
178178
`websites`_ and hopefully a few others.
179179

180-
.. _`callbacks`: http://php.net/callback#language.types.callback
181-
.. _`websites`: http://kottke.org/08/02/single-serving-sites
180+
.. _`callbacks`: https://php.net/callback#language.types.callback
181+
.. _`websites`: https://kottke.org/08/02/single-serving-sites

create_framework/unit_testing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,4 +219,4 @@ safely think about the next batch of features we want to add to our framework.
219219

220220
.. _`PHPUnit`: https://phpunit.de/manual/current/en/index.html
221221
.. _`test doubles`: https://phpunit.de/manual/current/en/test-doubles.html
222-
.. _`XDebug`: http://xdebug.org/
222+
.. _`XDebug`: https://xdebug.org/

doctrine.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -384,17 +384,17 @@ Take a look at the previous example in more detail:
384384

385385
.. _doctrine-entity-manager:
386386

387-
* **line 17** The ``$this->getDoctrine()->getManager()`` method gets Doctrine's
387+
* **line 16** The ``$this->getDoctrine()->getManager()`` method gets Doctrine's
388388
*entity manager* object, which is the most important object in Doctrine. It's
389389
responsible for saving objects to, and fetching objects from, the database.
390390

391-
* **lines 19-22** In this section, you instantiate and work with the ``$product``
391+
* **lines 18-21** In this section, you instantiate and work with the ``$product``
392392
object like any other normal PHP object.
393393

394-
* **line 25** The ``persist($product)`` call tells Doctrine to "manage" the
394+
* **line 24** The ``persist($product)`` call tells Doctrine to "manage" the
395395
``$product`` object. This does **not** cause a query to be made to the database.
396396

397-
* **line 28** When the ``flush()`` method is called, Doctrine looks through
397+
* **line 27** When the ``flush()`` method is called, Doctrine looks through
398398
all of the objects that it's managing to see if they need to be persisted
399399
to the database. In this example, the ``$product`` object's data doesn't
400400
exist in the database, so the entity manager executes an ``INSERT`` query,

doctrine/dbal.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ mapping type:
152152
),
153153
));
154154
155-
.. _`PDO`: http://www.php.net/pdo
155+
.. _`PDO`: https://php.net/pdo
156156
.. _`Doctrine`: http://www.doctrine-project.org
157157
.. _`DBAL Documentation`: http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/index.html
158158
.. _`Custom Mapping Types`: http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/types.html#custom-mapping-types

form/create_custom_field_type.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Defining the Field Type
1616
In order to create the custom field type, first you have to create the class
1717
representing the field. In this situation the class holding the field type
1818
will be called ``ShippingType`` and the file will be stored in the default location
19-
for form fields, which is ``<BundleName>\Form\Type``. Make sure the field extends
19+
for form fields, which is ``App\Form\Type``. Make sure the field extends
2020
:class:`Symfony\\Component\\Form\\AbstractType`::
2121

2222
// src/Form/Type/ShippingType.php

forms.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,4 +729,4 @@ Learn more
729729
* :doc:`/http_cache/form_csrf_caching`
730730

731731
.. _`Symfony Form component`: https://github.com/symfony/form
732-
.. _`DateTime`: http://php.net/manual/en/class.datetime.php
732+
.. _`DateTime`: https://php.net/manual/en/class.datetime.php

0 commit comments

Comments
 (0)