diff --git a/book/security.rst b/book/security.rst index 6942b426965..b59849a1268 100644 --- a/book/security.rst +++ b/book/security.rst @@ -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. @@ -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 diff --git a/book/templating.rst b/book/templating.rst index 35d477c0ed3..03aa4f8dbe6 100644 --- a/book/templating.rst +++ b/book/templating.rst @@ -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: @@ -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``: diff --git a/book/translation.rst b/book/translation.rst index a847344b90d..9fc8e28d060 100644 --- a/book/translation.rst +++ b/book/translation.rst @@ -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``. diff --git a/book/validation.rst b/book/validation.rst index 08726dc89ed..c7d2e0942c4 100644 --- a/book/validation.rst +++ b/book/validation.rst @@ -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 diff --git a/components/class_loader/psr4_class_loader.rst b/components/class_loader/psr4_class_loader.rst index e388590310d..986354c2139 100644 --- a/components/class_loader/psr4_class_loader.rst +++ b/components/class_loader/psr4_class_loader.rst @@ -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:: diff --git a/components/console/changing_default_command.rst b/components/console/changing_default_command.rst index 757a0c9f88c..7f8f50bda48 100644 --- a/components/console/changing_default_command.rst +++ b/components/console/changing_default_command.rst @@ -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:: diff --git a/components/console/helpers/progressbar.rst b/components/console/helpers/progressbar.rst index 1b8edf309cc..915efa8f158 100644 --- a/components/console/helpers/progressbar.rst +++ b/components/console/helpers/progressbar.rst @@ -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 `. - When executing longer-running commands, it may be helpful to show progress information, which updates as your command runs: diff --git a/components/console/helpers/questionhelper.rst b/components/console/helpers/questionhelper.rst index 6a745c09609..8ad2d861654 100644 --- a/components/console/helpers/questionhelper.rst +++ b/components/console/helpers/questionhelper.rst @@ -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 diff --git a/components/console/helpers/table.rst b/components/console/helpers/table.rst index 0f3511fe040..f8e4591d99b 100644 --- a/components/console/helpers/table.rst +++ b/components/console/helpers/table.rst @@ -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 `. - When building a console application it may be useful to display tabular data: .. code-block:: text diff --git a/components/console/logger.rst b/components/console/logger.rst index 43951c63130..3f9d9036765 100644 --- a/components/console/logger.rst +++ b/components/console/logger.rst @@ -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` diff --git a/components/dependency_injection/advanced.rst b/components/dependency_injection/advanced.rst index babd7cfd0fc..425c419ec35 100644 --- a/components/dependency_injection/advanced.rst +++ b/components/dependency_injection/advanced.rst @@ -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 diff --git a/components/event_dispatcher/traceable_dispatcher.rst b/components/event_dispatcher/traceable_dispatcher.rst index 3c1bcc2118c..4bfb1fd2974 100644 --- a/components/event_dispatcher/traceable_dispatcher.rst +++ b/components/event_dispatcher/traceable_dispatcher.rst @@ -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. diff --git a/components/form/introduction.rst b/components/form/introduction.rst index 09c947429b5..e0b2e01d7be 100644 --- a/components/form/introduction.rst +++ b/components/form/introduction.rst @@ -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:: diff --git a/components/process.rst b/components/process.rst index ef77f6078da..19d04356beb 100644 --- a/components/process.rst +++ b/components/process.rst @@ -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 diff --git a/components/property_access/introduction.rst b/components/property_access/introduction.rst index d8d4c774610..1ab83d19d0e 100644 --- a/components/property_access/introduction.rst +++ b/components/property_access/introduction.rst @@ -314,13 +314,6 @@ see `Enable other Features`_. Checking Property Paths ----------------------- -.. versionadded:: 2.5 - The - :method:`PropertyAccessor::isReadable ` - and - :method:`PropertyAccessor::isWritable ` - methods were introduced in Symfony 2.5. - When you want to check whether :method:`PropertyAccessor::getValue` can safely be called without actually calling that method, you can use diff --git a/components/serializer.rst b/components/serializer.rst index ac40aa46a19..15fef1c867e 100644 --- a/components/serializer.rst +++ b/components/serializer.rst @@ -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. diff --git a/components/stopwatch.rst b/components/stopwatch.rst index 58c76b85cff..fccd56675a7 100644 --- a/components/stopwatch.rst +++ b/components/stopwatch.rst @@ -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`, diff --git a/components/templating/helpers/assetshelper.rst b/components/templating/helpers/assetshelper.rst index 73f8042aaab..e4f30ef915d 100644 --- a/components/templating/helpers/assetshelper.rst +++ b/components/templating/helpers/assetshelper.rst @@ -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: diff --git a/cookbook/console/console_command.rst b/cookbook/console/console_command.rst index b71b0792781..83f8c53ec99 100644 --- a/cookbook/console/console_command.rst +++ b/cookbook/console/console_command.rst @@ -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()``. diff --git a/cookbook/request/mime_type.rst b/cookbook/request/mime_type.rst index adee071daed..269156654c3 100644 --- a/cookbook/request/mime_type.rst +++ b/cookbook/request/mime_type.rst @@ -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 ------------------------- diff --git a/cookbook/security/acl_advanced.rst b/cookbook/security/acl_advanced.rst index 4d11081f4e5..d4f18265d82 100644 --- a/cookbook/security/acl_advanced.rst +++ b/cookbook/security/acl_advanced.rst @@ -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() ` - method is there to handle the update, it was introduced in Symfony 2.5. - Database Table Structure ------------------------ diff --git a/cookbook/security/firewall_restriction.rst b/cookbook/security/firewall_restriction.rst index 24d77c4df4c..227eac10420 100644 --- a/cookbook/security/firewall_restriction.rst +++ b/cookbook/security/firewall_restriction.rst @@ -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. diff --git a/cookbook/security/named_encoders.rst b/cookbook/security/named_encoders.rst index 3b22a2d9343..0cdd0b2eb7b 100644 --- a/cookbook/security/named_encoders.rst +++ b/cookbook/security/named_encoders.rst @@ -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: diff --git a/cookbook/validation/custom_constraint.rst b/cookbook/validation/custom_constraint.rst index d6f9f4a3f9a..9ef114bf358 100644 --- a/cookbook/validation/custom_constraint.rst +++ b/cookbook/validation/custom_constraint.rst @@ -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 ----------------------- diff --git a/reference/configuration/security.rst b/reference/configuration/security.rst index 3a2af3c3a05..5817b507e20 100644 --- a/reference/configuration/security.rst +++ b/reference/configuration/security.rst @@ -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 diff --git a/reference/constraints/Callback.rst b/reference/constraints/Callback.rst index e0a21e4b2e0..a4757ac1c76 100644 --- a/reference/constraints/Callback.rst +++ b/reference/constraints/Callback.rst @@ -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 ---------------- diff --git a/reference/constraints/Email.rst b/reference/constraints/Email.rst index 9df3332a749..2a5b9ea2e6b 100644 --- a/reference/constraints/Email.rst +++ b/reference/constraints/Email.rst @@ -90,9 +90,6 @@ Basic Usage Options ------- -.. versionadded:: 2.5 - The ``strict`` option was introduced in Symfony 2.5. - strict ~~~~~~ diff --git a/reference/constraints/Uuid.rst b/reference/constraints/Uuid.rst index 4db4fc8ceab..ece78165716 100644 --- a/reference/constraints/Uuid.rst +++ b/reference/constraints/Uuid.rst @@ -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. diff --git a/reference/forms/types/collection.rst b/reference/forms/types/collection.rst index 2d21cf57a3a..367abb2eda1 100644 --- a/reference/forms/types/collection.rst +++ b/reference/forms/types/collection.rst @@ -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 diff --git a/reference/forms/types/file.rst b/reference/forms/types/file.rst index 2449a4fdc92..d8f4228ee37 100644 --- a/reference/forms/types/file.rst +++ b/reference/forms/types/file.rst @@ -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.