Skip to content

Commit

Permalink
minor #3713 Updated versionadded directives to use "introduced" (Wout…
Browse files Browse the repository at this point in the history
…erJ)

This PR was merged into the 2.3 branch.

Discussion
----------

Updated versionadded directives to use "introduced"

I was tired of explaining why we didn't update them on every created PR,
so I decided to just update them :P

| Q   | A
| --- | ---
| Doc fix? | yes
| New docs? | no
| Applies to | 2.3+
| Fixed tickets | many :)

Commits
-------

2884f18 Fixed syntax
c192278 was added -> was introduced
  • Loading branch information
weaverryan committed Mar 26, 2014
2 parents 06c56c1 + 2884f18 commit e7580c0
Show file tree
Hide file tree
Showing 36 changed files with 56 additions and 57 deletions.
8 changes: 4 additions & 4 deletions book/forms.rst
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ other things, determines which HTML form tag(s) is rendered for that field.
Finally, you added a submit button for submitting the form to the server.

.. versionadded:: 2.3
Support for submit buttons was added in Symfony 2.3. Before that, you had
Support for submit buttons was introduced in Symfony 2.3. Before that, you had
to add buttons to the form's HTML manually.

Symfony2 comes with many built-in types that will be discussed shortly
Expand Down Expand Up @@ -278,7 +278,7 @@ Submitting Forms with Multiple Buttons
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. versionadded:: 2.3
Support for buttons in forms was added in Symfony 2.3.
Support for buttons in forms was introduced in Symfony 2.3.

When your form contains more than one submit button, you will want to check
which of the buttons was clicked to adapt the program flow in your controller.
Expand Down Expand Up @@ -478,7 +478,7 @@ Disabling Validation
~~~~~~~~~~~~~~~~~~~~

.. versionadded:: 2.3
The ability to set ``validation_groups`` to false was added in Symfony 2.3.
The ability to set ``validation_groups`` to false was introduced in Symfony 2.3.

Sometimes it is useful to suppress the validation of a form altogether. For
these cases you can set the ``validation_groups`` option to ``false``::
Expand Down Expand Up @@ -548,7 +548,7 @@ Groups based on the Clicked Button
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. versionadded:: 2.3
Support for buttons in forms was added in Symfony 2.3.
Support for buttons in forms was introduced in Symfony 2.3.

When your form contains multiple submit buttons, you can change the validation
group depending on which button is used to submit the form. For example,
Expand Down
4 changes: 2 additions & 2 deletions book/routing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ Adding a Host Requirement
~~~~~~~~~~~~~~~~~~~~~~~~~

.. versionadded:: 2.2
Host matching support was added in Symfony 2.2
Host matching support was introduced in Symfony 2.2

You can also match on the HTTP *host* of the incoming request. For more
information, see :doc:`/components/routing/hostname_pattern` in the Routing
Expand Down Expand Up @@ -1075,7 +1075,7 @@ Adding a Host requirement to Imported Routes
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. versionadded:: 2.2
Host matching support was added in Symfony 2.2
Host matching support was introduced in Symfony 2.2

You can set the host regex on imported routes. For more information, see
:ref:`component-routing-host-imported`.
Expand Down
6 changes: 3 additions & 3 deletions book/templating.rst
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ Template Naming and Locations
-----------------------------

.. versionadded:: 2.2
Namespaced path support was added in 2.2, allowing for template names
Namespaced path support was introduced in 2.2, allowing for template names
like ``@AcmeDemo/layout.html.twig``. See :doc:`/cookbook/templating/namespaced_paths`
for more details.

Expand Down Expand Up @@ -677,7 +677,7 @@ Asynchronous Content with hinclude.js
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. versionadded:: 2.1
hinclude.js support was added in Symfony 2.1
hinclude.js support was introduced in Symfony 2.1

Controllers can be embedded asynchronously using the hinclude.js_ JavaScript library.
As the embedded content comes from another page (or controller for that matter),
Expand Down Expand Up @@ -786,7 +786,7 @@ in your application configuration:
));
.. versionadded:: 2.2
Default templates per render function was added in Symfony 2.2
Default templates per render function was introduced in Symfony 2.2

You can define default templates per ``render`` function (which will override
any global default template that is defined):
Expand Down
4 changes: 2 additions & 2 deletions components/class_loader/cache_class_loader.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ ApcClassLoader
--------------

.. versionadded:: 2.1
The ``ApcClassLoader`` class was added in Symfony 2.1.
The ``ApcClassLoader`` class was introduced in Symfony 2.1.

