Skip to content

[2.7] Removed 2.5 versionadded as its deprecated #4769

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

Merged
merged 1 commit into from
Jan 16, 2015
Merged
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
8 changes: 0 additions & 8 deletions book/security.rst
Original file line number Diff line number Diff line change
Expand Up @@ -809,9 +809,6 @@ You can easily deny access from inside a controller::
The ``security.authorization_checker`` service was introduced in Symfony 2.6. Prior
to Symfony 2.6, you had to use the ``isGranted()`` method of the ``security.context`` service.

.. versionadded:: 2.5
The ``createAccessDeniedException`` method was introduced in Symfony 2.5.

The :method:`Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller::createAccessDeniedException`
method creates a special :class:`Symfony\\Component\\Security\\Core\\Exception\\AccessDeniedException`
object, which ultimately triggers a 403 HTTP response inside Symfony.
Expand Down Expand Up @@ -1306,11 +1303,6 @@ cookie will be ever created by Symfony):
Checking for Known Security Vulnerabilities in Dependencies
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. versionadded:: 2.5
The ``security:check`` command was introduced in Symfony 2.5. This command is
included in ``SensioDistributionBundle``, which has to be registered in your
application in order to use this command.

When using lots of dependencies in your Symfony projects, some of them may
contain security vulnerabilities. That's why Symfony includes a command called
``security:check`` that checks your ``composer.lock`` file to find any known
Expand Down
6 changes: 0 additions & 6 deletions book/templating.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1021,9 +1021,6 @@ configuration option.

.. _`book-templating-version-by-asset`:

.. versionadded:: 2.5
Setting versioned URLs on an asset-by-asset basis was introduced in Symfony 2.5.

If you need to set a version for a specific asset, you can set the fourth
argument (or the ``version`` argument) to the desired version:

Expand All @@ -1041,9 +1038,6 @@ If you dont give a version or pass ``null``, the default package version
(from :ref:`ref-framework-assets-version`) will be used. If you pass ``false``,
versioned URL will be deactivated for this asset.

.. versionadded:: 2.5
Absolute URLs for assets were introduced in Symfony 2.5.

If you need absolute URLs for assets, you can set the third argument (or the
``absolute`` argument) to ``true``:

Expand Down
3 changes: 0 additions & 3 deletions book/translation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -670,9 +670,6 @@ For more information, see the documentation for these libraries.
Debugging Translations
----------------------

.. versionadded:: 2.5
The ``debug:translation`` command was introduced in Symfony 2.5.

.. versionadded:: 2.6
Prior to Symfony 2.6, this command was called ``translation:debug``.

Expand Down
3 changes: 0 additions & 3 deletions book/validation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -586,9 +586,6 @@ allows you to add a constraint to any public method whose name starts with
"get", "is" or "has". In this guide, these types of methods are referred to
as "getters".

.. versionadded:: 2.5
Support for methods starting with ``has`` was introduced in Symfony 2.5.

The benefit of this technique is that it allows you to validate your object
dynamically. For example, suppose you want to make sure that a password field
doesn't match the first name of the user (for security reasons). You can
Expand Down
4 changes: 0 additions & 4 deletions components/class_loader/psr4_class_loader.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
The PSR-4 Class Loader
======================

.. versionadded:: 2.5
The :class:`Symfony\\Component\\ClassLoader\\Psr4ClassLoader` was
introduced in Symfony 2.5.

Libraries that follow the `PSR-4`_ standard can be loaded with the ``Psr4ClassLoader``.

.. note::
Expand Down
4 changes: 0 additions & 4 deletions components/console/changing_default_command.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
Changing the Default Command
============================

.. versionadded:: 2.5
The :method:`Symfony\\Component\\Console\\Application::setDefaultCommand`
method was introduced in Symfony 2.5.

The Console component will always run the ``ListCommand`` when no command name is
passed. In order to change the default command you just need to pass the command
name to the ``setDefaultCommand`` method::
Expand Down
4 changes: 0 additions & 4 deletions components/console/helpers/progressbar.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
Progress Bar
============

