Skip to content

Commit 7ea1141

Browse files
committed
Merge branch '3.0' into 3.1
* 3.0: after merge fixes fix some issues after merging 2.7 into 2.8 fix another bug due to choosing the wrong branch Update some screenshots to wrap them with a browser window some minor tweaks fix bugs due to choosing the wrong base branch complete component cross references Updated the Global Composer Installation article Removing an index to forms - this seemed to cause big errors in how the index/breadcrumbs were built Switching wrong link order
2 parents 4e79f6e + 8ae23dc commit 7ea1141

34 files changed

+164
-58
lines changed

components/asset.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,4 +321,7 @@ document inside a template::
321321
echo $packages->getUrl('/resume.pdf', 'doc');
322322
// result: /somewhere/deep/for/documents/resume.pdf?v1
323323

324+
Learn more
325+
----------
326+
324327
.. _Packagist: https://packagist.org/packages/symfony/asset

components/browser_kit.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,5 +224,12 @@ also delete all the cookies::
224224
// delete history
225225
$client->restart();
226226

227+
Learn more
228+
----------
229+
230+
* :doc:`/testing`
231+
* :doc:`/components/css_selector`
232+
* :doc:`/components/dom_crawler`
233+
227234
.. _`Packagist`: https://packagist.org/packages/symfony/browser-kit
228235
.. _`Goutte`: https://github.com/fabpot/Goutte

components/config.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,8 @@ Learn More
2828
:glob:
2929