``ApcClassLoader`` wraps an existing class loader and caches calls to its
``findFile()`` method using `APC`_::
Expand All @@ -50,7 +50,7 @@ XcacheClassLoader
-----------------

.. versionadded:: 2.1
The ``XcacheClassLoader`` class was added in Symfony 2.1.
The ``XcacheClassLoader`` class was introduced in Symfony 2.1.

``XcacheClassLoader`` uses `XCache`_ to cache a class loader. Registering
it is straightforward::
Expand Down
2 changes: 1 addition & 1 deletion components/class_loader/class_loader.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ The PSR-0 Class Loader
======================

.. versionadded:: 2.1
The ``ClassLoader`` class was added in Symfony 2.1.
The ``ClassLoader`` class was introduced in Symfony 2.1.

If your classes and third-party libraries follow the `PSR-0`_ standard, you
can use the :class:`Symfony\\Component\\ClassLoader\\ClassLoader` class to
Expand Down
2 changes: 1 addition & 1 deletion components/class_loader/debug_class_loader.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Debugging a Class Loader
========================

.. versionadded:: 2.1
The ``DebugClassLoader`` class was added in Symfony 2.1.
The ``DebugClassLoader`` class was introduced in Symfony 2.1.

The :class:`Symfony\\Component\\ClassLoader\\DebugClassLoader` attempts to
throw more helpful exceptions when a class isn't found by the registered
Expand Down
10 changes: 5 additions & 5 deletions components/console/helpers/dialoghelper.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Autocompletion
~~~~~~~~~~~~~~

.. versionadded:: 2.2
Autocompletion for questions was added in Symfony 2.2.
Autocompletion for questions was introduced in Symfony 2.2.

You can also specify an array of potential answers for a given question. These
will be autocompleted as the user types::
Expand All @@ -78,7 +78,7 @@ Hiding the User's Response
~~~~~~~~~~~~~~~~~~~~~~~~~~

.. versionadded:: 2.2
The ``askHiddenResponse`` method was added in Symfony 2.2.
The ``askHiddenResponse`` method was introduced in Symfony 2.2.

You can also ask a question and hide the response. This is particularly
convenient for passwords::
Expand Down Expand Up @@ -148,7 +148,7 @@ Validating a Hidden Response
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. versionadded:: 2.2
The ``askHiddenResponseAndValidate`` method was added in Symfony 2.2.
The ``askHiddenResponseAndValidate`` method was introduced in Symfony 2.2.

You can also ask and validate a hidden response::

Expand Down Expand Up @@ -176,7 +176,7 @@ Let the user choose from a list of Answers

.. versionadded:: 2.2
The :method:`Symfony\\Component\\Console\\Helper\\DialogHelper::select` method
was added in Symfony 2.2.
was introduced in Symfony 2.2.

If you have a predefined set of answers the user can choose from, you
could use the ``ask`` method described above or, to make sure the user
Expand Down Expand Up @@ -211,7 +211,7 @@ argument). The default value for the attempts is ``false``, which means infinite
attempts. You can define your own error message in the sixth argument.

.. versionadded:: 2.3
Multiselect support was added in Symfony 2.3.
Multiselect support was introduced in Symfony 2.3.

Multiple Choices
................
Expand Down
4 changes: 2 additions & 2 deletions components/console/helpers/progresshelper.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ Progress Helper
===============

.. versionadded:: 2.2
The ``progress`` helper was added in Symfony 2.2.
The ``progress`` helper was introduced in Symfony 2.2.

.. versionadded:: 2.3
The ``setCurrent`` method was added in Symfony 2.3.
The ``setCurrent`` method was introduced in Symfony 2.3.

When executing longer-running commands, it may be helpful to show progress
information, which updates as your command runs:
Expand Down
2 changes: 1 addition & 1 deletion components/console/helpers/tablehelper.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Table Helper
============

.. versionadded:: 2.3
The ``table`` helper was added in Symfony 2.3.
The ``table`` helper was introduced in Symfony 2.3.

When building a console application it may be useful to display tabular data:

Expand Down
2 changes: 1 addition & 1 deletion components/event_dispatcher/immutable_dispatcher.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ The Immutable Event Dispatcher
==============================

.. versionadded:: 2.1
This feature was added in Symfony 2.1.
This feature was introduced in Symfony 2.1.

The :class:`Symfony\\Component\\EventDispatcher\\ImmutableEventDispatcher` is
a locked or frozen event dispatcher. The dispatcher cannot register new
Expand Down
4 changes: 2 additions & 2 deletions components/finder.rst
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ Search in several locations by chaining calls to
$finder->files()->in(__DIR__)->in('/elsewhere');

