Skip to content

Commit 4346f75

Browse files
committed
Removed versionadded:: 2.1 directives
1 parent 48e7ded commit 4346f75

Some content is hidden

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

46 files changed

+5
-240
lines changed

book/forms.rst

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,6 @@ it into a format that's suitable for being rendered in an HTML form.
183183
(e.g. ``isPublished()`` or ``hasReminder()``) instead of a getter (e.g.
184184
``getPublished()`` or ``getReminder()``).
185185

186-
.. versionadded:: 2.1
187-
Support for "hasser" methods was added in Symfony 2.1.
188-
189186
.. index::
190187
single: Forms; Handling form submission
191188

@@ -408,10 +405,6 @@ be used to validate the underlying object.
408405
Groups based on Submitted Data
409406
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
410407

411-
.. versionadded:: 2.1
412-
The ability to specify a callback or Closure in ``validation_groups``
413-
is new to version 2.1
414-
415408
If you need some advanced logic to determine the validation groups (e.g.
416409
based on submitted data), you can set the ``validation_groups`` option
417410
to an array callback, or a ``Closure``::
@@ -1235,18 +1228,13 @@ To customize any portion of a form, you just need to override the appropriate
12351228
fragment. Knowing exactly which block or file to override is the subject of
12361229
the next section.
12371230

1238-
.. versionadded:: 2.1
1239-
An alternate Twig syntax for ``form_theme`` has been introduced in 2.1. It accepts
1240-
any valid Twig expression (the most noticeable difference is using an array when
1241-
using multiple themes).
1242-
1243-
.. code-block:: html+jinja
1231+
.. code-block:: html+jinja
12441232

