Skip to content

Commit

Permalink
Merge branch '2.8' into 3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
wouterj committed Mar 7, 2017
2 parents 8a150a1 + e70927f commit 53e4ee9
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 9 deletions.
2 changes: 1 addition & 1 deletion bundles/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ bundle configuration would look like:
http://symfony.com/schema/dic/services/services-1.0.xsd">
<acme-social:config>
<twitter client-id="123" client-secret="your_secret" />
<acme-social:twitter client-id="123" client-secret="your_secret" />
</acme-social:config>
<!-- ... -->
Expand Down
2 changes: 1 addition & 1 deletion components/console/helpers/formatterhelper.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Formatter Helper
================

The Formatter helpers provides functions to format the output with colors.
The Formatter helper provides functions to format the output with colors.
You can do more advanced things with this helper than you can in
:doc:`/console/coloring`.

Expand Down
2 changes: 1 addition & 1 deletion components/event_dispatcher.rst
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ the ``Event`` object as the single argument::
}
}

The ``$event`` argument is the event class that was passed when dispatching the
The ``$event`` argument is the event object that was passed when dispatching the
event. In many cases, a special event subclass is passed with extra
information. You can check the documentation or implementation of each event to
determine which instance is passed.
Expand Down
2 changes: 1 addition & 1 deletion components/phpunit_bridge.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ You can install the component in 2 different ways:
Usage
-----

Once the component installed, it automatically registers a
Once the component is installed, it automatically registers a
`PHPUnit event listener`_ which in turn registers a `PHP error handler`_
called :class:`Symfony\\Bridge\\PhpUnit\\DeprecationErrorHandler`. After
running your PHPUnit tests, you will get a report similar to this one:
Expand Down
2 changes: 1 addition & 1 deletion components/security/authentication.rst
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ password was valid::
)
);

// for some extra checks: is account enabled, locked, expired, etc.?
// for some extra checks: is account enabled, locked, expired, etc.
$userChecker = new UserChecker();

// an array of password encoders (see below)
Expand Down
2 changes: 1 addition & 1 deletion configuration/environments.rst
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ behavior:
# 'test' environment and debug disabled
$ php bin/console command_name --env=test --no-debug
In addition to the ``--env`` and ``--debug`` options, the behavior of Symfony
In addition to the ``--env`` and ``--no-debug`` options, the behavior of Symfony
commands can also be controlled with environment variables. The Symfony console
application checks the existence and value of these environment variables before
executing any command:
Expand Down
13 changes: 12 additions & 1 deletion configuration/micro_kernel_trait.rst
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ That's it! To test it, you can start the built-in web server:
Then see the JSON response in your browser:

> http://localhost:8000/random/10
http://localhost:8000/random/10

The Methods of a "Micro" Kernel
-------------------------------
Expand Down Expand Up @@ -326,6 +326,17 @@ this:
├─ composer.json
└─ composer.lock
As before you can use PHP built-in server:

.. code-block:: bash
cd web/
$ php -S localhost:8000
Then see webpage in browser:

http://localhost:8000/random/10

Hey, that looks a lot like a *traditional* Symfony application! You're right: the
``MicroKernelTrait`` *is* still Symfony: but you can control your structure and
features quite easily.
2 changes: 1 addition & 1 deletion event_dispatcher/before_after_filters.rst
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ Creating an Event Listener
~~~~~~~~~~~~~~~~~~~~~~~~~~

Next, you'll need to create an event listener, which will hold the logic
that you want executed before your controllers. If you're not familiar with
that you want to be executed before your controllers. If you're not familiar with
event listeners, you can learn more about them at :doc:`/event_dispatcher`::

// src/AppBundle/EventListener/TokenListener.php
Expand Down
2 changes: 1 addition & 1 deletion form/dynamic_form_modification.rst
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ and fill in the listener logic::

$formOptions = array(
'class' => User::class,
'property' => 'fullName',
'choice_label' => 'fullName',
'query_builder' => function (EntityRepository $er) use ($user) {
// build a custom query
// return $er->createQueryBuilder('u')->addOrderBy('fullName', 'DESC');
Expand Down

0 comments on commit 53e4ee9

Please sign in to comment.