.. versionadded:: 2.5
The Progress Bar feature was introduced in Symfony 2.5 as a replacement for
the :doc:`Progress Helper </components/console/helpers/progresshelper>`.

When executing longer-running commands, it may be helpful to show progress
information, which updates as your command runs:

Expand Down
3 changes: 0 additions & 3 deletions components/console/helpers/questionhelper.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
Question Helper
===============

.. versionadded:: 2.5
The Question Helper was introduced in Symfony 2.5.

The :class:`Symfony\\Component\\Console\\Helper\\QuestionHelper` provides
functions to ask the user for more information. It is included in the default
helper set, which you can get by calling
Expand Down
4 changes: 0 additions & 4 deletions components/console/helpers/table.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
Table
=====

.. versionadded:: 2.5
The ``Table`` class was introduced in Symfony 2.5 as a replacement for the
:doc:`Table Helper </components/console/helpers/tablehelper>`.

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

.. code-block:: text
Expand Down
4 changes: 0 additions & 4 deletions components/console/logger.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
Using the Logger
================

.. versionadded:: 2.5
The :class:`Symfony\\Component\\Console\\Logger\\ConsoleLogger` was
introduced in Symfony 2.5.

The Console component comes with a standalone logger complying with the
`PSR-3`_ standard. Depending on the verbosity setting, log messages will
be sent to the :class:`Symfony\\Component\\Console\\Output\\OutputInterface`
Expand Down
3 changes: 0 additions & 3 deletions components/dependency_injection/advanced.rst
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,6 @@ which means that your file will be included only once per request.
Decorating Services
-------------------

.. versionadded:: 2.5
Decorated services were introduced in Symfony 2.5.

When overriding an existing definition, the old service is lost:

.. code-block:: php
Expand Down
4 changes: 0 additions & 4 deletions components/event_dispatcher/traceable_dispatcher.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
The Traceable Event Dispatcher
==============================

.. versionadded:: 2.5
The ``TraceableEventDispatcher`` class was moved to the EventDispatcher
component in Symfony 2.5. Before, it was located in the HttpKernel component.

The :class:`Symfony\\Component\\EventDispatcher\\Debug\\TraceableEventDispatcher`
is an event dispatcher that wraps any other event dispatcher and can then
be used to determine which event listeners have been called by the dispatcher.
Expand Down
8 changes: 0 additions & 8 deletions components/form/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -663,14 +663,6 @@ and the errors will display next to the fields on error.
Accessing Form Errors
~~~~~~~~~~~~~~~~~~~~~

.. versionadded:: 2.5
Before Symfony 2.5, ``getErrors()`` returned an array of ``FormError``
objects. The return value was changed to ``FormErrorIterator`` in Symfony
2.5.

.. versionadded:: 2.5
The ``$deep`` and ``$flatten`` arguments were introduced in Symfony 2.5.

You can use the :method:`Symfony\\Component\\Form\\FormInterface::getErrors`
method to access the list of errors. It returns a
:class:`Symfony\\Component\\Form\\FormErrorIterator` instance::
Expand Down
8 changes: 0 additions & 8 deletions components/process.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@ the contents of the output and
:method:`Symfony\\Component\\Process\\Process::clearErrorOutput` clears
the contents of the error output.

.. versionadded:: 2.5
The ``mustRun()`` method was introduced in Symfony 2.5.

The ``mustRun()`` method is identical to ``run()``, except that it will throw
a :class:`Symfony\\Component\\Process\\Exception\\ProcessFailedException`
if the process couldn't be executed successfully (i.e. the process exited
Expand Down Expand Up @@ -306,11 +303,6 @@ You can access the `pid`_ of a running process with the
Disabling Output
----------------

.. versionadded:: 2.5
The :method:`Symfony\\Component\\Process\\Process::disableOutput` and
:method:`Symfony\\Component\\Process\\Process::enableOutput` methods were
introduced in Symfony 2.5.