3030
config/*
31+
/bundles/configuration
32+
/bundles/extension
33+
/bundles/prepend_extension
3134

3235
.. _Packagist: https://packagist.org/packages/symfony/config

components/console.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Then, you can register the commands using
4949

5050
See the :doc:`/console` article for information about how to create commands.
5151

52-
Learn More
52+
Learn more
5353
----------
5454

5555
.. toctree::
@@ -59,5 +59,6 @@ Learn More
5959
/console
6060
/components/console/*
6161
/components/console/helpers/index
62+
/console/*
6263

6364
.. _Packagist: https://packagist.org/packages/symfony/console

components/css_selector.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,9 @@ Several pseudo-classes are not yet supported:
9393
name (e.g. ``li:first-of-type``) but not with ``*``.
9494

9595
.. _Packagist: https://packagist.org/packages/symfony/css-selector
96+
97+
Learn more
98+
----------
99+
100+
* :doc:`/testing`
101+
* :doc:`/components/dom_crawler`

components/dependency_injection.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ Learn More
293293
:maxdepth: 1
294294
:glob:
295295

296-
dependency_injection/*
296+
/components/dependency_injection/*
297+
/dependency_injection/*
297298

298299
.. _Packagist: https://packagist.org/packages/symfony/dependency-injection

components/dom_crawler.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,3 +466,9 @@ the whole form or specific field(s)::
466466

467467
.. _`Goutte`: https://github.com/FriendsOfPHP/Goutte
468468
.. _Packagist: https://packagist.org/packages/symfony/dom-crawler
469+
470+
Learn more
471+
----------
472+
473+
* :doc:`/testing`
474+
* :doc:`/components/css_selector`

components/event_dispatcher.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,11 @@ Learn More
519519
:maxdepth: 1
520520
:glob:
521521

522-
event_dispatcher/*
522+
/components/event_dispatcher/*
523+
/event_dispatcher/*
524+
525+
* :ref:`The kernel.event_listener tag <dic-tags-kernel-event-listener>`
526+
* :ref:`The kernel.event_subscriber tag <dic-tags-kernel-event-subscriber>`
523527

524528
.. _Mediator: https://en.wikipedia.org/wiki/Mediator_pattern
525529
.. _Closures: http://php.net/manual/en/functions.anonymous.php

components/expression_language.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,9 @@ Learn More
119119
:maxdepth: 1
120120
:glob:
121121

122-
expression_language/*
122+
/expressions
123+
/components/expression_language/*
124+
/service_container/expression_language
125+
/reference/constraints/Expression
123126

124127
.. _Packagist: https://packagist.org/packages/symfony/expression-language

components/form.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -720,6 +720,15 @@ method to access the list of errors. It returns a
720720
// a FormErrorIterator instance representing the form tree structure
721721
$errors = $form->getErrors(true, false);
722722

723+
Learn more
724+
----------
725+
726+
.. toctree::
727+
:maxdepth: 1
728+
:glob:
729+
730+
/form/*
731+
723732
.. _Packagist: https://packagist.org/packages/symfony/form
724733
.. _Twig: http://twig.sensiolabs.org
725734
.. _`Twig Configuration`: http://twig.sensiolabs.org/doc/intro.html

components/http_foundation.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,12 @@ Learn More
593593
:maxdepth: 1
594594
:glob:
595595

596-
http_foundation/*
596+
/components/http_foundation/*
597+
/controller
598+
/controller/*
599+
/request/*
600+
/session/*
601+
/http_cache/*
597602

598603
.. _Packagist: https://packagist.org/packages/symfony/http-foundation
599604
.. _Nginx: http://wiki.nginx.org/XSendfile

components/http_kernel.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -742,6 +742,15 @@ look like this::
742742
// ...
743743
}
744744

745+
Learn more
746+
----------
747+
748+
.. toctree::
749+
:maxlength: 1
750+
:glob:
751+
752+
/reference/events
753+
745754
.. _Packagist: https://packagist.org/packages/symfony/http-kernel
746755
.. _reflection: http://php.net/manual/en/book.reflection.php
747756
.. _FOSRestBundle: https://github.com/friendsofsymfony/FOSRestBundle

components/intl.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,18 @@ to the current default locale::
333333

334334
That's all you need to know for now. Have fun coding!
335335

336+
Learn more
337+
----------
338+
339+
.. toctree::
340+
:maxdepth: 1
341+
:glob:
342+
343+
/reference/forms/types/country
344+
/reference/forms/types/currency
345+
/reference/forms/types/language
346+
/reference/forms/types/locale
347+
336348
.. _Packagist: https://packagist.org/packages/symfony/intl
337349
.. _Icu component: https://packagist.org/packages/symfony/icu
338350
.. _intl extension: http://www.php.net/manual/en/book.intl.php

components/routing.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,4 +346,17 @@ automatically in the background if you want to use it. A basic example of the
346346
are saved in the ``cache_dir``. This means your script must have write
347347
permissions for that location.
348348

349+
Learn more
350+
----------
351+
352+
.. toctree::
353+
:maxdepth: 1
354+
:glob:
355+
356+
/routing
357+
/routing/*
358+
/controller
359+
/controller/*
360+
/configuration/apache_router
361+
349362
.. _Packagist: https://packagist.org/packages/symfony/routing

components/security.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,11 @@ Learn More
4545
:maxdepth: 1
4646
:glob:
4747

48-
security/*
48+
/components/security/*
49+
/security
50+
/security/*
51+
/reference/configuration/security
52+
/reference/constraints/UserPassword
4953

5054
.. _Packagist: https://packagist.org/packages/symfony/security
5155
.. _`CSRF attacks`: https://en.wikipedia.org/wiki/Cross-site_request_forgery

components/serializer.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -677,6 +677,15 @@ you indicate that you're expecting an array instead of a single object.
677677
A popular alternative to the Symfony Serializer Component is the third-party
678678
library, `JMS serializer`_ (released under the Apache license, so incompatible with GPLv2 projects).
679679

680+
Learn more
681+
----------
682+
683+
.. toctree::
684+
:maxdepth: 1
685+
:glob:
686+
687+
/serializer
688+
680689
.. _`JMS serializer`: https://github.com/schmittjoh/serializer
681690
.. _Packagist: https://packagist.org/packages/symfony/serializer
682691
.. _RFC3339: https://tools.ietf.org/html/rfc3339#section-5.8

components/templating.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,8 @@ Learn More
208208
:maxdepth: 1
209209
:glob:
210210

211-
templating/*
211+
/components/templating/*
212+
/templating
213+
/templating/*
212214

213215
.. _Packagist: https://packagist.org/packages/symfony/templating

components/translation.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,10 @@ Learn More
219219
:maxdepth: 1
220220
:glob:
221221

222-
translation/*
222+
/components/translation/*
223+
/translation
224+
/translation/*
225+
/validation/translation
223226

224227
.. _Packagist: https://packagist.org/packages/symfony/translation
225228
.. _`ISO 3166-1 alpha-2`: https://en.wikipedia.org/wiki/ISO_3166-1#Current_codes

components/validator.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,15 @@ You can install the component in 2 different ways:
1717

1818
For more information, see the code in the Git Repository.
1919

20+
Learn more
21+
----------
22+
23+
.. toctree::
24+
:maxdepth: 1
25+
:glob:
26+
27+
/validation
28+
/validation/*
29+
/reference/constraints/*
30+
2031
.. _Packagist: https://packagist.org/packages/symfony/validator

configuration.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -388,11 +388,6 @@ And the many other topics.
388388
Learn more
389389
----------
390390

391-
.. toctree::
392-
:hidden:
393-
394-
forms
395-
396391
.. toctree::
397392
:maxdepth: 1
398393
:glob:

contributing/documentation/overview.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ while you're reading the Symfony documentation.
3939
and you'll be redirected to GitHub:
4040

4141
.. image:: /_images/contributing/docs-github-edit-page.png
42+
:align: center
43+
:class: with-browser
4244

4345
**Step 2.** Edit the contents, describe your changes and click on the
4446
**Propose file change** button.
@@ -48,6 +50,8 @@ and you'll be redirected to GitHub:
4850
also display a preview of your changes:
4951

5052
.. image:: /_images/contributing/docs-github-create-pr.png
53+
:align: center
54+
:class: with-browser
5155

5256
If everything is correct, click on the **Create pull request** button.
5357

controller/error_pages.rst

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,17 @@ with lots of debug information to help you quickly discover the root problem:
1515

1616
.. image:: /_images/controller/error_pages/exceptions-in-dev-environment.png
1717
:alt: A typical exception page in the development environment
18+
:align: center
19+
:class: with-browser
1820

1921
Since these pages contain a lot of sensitive internal information, Symfony won't
2022
display them in the production environment. Instead, it'll show a simple and
2123
generic **error page**:
2224

2325
.. image:: /_images/controller/error_pages/errors-in-prod-environment.png
2426
:alt: A typical error page in the production environment
27+
:align: center
28+
:class: with-browser
2529

2630
Error pages for the production environment can be customized in different ways
2731
depending on your needs:
@@ -251,19 +255,19 @@ will be passed two parameters:
251255
Instead of creating a new exception controller from scratch you can, of course,
252256
also extend the default :class:`Symfony\\Bundle\\TwigBundle\\Controller\\ExceptionController`.
253257
In that case, you might want to override one or both of the ``showAction()`` and
254-
``findTemplate()`` methods. The latter one locates the template to be used.
258+
``findTemplate()`` methods. The latter one locates the template to be used.
255259

256260
.. note::
257-
261+
258262
In case of extending the
259263
:class:`Symfony\\Bundle\\TwigBundle\\Controller\\ExceptionController` you
260264
may configure a service to pass the Twig environment and the ``debug`` flag
261-
to the constructor.
262-
265+
to the constructor.
266+
263267
.. configuration-block::
264-
268+
265269
.. code-block:: yaml
266-
270+
267271
# app/config/services.yml
268272
services:
269273
app.exception_controller:

form/action_method.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ to the ``form()`` or the ``form_start()`` helper functions:
4949

5050
<!-- app/Resources/views/default/newAction.html.php -->
5151
<?php echo $view['form']->start($form, array(
52-
'action' => $view['router']->generate('target_route'),
52+
// The path() method was introduced in Symfony 2.8. Prior to 2.8,
53+
// you had to use generate().
54+
'action' => $view['router']->path('target_route'),
5355
'method' => 'GET',
5456
)) ?>
5557

form/type_guesser.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,6 @@ creating a service and tagging it as ``form.type_guesser``:
215215
->addTag('form.type_guesser')
216216
;
217217
218-
219218
.. sidebar:: Registering a Type Guesser in the Component
220219

221220
If you're using the Form component standalone in your PHP project, use

http_cache/esi.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,10 @@ matter), Symfony uses the standard ``render`` helper to configure ESI tags:
149149

150150
<!-- ... or a URL -->
151151
<?php echo $view['actions']->render(
152-
$view['router']->generate('latest_news', array('maxPerPage' => 5)),
152+
$view['router']->path(
153+
'latest_news',
154+
array('maxPerPage' => 5)
155+
),
153156
array('strategy' => 'esi'),
154157
) ?>
155158

page_creation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,8 @@ way of building beautiful, functional, fast and maintainable apps.
240240

241241
Ok, time to finish mastering the fundamentals by reading these chapters:
242242

243-
* :doc:`/controller`
244243
* :doc:`/routing`
244+
* :doc:`/controller`
245245
* :doc:`/templating`
246246

247247
Then, learn about other important topics like the

quick_tour/the_big_picture.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,13 +175,15 @@ developer's best friend!
175175

176176
.. image:: /_images/quick_tour/web_debug_toolbar.png
177177
:align: center
178+
:class: with-browser
178179

179180
But what you see initially is only the tip of the iceberg; click on any
180181
of the bar sections to open the profiler and get much more detailed information
181182
about the request, the query parameters, security details and database queries:
182183

183184
.. image:: /_images/quick_tour/profiler.png
184185
:align: center
186+
: class: with-browser
185187

186188
This tool provides so much internal information about your application that
187189
you may be worried about your visitors accessing sensible information. Symfony

routing/generate_url_javascript.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ variables. The ``escape`` function helps escape any non-JavaScript-safe values:
1616

1717
<script>
1818
var route = "<?php echo $view->escape(
19-
$view['router']->generate('blow_show', array(
19+
$view['router']->path('blog_show', array(
2020
'slug' => 'my-blog-post',
2121
)),
2222
'js'

setup.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ Welcome Page of Symfony:
144144
.. image:: /_images/quick_tour/welcome.png
145145
:align: center
146146
:alt: Symfony Welcome Page
147+
:class: with-browser
147148

148149
If you see a blank page or an error page instead of the Welcome Page, there is
149150
a directory permission misconfiguration. The solution to this problem is

0 commit comments

Comments
 (0)