8000 Fix build errors by xabbuh · Pull Request #3578 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Fix build errors #3578

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 13 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions components/dependency_injection/parameters.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ and set a parameter in the container with::

$container->setParameter('mailer.transport', 'sendmail');

.. caution::

The used ``.`` notation is just a
:ref:`Symfony convention <service-naming-conventions>` to make parameters
easier to read. Parameters are just flat key-value elements, they can't be
organized into a nested array

.. note::

You can only set a parameter before the container is compiled. To learn
Expand Down Expand Up @@ -190,9 +197,9 @@ making the class of a service a parameter:
Array Parameters
----------------

Parameters do not need to be flat strings, they can also be arrays. For the XML
format, you need to use 8000 the ``type="collection"`` attribute for all parameters that are
arrays.
Parameters do not need to be flat strings, they can also contain array values.
For the XML format, you need to use the ``type="collection"`` attribute for
all parameters that are arrays.

.. configuration-block::

Expand Down
4 changes: 2 additions & 2 deletions components/event_dispatcher/generic_event.rst
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ Filtering data::

use Symfony\Component\EventDispatcher\GenericEvent;

$event = new GenericEvent($subject, array('data' => 'foo'));
$event = new GenericEvent($subject, array('data' => 'Foo'));
$dispatcher->dispatch('foo', $event);

echo $event['data'];
Expand All @@ -102,6 +102,6 @@ Filtering data::
{
public function filter(GenericEvent $event)
{
strtolower($event['data']);
$event['data'] = strtolower($event['data']);
}
}
2 changes: 2 additions & 0 deletions contributing/code/standards.rst
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ Naming Conventions
* Don't forget to look at the more verbose :doc:`conventions` document for
more subjective naming considerations.

.. _service-naming-conventions:

Service Naming Conventions
~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down
6 changes: 3 additions & 3 deletions cookbook/bundles/remove.rst
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ rely on the bundle you are about to remove.

.. tip::

If one bundle relies on another, in most it means that it uses some services
from the bundle. Searching for the bundle alias string may help you spot
them (e.g. ``acme_demo`` for bundles depending on AcmeDemoBundle).
If one bundle relies on another, in most cases it means that it uses
some services from the bundle. Searching for the bundle alias string may
help you spot them (e.g. ``acme_demo`` for bundles depending on AcmeDemoBundle).

.. tip::

Expand Down
2 changes: 1 addition & 1 deletion cookbook/testing/simulating_authentication.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ with a request. The following example demonstrates this technique::
{
$this->logIn();

$this->client->request('GET', '/demo/secured/hello/Fabien');
$crawler = $this->client->request('GET', '/demo/secured/hello/Fabien');

$this->assertTrue($this->client->getResponse()->isSuccessful());
$this->assertGreaterThan(0, $crawler->filter('html:contains("Hello Fabien")')->count());
Expand Down
2 changes: 0 additions & 2 deletions reference/forms/types/checkbox.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ These options inherit from the :doc:`form </reference/forms/types/form>` type:

.. include:: /reference/forms/types/options/data.rst.inc

.. include:: /reference/forms/types/options/empty_data.rst.inc

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

.. include:: /reference/forms/types/options/label.rst.inc
Expand Down
2 changes: 1 addition & 1 deletion reference/forms/types/collection.rst
Original file line number Diff line number Diff line change
Expand Up @@ -365,4 +365,4 @@ error_bubbling

.. include:: /reference/forms/types/options/mapped.rst.inc

.. include:: /reference/forms/type/options/cascade_validation.rst.inc
.. include:: /reference/forms/types/options/cascade_validation.rst.inc
2 changes: 1 addition & 1 deletion reference/forms/types/options/checkbox_empty_data.rst.inc
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ empty_data
This option determines what value the field will return when the ``empty_value``
choice is selected.
In checkbox, the value of ``empty_data`` is overriden by the value returned by
the data transformer (see :doc:`/cookbook/form/data_transformers.rst`).
the data transformer (see :doc:`/cookbook/form/data_transformers`).
2 changes: 1 addition & 1 deletion reference/forms/types/timezone.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ or ``Europe/Istanbul``.

Unlike the ``choice`` type, you don't need to specify a ``c 511F hoices`` or
``choice_list`` option as the field type automatically uses a large list
of locales. You *can* specify either of these options manually, but then
of timezones. You *can* specify either of these options manually, but then
you should just use the ``choice`` type directly.

+-------------+------------------------------------------------------------------------+
Expand Down
0