Skip to content

Commit

Permalink
Merge branch '2.7' into 2.8
Browse files Browse the repository at this point in the history
* 2.7:
  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
  • Loading branch information
xabbuh committed Jul 19, 2016
2 parents d39277e + 41b71d4 commit 5cef790
Show file tree
Hide file tree
Showing 31 changed files with 154 additions and 58 deletions.
3 changes: 3 additions & 0 deletions components/asset.rst
Original file line number Diff line number Diff line change
Expand Up @@ -324,4 +324,7 @@ document inside a template::
echo $packages->getUrl('/resume.pdf', 'doc');
// result: /somewhere/deep/for/documents/resume.pdf?v1

Learn more
----------

.. _Packagist: https://packagist.org/packages/symfony/asset
7 changes: 7 additions & 0 deletions components/browser_kit.rst
Original file line number Diff line number Diff line change
Expand Up @@ -224,5 +224,12 @@ also delete all the cookies::
// delete history
$client->restart();

Learn more
----------

* :doc:`/testing`
* :doc:`/components/css_selector`
* :doc:`/components/dom_crawler`

.. _`Packagist`: https://packagist.org/packages/symfony/browser-kit
.. _`Goutte`: https://github.com/fabpot/Goutte
3 changes: 3 additions & 0 deletions components/config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,8 @@ Learn More
:glob:

config/*
/bundles/configuration
/bundles/extension
/bundles/prepend_extension

.. _Packagist: https://packagist.org/packages/symfony/config
3 changes: 2 additions & 1 deletion components/console.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Then, you can register the commands using

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

Learn More
Learn more
----------

.. toctree::
Expand All @@ -59,5 +59,6 @@ Learn More
/console
/components/console/*
/components/console/helpers/index
/console/*

.. _Packagist: https://packagist.org/packages/symfony/console
6 changes: 6 additions & 0 deletions components/css_selector.rst
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,9 @@ Several pseudo-classes are not yet supported:
name (e.g. ``li:first-of-type``) but not with ``*``.

.. _Packagist: https://packagist.org/packages/symfony/css-selector

Learn more
----------

* :doc:`/testing`
* :doc:`/components/dom_crawler`
3 changes: 2 additions & 1 deletion components/dependency_injection.rst
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ Learn More
:maxdepth: 1
:glob:

dependency_injection/*
/components/dependency_injection/*
/dependency_injection/*

.. _Packagist: https://packagist.org/packages/symfony/dependency-injection
6 changes: 6 additions & 0 deletions components/dom_crawler.rst
Original file line number Diff line number Diff line change
Expand Up @@ -454,3 +454,9 @@ the whole form or specific field(s)::

.. _`Goutte`: https://github.com/FriendsOfPHP/Goutte
.. _Packagist: https://packagist.org/packages/symfony/dom-crawler

Learn more
----------

* :doc:`/testing`
* :doc:`/components/css_selector`
6 changes: 5 additions & 1 deletion components/event_dispatcher.rst
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,11 @@ Learn More
:maxdepth: 1
:glob:

event_dispatcher/*
/components/event_dispatcher/*
/event_dispatcher/*

* :ref:`The kernel.event_listener tag <dic-tags-kernel-event-listener>`
* :ref:`The kernel.event_subscriber tag <dic-tags-kernel-event-subscriber>`

.. _Mediator: https://en.wikipedia.org/wiki/Mediator_pattern
.. _Closures: http://php.net/manual/en/functions.anonymous.php
Expand Down
5 changes: 4 additions & 1 deletion components/expression_language.rst
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ Learn More
:maxdepth: 1
:glob:

expression_language/*
/expressions
/components/expression_language/*
/service_container/expression_language
/reference/constraints/Expression

.. _Packagist: https://packagist.org/packages/symfony/expression-language
9 changes: 9 additions & 0 deletions components/form.rst
Original file line number Diff line number Diff line change
Expand Up @@ -743,6 +743,15 @@ method to access the list of errors. It returns a
This is useful, for example, if you want to use PHP's ``array_`` function
on the form errors.

Learn more
----------

.. toctree::
:maxdepth: 1
:glob:

/form/*

.. _Packagist: https://packagist.org/packages/symfony/form
.. _Twig: http://twig.sensiolabs.org
.. _`Twig Configuration`: http://twig.sensiolabs.org/doc/intro.html
7 changes: 6 additions & 1 deletion components/http_foundation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,12 @@ Learn More
:maxdepth: 1
:glob:

http_foundation/*
/components/http_foundation/*
/controller
/controller/*
/request/*
/session/*
/http_cache/*

.. _Packagist: https://packagist.org/packages/symfony/http-foundation
.. _Nginx: http://wiki.nginx.org/XSendfile
Expand Down
9 changes: 9 additions & 0 deletions components/http_kernel.rst
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,15 @@ look like this::
// ...
}

Learn more
----------

.. toctree::
:maxlength: 1
:glob:

/reference/events

.. _Packagist: https://packagist.org/packages/symfony/http-kernel
.. _reflection: http://php.net/manual/en/book.reflection.php
.. _FOSRestBundle: https://github.com/friendsofsymfony/FOSRestBundle
Expand Down
12 changes: 12 additions & 0 deletions components/intl.rst
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,18 @@ to the current default locale::

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

Learn more
----------

.. toctree::
:maxdepth: 1
:glob:

/reference/forms/types/country
/reference/forms/types/currency
/reference/forms/types/language
/reference/forms/types/locale

.. _Packagist: https://packagist.org/packages/symfony/intl
.. _Icu component: https://packagist.org/packages/symfony/icu
.. _intl extension: http://www.php.net/manual/en/book.intl.php
Expand Down
13 changes: 13 additions & 0 deletions components/routing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -346,4 +346,17 @@ automatically in the background if you want to use it. A basic example of the
are saved in the ``cache_dir``. This means your script must have write
permissions for that location.

Learn more
----------

.. toctree::
:maxdepth: 1
:glob:

/routing
/routing/*
/controller
/controller/*
/configuration/apache_router

.. _Packagist: https://packagist.org/packages/symfony/routing
6 changes: 5 additions & 1 deletion components/security.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ Learn More
:maxdepth: 1
:glob:

security/*
/components/security/*
/security
/security/*
/reference/configuration/security
/reference/constraints/UserPassword

.. _Packagist: https://packagist.org/packages/symfony/security
.. _`CSRF attacks`: https://en.wikipedia.org/wiki/Cross-site_request_forgery
9 changes: 9 additions & 0 deletions components/serializer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -680,5 +680,14 @@ you indicate that you're expecting an array instead of a single object.
A popular alternative to the Symfony Serializer Component is the third-party
library, `JMS serializer`_ (released under the Apache license, so incompatible with GPLv2 projects).

Learn more
----------

.. toctree::
:maxdepth: 1
:glob:

/serializer

.. _`JMS serializer`: https://github.com/schmittjoh/serializer
.. _Packagist: https://packagist.org/packages/symfony/serializer
4 changes: 3 additions & 1 deletion components/templating.rst
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,8 @@ Learn More
:maxdepth: 1
:glob:

templating/*
/components/templating/*
/templating
/templating/*

.. _Packagist: https://packagist.org/packages/symfony/templating
5 changes: 4 additions & 1 deletion components/translation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,10 @@ Learn More
:maxdepth: 1
:glob:

translation/*
/components/translation/*
/translation
/translation/*
/validation/translation

.. _Packagist: https://packagist.org/packages/symfony/translation
.. _`ISO 3166-1 alpha-2`: https://en.wikipedia.org/wiki/ISO_3166-1#Current_codes
Expand Down
11 changes: 11 additions & 0 deletions components/validator.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,15 @@ You can install the component in 2 different ways:

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

Learn more
----------

.. toctree::
:maxdepth: 1
:glob:

/validation
/validation/*
/reference/constraints/*

.. _Packagist: https://packagist.org/packages/symfony/validator
5 changes: 0 additions & 5 deletions configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -388,11 +388,6 @@ And the many other topics.
Learn more
----------

.. toctree::
:hidden:

forms

.. toctree::
:maxdepth: 1
:glob:
Expand Down
4 changes: 4 additions & 0 deletions contributing/documentation/overview.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ while you're reading the Symfony documentation.
and you'll be redirected to GitHub:

.. image:: /_images/contributing/docs-github-edit-page.png
:align: center
:class: with-browser

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

.. image:: /_images/contributing/docs-github-create-pr.png
:align: center
:class: with-browser

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

Expand Down
16 changes: 10 additions & 6 deletions controller/error_pages.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,17 @@ with lots of debug information to help you quickly discover the root problem:

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

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

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

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

.. note::

In case of extending the
:class:`Symfony\\Bundle\\TwigBundle\\Controller\\ExceptionController` you
may configure a service to pass the Twig environment and the ``debug`` flag
to the constructor.
to the constructor.

.. configuration-block::

.. code-block:: yaml
# app/config/services.yml
services:
app.exception_controller:
Expand Down
1 change: 0 additions & 1 deletion form/type_guesser.rst
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,6 @@ creating a service and tagging it as ``form.type_guesser``:
->addTag('form.type_guesser')
;
.. sidebar:: Registering a Type Guesser in the Component

If you're using the Form component standalone in your PHP project, use
Expand Down
2 changes: 1 addition & 1 deletion page_creation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,8 @@ way of building beautiful, functional, fast and maintainable apps.

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

* :doc:`/controller`
* :doc:`/routing`
* :doc:`/controller`
* :doc:`/templating`

Then, learn about other important topics like the
Expand Down
2 changes: 2 additions & 0 deletions quick_tour/the_big_picture.rst
Original file line number Diff line number Diff line change
Expand Up @@ -175,13 +175,15 @@ developer's best friend!

.. image:: /_images/quick_tour/web_debug_toolbar.png
:align: center
:class: with-browser

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

.. image:: /_images/quick_tour/profiler.png
:align: center
: class: with-browser

This tool provides so much internal information about your application that
you may be worried about your visitors accessing sensible information. Symfony
Expand Down
6 changes: 3 additions & 3 deletions routing/debug.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ the command by running the following from the root of your project.

.. code-block:: bash
$ php bin/console debug:router
$ php app/console debug:router
.. versionadded:: 2.6
Prior to Symfony 2.6, this command was called ``router:debug``.
Expand All @@ -33,14 +33,14 @@ the route name after the command:

.. code-block:: bash
$ php bin/console debug:router article_show
$ php app/console debug:router article_show
Likewise, if you want to test whether a URL matches a given route, you can
use the ``router:match`` console command:

.. code-block:: bash
$ php bin/console router:match /blog/my-latest-post
$ php app/console router:match /blog/my-latest-post
This command will print which route the URL matches.

Expand Down
2 changes: 1 addition & 1 deletion routing/generate_url_javascript.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ variables. The ``escape`` function helps escape any non-JavaScript-safe values:

<script>
var route = "<?php echo $view->escape(
$view['router']->generate('blow_show', array(
$view['router']->path('blow_show', array(
'slug' => 'my-blog-post',
)),
'js'
Expand Down
1 change: 1 addition & 0 deletions setup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ Welcome Page of Symfony:
.. image:: /_images/quick_tour/welcome.png
:align: center
:alt: Symfony Welcome Page
:class: with-browser

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

0 comments on commit 5cef790

Please sign in to comment.