.. versionadded:: 2.2
Wildcard support was added in version 2.2.
Wildcard support was introduced in version 2.2.

Use wildcard characters to search in the directories matching a pattern::

Expand All @@ -98,7 +98,7 @@ Exclude directories from matching with the

.. versionadded:: 2.3
The :method:`Symfony\\Component\\Finder\\Finder::ignoreUnreadableDirs`
method was added in Symfony 2.3.
method was introduced in Symfony 2.3.

It's also possible to ignore directories that you don't have permission to read::

Expand Down
2 changes: 1 addition & 1 deletion components/form/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Request Handling
~~~~~~~~~~~~~~~~

.. versionadded:: 2.3
The ``handleRequest()`` method was added in Symfony 2.3.
The ``handleRequest()`` method was introduced in Symfony 2.3.

To process form data, you'll need to call the :method:`Symfony\\Component\\Form\\Form::handleRequest`
method::
Expand Down
2 changes: 1 addition & 1 deletion components/http_foundation/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ abstracts the hard work behind a simple API::

.. versionadded:: 2.2
The :class:`Symfony\\Component\\HttpFoundation\\BinaryFileResponse`
class was added in Symfony 2.2.
class was introduced in Symfony 2.2.

Alternatively, if you are serving a static file, you can use a
:class:`Symfony\\Component\\HttpFoundation\\BinaryFileResponse`::
Expand Down
3 changes: 1 addition & 2 deletions components/intl.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ The Intl Component
access to the localization data of the `ICU library`_.

.. versionadded:: 2.3

The Intl component was added in Symfony 2.3. In earlier versions of Symfony,
The Intl component was introduced in Symfony 2.3. In earlier versions of Symfony,
you should use the Locale component instead.

.. caution::
Expand Down
10 changes: 5 additions & 5 deletions components/process.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ anonymous function to the
});

.. versionadded:: 2.1
The non-blocking feature was added in 2.1.
The non-blocking feature was introduced in 2.1.

Running Processes Asynchronously
--------------------------------
Expand Down Expand Up @@ -112,7 +112,7 @@ Stopping a Process
------------------

.. versionadded:: 2.3
The ``signal`` parameter of the ``stop`` method was added in Symfony 2.3.
The ``signal`` parameter of the ``stop`` method was introduced in Symfony 2.3.

Any asynchronous process can be stopped at any time with the
:method:`Symfony\\Component\\Process\\Process::stop` method. This method takes
Expand Down Expand Up @@ -152,7 +152,7 @@ To make your code work better on all platforms, you might want to use the

.. versionadded:: 2.3
The :method:`ProcessBuilder::setPrefix<Symfony\\Component\\Process\\ProcessBuilder::setPrefix>`
method was added in Symfony 2.3.
method was introduced in Symfony 2.3.

In case you are building a binary driver, you can use the
:method:`Symfony\\Component\\Process\\Process::setPrefix` method to prefix all
Expand Down Expand Up @@ -214,7 +214,7 @@ Process Signals
---------------

.. versionadded:: 2.3
The ``signal`` method was added in Symfony 2.3.
The ``signal`` method was introduced in Symfony 2.3.

When running a program asynchronously, you can send it posix signals with the
:method:`Symfony\\Component\\Process\\Process::signal` method::
Expand All @@ -240,7 +240,7 @@ Process Pid
-----------

.. versionadded:: 2.3
The ``getPid`` method was added in Symfony 2.3.
The ``getPid`` method was introduced in Symfony 2.3.