As standard output and error output are always fetched from the underlying process,
it might be convenient to disable output in some cases to save memory.
Use :method:`Symfony\\Component\\Process\\Process::disableOutput` and
Expand Down
7 changes: 0 additions & 7 deletions components/property_access/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -314,13 +314,6 @@ see `Enable other Features`_.
Checking Property Paths
-----------------------

.. versionadded:: 2.5
The
:method:`PropertyAccessor::isReadable <Symfony\\Component\\PropertyAccess\\PropertyAccessor::isReadable>`
and
:method:`PropertyAccessor::isWritable <Symfony\\Component\\PropertyAccess\\PropertyAccessor::isWritable>`
methods were introduced in Symfony 2.5.

When you want to check whether
:method:`PropertyAccessor::getValue<Symfony\\Component\\PropertyAccess\\PropertyAccessor::getValue>`
can safely be called without actually calling that method, you can use
Expand Down
5 changes: 0 additions & 5 deletions components/serializer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,6 @@ it were ``firstName`` and uses the ``getFirstName`` and ``setFirstName`` methods
Serializing Boolean Attributes
------------------------------

.. versionadded:: 2.5
Support for ``is*`` accessors in
:class:`Symfony\\Component\\Serializer\\Normalizer\\GetSetMethodNormalizer`
was introduced in Symfony 2.5.

If you are using isser methods (methods prefixed by ``is``, like
``Acme\Person::isSportsman()``), the Serializer component will automatically
detect and use it to serialize related attributes.
Expand Down
3 changes: 0 additions & 3 deletions components/stopwatch.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ microtime by yourself. Instead, use the simple
// ... some code goes here
$event = $stopwatch->stop('eventName');

.. versionadded:: 2.5
The ``getEvent()`` method was introduced in Symfony 2.5

The :class:`Symfony\\Component\\Stopwatch\\StopwatchEvent` object can be retrieved
from the :method:`Symfony\\Component\\Stopwatch\\Stopwatch::start`,
:method:`Symfony\\Component\\Stopwatch\\Stopwatch::stop`,
Expand Down
6 changes: 0 additions & 6 deletions components/templating/helpers/assetshelper.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@ You can also specify a URL to use in the second parameter of the constructor::

Now URLs are rendered like ``http://cdn.example.com/images/logo.png``.

.. versionadded:: 2.5
Absolute URLs for assets were introduced in Symfony 2.5.

You can also use the third argument of the helper to force an absolute URL:

.. code-block:: html+php
Expand Down Expand Up @@ -80,9 +77,6 @@ is used in :phpfunction:`sprintf`. The first argument is the path and the
second is the version. For instance, ``%s?v=%s`` will be rendered as
``/images/logo.png?v=328rad75``.

.. versionadded:: 2.5
On-demand versioned URLs for assets were introduced in Symfony 2.5.

You can also generate a versioned URL on an asset-by-asset basis using the
fourth argument of the helper:

Expand Down
10 changes: 0 additions & 10 deletions cookbook/console/console_command.rst
Original file line number Diff line number Diff line change
Expand Up @@ -225,13 +225,3 @@ you can extend your test from
// ...
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like you removed too much.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, my script has problems with code examples at the end of a file :)