1245-
{# src/Acme/TaskBundle/Resources/views/Default/new.html.twig #}
1233+
{# src/Acme/TaskBundle/Resources/views/Default/new.html.twig #}
12461234

1247-
{% form_theme form with 'AcmeTaskBundle:Form:fields.html.twig' %}
1235+
{% form_theme form with 'AcmeTaskBundle:Form:fields.html.twig' %}
12481236

1249-
{% form_theme form with ['AcmeTaskBundle:Form:fields.html.twig', 'AcmeTaskBundle:Form:fields2.html.twig'] %}
1237+
{% form_theme form with ['AcmeTaskBundle:Form:fields.html.twig', 'AcmeTaskBundle:Form:fields2.html.twig'] %}
12501238

12511239
For a more extensive discussion, see :doc:`/cookbook/form/form_customization`.
12521240

@@ -1604,11 +1592,6 @@ The answer is to setup the constraints yourself, and attach them to the individu
16041592
fields. The overall approach is covered a bit more in the :ref:`validation chapter<book-validation-raw-values>`,
16051593
but here's a short example:
16061594

1607-
.. versionadded:: 2.1
1608-
The ``constraints`` option, which accepts a single constraint or an array
1609-
of constraints (before 2.1, the option was called ``validation_constraint``,
1610-
and only accepted a single constraint) is new to Symfony 2.1.
1611-
16121595
.. code-block:: php
16131596
16141597
use Symfony\Component\Validator\Constraints\Length;

book/page_creation.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -813,9 +813,6 @@ options of each feature.
813813
Default Configuration Dump
814814
~~~~~~~~~~~~~~~~~~~~~~~~~~
815815

816-
.. versionadded:: 2.1
817-
The ``config:dump-reference`` command was added in Symfony 2.1
818-
819816
You can dump the default configuration for a bundle in yaml to the console using
820817
the ``config:dump-reference`` command. Here is an example of dumping the default
821818
FrameworkBundle configuration:

book/security.rst

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -410,11 +410,6 @@ submission (i.e. ``/login_check``):
410410
URL as the firewall will automatically catch and process any form submitted
411411
to this URL.
412412

413-
.. versionadded:: 2.1
414-
As of Symfony 2.1, you *must* have routes configured for your ``login_path``,
415-
``check_path`` ``logout`` keys. These keys can be route names (as shown
416-
in this example) or URLs that have routes configured for them.
417-
418413
Notice that the name of the ``login`` route matches the``login_path`` config
419414
value, as that's where the security system will redirect users that need
420415
to login.
@@ -1161,12 +1156,6 @@ custom user class is that it implements the :class:`Symfony\\Component\\Security
11611156
interface. This means that your concept of a "user" can be anything, as long
11621157
as it implements this interface.
11631158

1164-
.. versionadded:: 2.1
1165-
In Symfony 2.1, the ``equals`` method was removed from ``UserInterface``.
1166-
If you need to override the default implementation of comparison logic,
1167-
implement the new :class:`Symfony\\Component\\Security\\Core\\User\\EquatableInterface`
1168-
interface.
1169-
11701159
.. note::
11711160

11721161
The user object will be serialized and saved in the session during requests,

book/service_container.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,10 +227,6 @@ The end result is exactly the same as before - the difference is only in
227227
to look for parameters with those names. When the container is built, it
228228
looks up the value of each parameter and uses it in the service definition.
229229

230-
.. versionadded:: 2.1
231-
Escaping the ``@`` character in YAML parameter values is new in Symfony 2.1.9
232-
and Symfony 2.2.1.
233-
234230
.. note::
235231

236232
If you want to use a string that starts with an ``@`` sign as a parameter

book/templating.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -665,9 +665,6 @@ Controllers are fast to execute and promote good code organization and reuse.
665665
Asynchronous Content with hinclude.js
666666
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
667667

668-
.. versionadded:: 2.1
669-
hinclude.js support was added in Symfony 2.1
670-
671668
Controllers can be embedded asynchronously using the hinclude.js_ javascript library.
672669
As the embedded content comes from another page (or controller for that matter),
673670
Symfony2 uses the standard ``render`` helper to configure ``hinclude`` tags:
@@ -1443,9 +1440,6 @@ is ``true``. By default this means that the variables will be dumped in the
14431440
Syntax Checking
14441441
---------------
14451442

1446-
.. versionadded:: 2.1
1447-
The ``twig:lint`` command was added in Symfony 2.1
1448-
14491443
You can check for syntax errors in Twig templates using the ``twig:lint``
14501444
console command:
14511445

book/translation.rst

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -554,11 +554,6 @@ by defining a ``default_locale`` for the framework:
554554
'default_locale' => 'en',
555555
));
556556
557-
.. versionadded:: 2.1
558-
The ``default_locale`` parameter was defined under the session key
559-
originally, however, as of 2.1 this has been moved. This is because the
560-
locale is now set on the request instead of the session.
561-
562557
.. _book-translation-locale-url:
563558

564559
The Locale and the URL
@@ -825,9 +820,6 @@ texts* and complex expressions:
825820
Note that this only influences the current template, not any "included"
826821
templates (in order to avoid side effects).
827822

828-
.. versionadded:: 2.1
829-
The ``trans_default_domain`` tag is new in Symfony2.1
830-
831823
PHP Templates
832824
~~~~~~~~~~~~~
833825

components/class_loader.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ You can install the component in many different ways:
3333
Usage
3434
-----
3535

36-
.. versionadded:: 2.1
37-
The ``useIncludePath`` method was added in Symfony 2.1.
38-
3936
Registering the :class:`Symfony\\Component\\ClassLoader\\UniversalClassLoader`
4037
autoloader is straightforward::
4138

components/event_dispatcher/container_aware_dispatcher.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
The Container Aware Event Dispatcher
55
====================================
66

7-
.. versionadded:: 2.1
8-
This feature was moved into the EventDispatcher component in Symfony 2.1.
9-
107
Introduction
118
------------
129

components/event_dispatcher/generic_event.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
The Generic Event Object
55
========================
66

7-
.. versionadded:: 2.1
8-
The ``GenericEvent`` event class was added in Symfony 2.1
9-
107
The base :class:`Symfony\\Component\\EventDispatcher\\Event` class provided by the
118
``Event Dispatcher`` component is deliberately sparse to allow the creation of
129
API specific event objects by inheritance using OOP. This allow for elegant and

components/event_dispatcher/introduction.rst

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -440,9 +440,6 @@ which returns a boolean value::
440440
EventDispatcher aware Events and Listeners
441441
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
442442

443-
.. versionadded:: 2.1
444-
The ``Event`` object contains a reference to the invoking dispatcher since Symfony 2.1
445-
446443
The ``EventDispatcher`` always injects a reference to itself in the passed event
447444
object. This means that all listeners have direct access to the
448445
``EventDispatcher`` object that notified the listener via the passed ``Event``
@@ -535,9 +532,6 @@ can be the way to go, especially for optional dependencies.
535532
Dispatcher Shortcuts
536533
~~~~~~~~~~~~~~~~~~~~
537534

538-
.. versionadded:: 2.1
539-
``EventDispatcher::dispatch()`` method returns the event since Symfony 2.1.
540-
541535
The :method:`EventDispatcher::dispatch<Symfony\\Component\\EventDispatcher\\EventDispatcher::dispatch>`
542536
method always returns an :class:`Symfony\\Component\\EventDispatcher\\Event`
543537
object. This allows for various shortcuts. For example if one does not need
@@ -575,9 +569,6 @@ and so on...
575569
Event Name Introspection
576570
~~~~~~~~~~~~~~~~~~~~~~~~
577571

578-
.. versionadded:: 2.1
579-
Added event name to the ``Event`` object since Symfony 2.1
580-
581572
Since the ``EventDispatcher`` already knows the name of the event when dispatching
582573
it, the event name is also injected into the
583574
:class:`Symfony\\Component\\EventDispatcher\\Event` objects, making it available

0 commit comments

Comments
 (0)