You can access the `pid`_ of a running process with the
:method:`Symfony\\Component\\Process\\Process::getPid` method.
Expand Down
2 changes: 1 addition & 1 deletion components/property_access/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ enable this feature by using :class:`Symfony\\Component\\PropertyAccess\\Propert
echo $accessor->getValue($person, 'wouter'); // array(...)

.. versionadded:: 2.3
The use of magic ``__call()`` method was added in Symfony 2.3.
The use of magic ``__call()`` method was introduced in Symfony 2.3.

.. caution::

Expand Down
2 changes: 1 addition & 1 deletion components/routing/hostname_pattern.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ How to match a route based on the Host
======================================

.. versionadded:: 2.2
Host matching support was added in Symfony 2.2
Host matching support was introduced in Symfony 2.2

You can also match on the HTTP *host* of the incoming request.

Expand Down
2 changes: 1 addition & 1 deletion components/routing/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ A full route definition can contain up to seven parts:
``GET``, ``POST``, ...).

.. versionadded:: 2.2
Host matching support was added in Symfony 2.2
Host matching support was introduced in Symfony 2.2

Take the following route, which combines several of these ideas::

Expand Down
4 changes: 2 additions & 2 deletions components/serializer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ Ignoring Attributes when Serializing

.. versionadded:: 2.3
The :method:`GetSetMethodNormalizer::setIgnoredAttributes<Symfony\\Component\\Serializer\\Normalizer\\GetSetMethodNormalizer::setIgnoredAttributes>`
method was added in Symfony 2.3.
method was introduced in Symfony 2.3.

As an option, there's a way to ignore attributes from the origin object when
serializing. To remove those attributes use the
Expand Down Expand Up @@ -153,7 +153,7 @@ Using Camelized Method Names for Underscored Attributes

.. versionadded:: 2.3
The :method:`GetSetMethodNormalizer::setCamelizedAttributes<Symfony\\Component\\Serializer\\Normalizer\\GetSetMethodNormalizer::setCamelizedAttributes>`
method was added in Symfony 2.3.
method was introduced in Symfony 2.3.

Sometimes property names from the serialized content are underscored (e.g.
``first_name``). Normally, these attributes will use get/set methods like
Expand Down
2 changes: 1 addition & 1 deletion cookbook/doctrine/mapping_model_classes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ register the mappings for your model classes.
just to get the auto mapping, use the compiler pass.

.. versionadded:: 2.3
The base mapping compiler pass was added in Symfony 2.3. The Doctrine bundles
The base mapping compiler pass was introduced in Symfony 2.3. The Doctrine bundles
support it from DoctrineBundle >= 1.2.1, MongoDBBundle >= 3.0.0,
PHPCRBundle >= 1.0.0-alpha2 and the (unversioned) CouchDBBundle supports the
compiler pass since the `CouchDB Mapping Compiler Pass pull request`_
Expand Down
2 changes: 1 addition & 1 deletion cookbook/form/direct_submit.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ How to use the submit() Function to handle Form Submissions

.. versionadded:: 2.3
The :method:`Symfony\\Component\\Form\\FormInterface::handleRequest`
method was added in Symfony 2.3.
method was introduced in Symfony 2.3.

With the ``handleRequest()`` method, it is really easy to handle form
submissions::
Expand Down
2 changes: 1 addition & 1 deletion cookbook/form/dynamic_form_modification.rst
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ the event listener might look like the following::
.. versionadded:: 2.2
The ability to pass a string into
:method:`FormInterface::add <Symfony\\Component\\Form\\FormInterface::add>`
was added in Symfony 2.2.
was introduced in Symfony 2.2.

.. note::
You can of course use any callback type instead of a closure, e.g. a method
Expand Down
2 changes: 1 addition & 1 deletion cookbook/security/entity_provider.rst
Original file line number Diff line number Diff line change
Expand Up @@ -800,4 +800,4 @@ or worry about it.

.. versionadded:: 2.1
In Symfony 2.1, the ``equals`` method was removed from ``UserInterface``
and the ``EquatableInterface`` was added in its place.
and the ``EquatableInterface`` was introduced in its place.
2 changes: 1 addition & 1 deletion cookbook/session/php_bridge.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Bridge a legacy application with Symfony Sessions
=================================================

.. versionadded:: 2.3
The ability to integrate with a legacy PHP session was added in Symfony 2.3.
The ability to integrate with a legacy PHP session was introduced in Symfony 2.3.

If you're integrating the Symfony full-stack Framework into a legacy application
that starts the session with ``session_start()``, you may still be able to
Expand Down
2 changes: 1 addition & 1 deletion cookbook/templating/namespaced_paths.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ How to use and Register namespaced Twig Paths
=============================================

.. versionadded:: 2.2
Namespaced path support was added in 2.2.
Namespaced path support was introduced in 2.2.

Usually, when you refer to a template, you'll use the ``MyBundle:Subdir:filename.html.twig``
format (see :ref:`template-naming-locations`).
Expand Down
2 changes: 1 addition & 1 deletion reference/configuration/framework.rst
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ profiler
~~~~~~~~

.. versionadded:: 2.2
The ``enabled`` option was added in Symfony 2.2. Previously, the profiler
The ``enabled`` option was introduced in Symfony 2.2. Previously, the profiler
could only be disabled by omitting the ``framework.profiler`` configuration
entirely.

Expand Down
Loading

0 comments on commit e7580c0

Please sign in to comment.