.. versionadded:: 2.5
:class:`Symfony\\Bundle\\FrameworkBundle\\Test\\KernelTestCase` was
extracted from :class:`Symfony\\Bundle\\FrameworkBundle\\Test\\WebTestCase`
in Symfony 2.5. ``WebTestCase`` inherits from ``KernelTestCase``. The
``WebTestCase`` creates an instance of
:class:`Symfony\\Bundle\\FrameworkBundle\\Client` via ``createClient()``,
while ``KernelTestCase`` creates an instance of
:class:`Symfony\\Component\\HttpKernel\\KernelInterface` via
``createKernel()``.
3 changes: 0 additions & 3 deletions cookbook/request/mime_type.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ object. Internally, Symfony contains a map of the most common formats (e.g.
easily be added. This document will show how you can add the ``jsonp`` format
and corresponding MIME type.

.. versionadded:: 2.5
The possibility to configure request formats was introduced in Symfony 2.5.

Configure your New Format
-------------------------

Expand Down
7 changes: 0 additions & 7 deletions cookbook/security/acl_advanced.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,6 @@ Security Identities
This is analog to the object identity, but represents a user, or a role in
your application. Each role, or user has its own security identity.

.. versionadded:: 2.5
For users, the security identity is based on the username. This means that,
if for any reason, a user's username was to change, you must ensure its
security identity is updated too. The
:method:`MutableAclProvider::updateUserSecurityIdentity() <Symfony\\Component\\Security\\Acl\\Dbal\\MutableAclProvider::updateUserSecurityIdentity>`
method is there to handle the update, it was introduced in Symfony 2.5.

Database Table Structure
------------------------

Expand Down
4 changes: 0 additions & 4 deletions cookbook/security/firewall_restriction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,6 @@ request.
Restricting by HTTP Methods
---------------------------

.. versionadded:: 2.5
Support for restricting security firewalls to specific HTTP methods was introduced in
Symfony 2.5.

The configuration option ``methods`` restricts the initialization of the firewall to
the provided HTTP methods.

Expand Down
3 changes: 0 additions & 3 deletions cookbook/security/named_encoders.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
How to Choose the Password Encoder Algorithm Dynamically
========================================================

.. versionadded:: 2.5
Named encoders were introduced in Symfony 2.5.

Usually, the same password encoder is used for all users by configuring it
to apply to all instances of a specific class:

Expand Down
5 changes: 0 additions & 5 deletions cookbook/validation/custom_constraint.rst
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,6 @@ message as its argument and returns an instance of
:class:`Symfony\\Component\\Validator\\Violation\\ConstraintViolationBuilderInterface`.
The ``addViolation`` method call finally adds the violation to the context.

.. versionadded:: 2.5
The ``buildViolation`` method was added in Symfony 2.5. For usage examples
with older Symfony versions, see the corresponding versions of this documentation
page.

Using the new Validator
-----------------------

Expand Down
4 changes: 0 additions & 4 deletions reference/configuration/security.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ Each part will be explained in the next section.
Support for restricting security firewalls to a specific host was introduced in
Symfony 2.4.

.. versionadded:: 2.5
Support for restricting security firewalls to specific http methods was introduced in
Symfony 2.5.

.. configuration-block::

.. code-block:: yaml
Expand Down
5 changes: 0 additions & 5 deletions reference/constraints/Callback.rst
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,6 @@ those errors should be attributed::
}
}

.. versionadded:: 2.5
The ``buildViolation`` method was added in Symfony 2.5. For usage examples
with older Symfony versions, see the corresponding versions of this documentation
page.

Static Callbacks
----------------

Expand Down
3 changes: 0 additions & 3 deletions reference/constraints/Email.rst
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,6 @@ Basic Usage
Options
-------

.. versionadded:: 2.5
The ``strict`` option was introduced in Symfony 2.5.

strict
~~~~~~

Expand Down
3 changes: 0 additions & 3 deletions reference/constraints/Uuid.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
Uuid
====

.. versionadded:: 2.5
The Uuid constraint was introduced in Symfony 2.5.

Validates that a value is a valid `Universally unique identifier (UUID)`_ per `RFC 4122`_.
By default, this will validate the format according to the RFC's guidelines, but this can
be relaxed to accept non-standard UUIDs that other systems (like PostgreSQL) accept.
Expand Down
3 changes: 0 additions & 3 deletions reference/forms/types/collection.rst
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,6 @@ For more information, see :ref:`cookbook-form-collections-remove`.
delete_empty
~~~~~~~~~~~~

.. versionadded:: 2.5
The ``delete_empty`` option was introduced in Symfony 2.5.

**type**: ``Boolean`` **default**: ``false``

If you want to explicitly remove entirely empty collection entries from your
Expand Down
3 changes: 0 additions & 3 deletions reference/forms/types/file.rst
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,6 @@ Field Options
multiple
~~~~~~~~

.. versionadded:: 2.5
The ``multiple`` option was introduced in Symfony 2.5.

**type**: ``Boolean`` **default**: ``false``

When set to true, the user will be able to upload multiple files at the same time.
Expand Down