Permalink
Browse files

minor #4769 [2.7] Removed 2.5 versionadded as its deprecated (WouterJ)

This PR was merged into the 2.7 branch.

Discussion
----------

[2.7] Removed 2.5 versionadded as its deprecated

Commits
-------

7d2f0f3 Removed 2.5 versionadded as its deprecated
  • Loading branch information...
weaverryan committed Jan 16, 2015
2 parents 1da9206 + 7d2f0f3 commit dc25c65d445185b5328febe0248e16a3d88d5e0a
@@ -810,9 +810,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.
@@ -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
@@ -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:
@@ -1046,9 +1043,6 @@ If you don't 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``:
@@ -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``.
@@ -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
@@ -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::
@@ -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::
@@ -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:
@@ -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
@@ -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
@@ -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`
@@ -227,9 +227,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
@@ -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.
@@ -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::
@@ -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
@@ -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
@@ -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
@@ -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.
@@ -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`,
@@ -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
@@ -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:
@@ -225,13 +225,3 @@ you can extend your test from
// ...
}
}
.. 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()``.
@@ -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
-------------------------
@@ -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
------------------------
@@ -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.
@@ -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:
@@ -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
-----------------------
@@ -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
@@ -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
----------------
@@ -90,9 +90,6 @@ Basic Usage
Options
-------
.. versionadded:: 2.5
The ``strict`` option was introduced in Symfony 2.5.
strict
~~~~~~
@@ -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.
@@ -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
@@ -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.

0 comments on commit dc25c65

Please sign in to comment.