From 4346f75f05a5ee010d0148ea251e99c7f6a02c38 Mon Sep 17 00:00:00 2001 From: WouterJ Date: Wed, 24 Apr 2013 18:42:48 +0200 Subject: [PATCH] Removed versionadded:: 2.1 directives --- book/forms.rst | 25 +++---------------- book/page_creation.rst | 3 --- book/security.rst | 11 -------- book/service_container.rst | 4 --- book/templating.rst | 6 ----- book/translation.rst | 8 ------ components/class_loader.rst | 3 --- .../container_aware_dispatcher.rst | 3 --- components/event_dispatcher/generic_event.rst | 3 --- components/event_dispatcher/introduction.rst | 9 ------- components/filesystem.rst | 4 --- components/finder.rst | 9 ------- components/http_foundation/introduction.rst | 10 -------- components/http_foundation/sessions.rst | 4 --- components/http_kernel/introduction.rst | 3 --- components/process.rst | 6 ----- cookbook/bundles/extension.rst | 3 --- .../configuration/pdo_session_storage.rst | 7 ------ cookbook/console/sending_emails.rst | 3 --- cookbook/doctrine/resolve_target_entity.rst | 4 --- cookbook/form/data_transformers.rst | 5 ---- cookbook/form/form_collections.rst | 3 --- cookbook/logging/channels_handlers.rst | 4 --- .../routing/service_container_parameters.rst | 3 --- .../custom_authentication_provider.rst | 3 --- cookbook/security/custom_provider.rst | 4 --- cookbook/security/entity_provider.rst | 6 ----- cookbook/security/form_login.rst | 4 --- reference/configuration/framework.rst | 18 ------------- reference/configuration/kernel.rst | 4 --- reference/constraints/Collection.rst | 3 --- reference/constraints/Count.rst | 3 --- reference/constraints/Email.rst | 3 --- reference/constraints/Image.rst | 3 --- reference/constraints/Length.rst | 3 --- reference/constraints/Range.rst | 3 --- reference/constraints/UniqueEntity.rst | 4 --- reference/constraints/UserPassword.rst | 3 --- reference/dic_tags.rst | 3 --- reference/forms/twig_reference.rst | 4 --- reference/forms/types/collection.rst | 3 --- .../forms/types/options/disabled.rst.inc | 3 --- .../forms/types/options/property_path.rst.inc | 3 --- .../forms/types/options/read_only.rst.inc | 7 +----- reference/forms/types/repeated.rst | 6 ----- reference/twig_reference.rst | 9 ------- 46 files changed, 5 insertions(+), 240 deletions(-) diff --git a/book/forms.rst b/book/forms.rst index 9f024af892c..5c302d776ab 100644 --- a/book/forms.rst +++ b/book/forms.rst @@ -183,9 +183,6 @@ it into a format that's suitable for being rendered in an HTML form. (e.g. ``isPublished()`` or ``hasReminder()``) instead of a getter (e.g. ``getPublished()`` or ``getReminder()``). - .. versionadded:: 2.1 - Support for "hasser" methods was added in Symfony 2.1. - .. index:: single: Forms; Handling form submission @@ -408,10 +405,6 @@ be used to validate the underlying object. Groups based on Submitted Data ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.. versionadded:: 2.1 - The ability to specify a callback or Closure in ``validation_groups`` - is new to version 2.1 - If you need some advanced logic to determine the validation groups (e.g. based on submitted data), you can set the ``validation_groups`` option 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 fragment. Knowing exactly which block or file to override is the subject of the next section. -.. versionadded:: 2.1 - An alternate Twig syntax for ``form_theme`` has been introduced in 2.1. It accepts - any valid Twig expression (the most noticeable difference is using an array when - using multiple themes). - - .. code-block:: html+jinja +.. code-block:: html+jinja - {# src/Acme/TaskBundle/Resources/views/Default/new.html.twig #} + {# src/Acme/TaskBundle/Resources/views/Default/new.html.twig #} - {% form_theme form with 'AcmeTaskBundle:Form:fields.html.twig' %} + {% form_theme form with 'AcmeTaskBundle:Form:fields.html.twig' %} - {% form_theme form with ['AcmeTaskBundle:Form:fields.html.twig', 'AcmeTaskBundle:Form:fields2.html.twig'] %} + {% form_theme form with ['AcmeTaskBundle:Form:fields.html.twig', 'AcmeTaskBundle:Form:fields2.html.twig'] %} For a more extensive discussion, see :doc:`/cookbook/form/form_customization`. @@ -1604,11 +1592,6 @@ The answer is to setup the constraints yourself, and attach them to the individu fields. The overall approach is covered a bit more in the :ref:`validation chapter`, but here's a short example: -.. versionadded:: 2.1 - The ``constraints`` option, which accepts a single constraint or an array - of constraints (before 2.1, the option was called ``validation_constraint``, - and only accepted a single constraint) is new to Symfony 2.1. - .. code-block:: php use Symfony\Component\Validator\Constraints\Length; diff --git a/book/page_creation.rst b/book/page_creation.rst index f90ae6d4f48..4b4171da586 100644 --- a/book/page_creation.rst +++ b/book/page_creation.rst @@ -813,9 +813,6 @@ options of each feature. Default Configuration Dump ~~~~~~~~~~~~~~~~~~~~~~~~~~ -.. versionadded:: 2.1 - The ``config:dump-reference`` command was added in Symfony 2.1 - You can dump the default configuration for a bundle in yaml to the console using the ``config:dump-reference`` command. Here is an example of dumping the default FrameworkBundle configuration: diff --git a/book/security.rst b/book/security.rst index 12c7dfd998e..fa90facff92 100644 --- a/book/security.rst +++ b/book/security.rst @@ -410,11 +410,6 @@ submission (i.e. ``/login_check``): URL as the firewall will automatically catch and process any form submitted to this URL. -.. versionadded:: 2.1 - As of Symfony 2.1, you *must* have routes configured for your ``login_path``, - ``check_path`` ``logout`` keys. These keys can be route names (as shown - in this example) or URLs that have routes configured for them. - Notice that the name of the ``login`` route matches the``login_path`` config value, as that's where the security system will redirect users that need to login. @@ -1161,12 +1156,6 @@ custom user class is that it implements the :class:`Symfony\\Component\\Security interface. This means that your concept of a "user" can be anything, as long as it implements this interface. -.. versionadded:: 2.1 - In Symfony 2.1, the ``equals`` method was removed from ``UserInterface``. - If you need to override the default implementation of comparison logic, - implement the new :class:`Symfony\\Component\\Security\\Core\\User\\EquatableInterface` - interface. - .. note:: The user object will be serialized and saved in the session during requests, diff --git a/book/service_container.rst b/book/service_container.rst index 1de05025ee0..5c99cc632a5 100644 --- a/book/service_container.rst +++ b/book/service_container.rst @@ -227,10 +227,6 @@ The end result is exactly the same as before - the difference is only in to look for parameters with those names. When the container is built, it looks up the value of each parameter and uses it in the service definition. -.. versionadded:: 2.1 - Escaping the ``@`` character in YAML parameter values is new in Symfony 2.1.9 - and Symfony 2.2.1. - .. note:: If you want to use a string that starts with an ``@`` sign as a parameter diff --git a/book/templating.rst b/book/templating.rst index 656f790f262..eefd369b2f2 100644 --- a/book/templating.rst +++ b/book/templating.rst @@ -665,9 +665,6 @@ Controllers are fast to execute and promote good code organization and reuse. Asynchronous Content with hinclude.js ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.. versionadded:: 2.1 - hinclude.js support was added 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), 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 Syntax Checking --------------- -.. versionadded:: 2.1 - The ``twig:lint`` command was added in Symfony 2.1 - You can check for syntax errors in Twig templates using the ``twig:lint`` console command: diff --git a/book/translation.rst b/book/translation.rst index a44347d826c..995b3a23b4a 100644 --- a/book/translation.rst +++ b/book/translation.rst @@ -554,11 +554,6 @@ by defining a ``default_locale`` for the framework: 'default_locale' => 'en', )); -.. versionadded:: 2.1 - The ``default_locale`` parameter was defined under the session key - originally, however, as of 2.1 this has been moved. This is because the - locale is now set on the request instead of the session. - .. _book-translation-locale-url: The Locale and the URL @@ -825,9 +820,6 @@ texts* and complex expressions: Note that this only influences the current template, not any "included" templates (in order to avoid side effects). -.. versionadded:: 2.1 - The ``trans_default_domain`` tag is new in Symfony2.1 - PHP Templates ~~~~~~~~~~~~~ diff --git a/components/class_loader.rst b/components/class_loader.rst index 1e7064b1894..f4bb2a2c095 100644 --- a/components/class_loader.rst +++ b/components/class_loader.rst @@ -33,9 +33,6 @@ You can install the component in many different ways: Usage ----- -.. versionadded:: 2.1 - The ``useIncludePath`` method was added in Symfony 2.1. - Registering the :class:`Symfony\\Component\\ClassLoader\\UniversalClassLoader` autoloader is straightforward:: diff --git a/components/event_dispatcher/container_aware_dispatcher.rst b/components/event_dispatcher/container_aware_dispatcher.rst index a1bfe3e2904..85fe61ae4a8 100644 --- a/components/event_dispatcher/container_aware_dispatcher.rst +++ b/components/event_dispatcher/container_aware_dispatcher.rst @@ -4,9 +4,6 @@ The Container Aware Event Dispatcher ==================================== -.. versionadded:: 2.1 - This feature was moved into the EventDispatcher component in Symfony 2.1. - Introduction ------------ diff --git a/components/event_dispatcher/generic_event.rst b/components/event_dispatcher/generic_event.rst index e7a3dd5be36..484d1c4914f 100644 --- a/components/event_dispatcher/generic_event.rst +++ b/components/event_dispatcher/generic_event.rst @@ -4,9 +4,6 @@ The Generic Event Object ======================== -.. versionadded:: 2.1 - The ``GenericEvent`` event class was added in Symfony 2.1 - The base :class:`Symfony\\Component\\EventDispatcher\\Event` class provided by the ``Event Dispatcher`` component is deliberately sparse to allow the creation of API specific event objects by inheritance using OOP. This allow for elegant and diff --git a/components/event_dispatcher/introduction.rst b/components/event_dispatcher/introduction.rst index 5cd4fe3af21..32553118aa8 100644 --- a/components/event_dispatcher/introduction.rst +++ b/components/event_dispatcher/introduction.rst @@ -440,9 +440,6 @@ which returns a boolean value:: EventDispatcher aware Events and Listeners ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.. versionadded:: 2.1 - The ``Event`` object contains a reference to the invoking dispatcher since Symfony 2.1 - The ``EventDispatcher`` always injects a reference to itself in the passed event object. This means that all listeners have direct access to the ``EventDispatcher`` object that notified the listener via the passed ``Event`` @@ -535,9 +532,6 @@ can be the way to go, especially for optional dependencies. Dispatcher Shortcuts ~~~~~~~~~~~~~~~~~~~~ -.. versionadded:: 2.1 - ``EventDispatcher::dispatch()`` method returns the event since Symfony 2.1. - The :method:`EventDispatcher::dispatch` method always returns an :class:`Symfony\\Component\\EventDispatcher\\Event` object. This allows for various shortcuts. For example if one does not need @@ -575,9 +569,6 @@ and so on... Event Name Introspection ~~~~~~~~~~~~~~~~~~~~~~~~ -.. versionadded:: 2.1 - Added event name to the ``Event`` object since Symfony 2.1 - Since the ``EventDispatcher`` already knows the name of the event when dispatching it, the event name is also injected into the :class:`Symfony\\Component\\EventDispatcher\\Event` objects, making it available diff --git a/components/filesystem.rst b/components/filesystem.rst index 6e5ca5140fa..91d9e5228c5 100644 --- a/components/filesystem.rst +++ b/components/filesystem.rst @@ -6,10 +6,6 @@ The Filesystem Component The Filesystem components provides basic utilities for the filesystem. -.. versionadded:: 2.1 - The Filesystem Component is new to Symfony 2.1. Previously, the ``Filesystem`` - class was located in the ``HttpKernel`` component. - Installation ------------ diff --git a/components/finder.rst b/components/finder.rst index ab1cda43e82..d8346bf80aa 100644 --- a/components/finder.rst +++ b/components/finder.rst @@ -182,9 +182,6 @@ The ``notName()`` method excludes files matching a pattern:: File Contents ~~~~~~~~~~~~~ -.. versionadded:: 2.1 - The ``contains()`` and ``notContains()`` methods were added in version 2.1 - Restrict files by contents with the :method:`Symfony\\Component\\Finder\\Finder::contains` method:: @@ -243,9 +240,6 @@ Restrict by a size range by chaining calls:: The comparison operator can be any of the following: ``>``, ``>=``, ``<``, ``<=``, ``==``, ``!=``. -.. versionadded:: 2.1 - The operator ``!=`` was added in version 2.1. - The target value may use magnitudes of kilobytes (``k``, ``ki``), megabytes (``m``, ``mi``), or gigabytes (``g``, ``gi``). Those suffixed with an ``i`` use the appropriate ``2**n`` version in accordance with the `IEC standard`_. @@ -296,9 +290,6 @@ instance. The file is excluded from the result set if the Closure returns Reading contents of returned files ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.. versionadded:: 2.1 - Method ``getContents()`` have been introduced in version 2.1. - The contents of returned files can be read with :method:`Symfony\\Component\\Finder\\SplFileInfo::getContents`:: diff --git a/components/http_foundation/introduction.rst b/components/http_foundation/introduction.rst index c35601dced7..ddd50388695 100644 --- a/components/http_foundation/introduction.rst +++ b/components/http_foundation/introduction.rst @@ -387,9 +387,6 @@ To redirect the client to another URL, you can use the Streaming a Response ~~~~~~~~~~~~~~~~~~~~ -.. versionadded:: 2.1 - Support for streamed responses was added in Symfony 2.1. - The :class:`Symfony\\Component\\HttpFoundation\\StreamedResponse` class allows you to stream the Response back to the client. The response content is represented by a PHP callable instead of a string:: @@ -421,9 +418,6 @@ represented by a PHP callable instead of a string:: Serving Files ~~~~~~~~~~~~~ -.. versionadded:: 2.1 - The ``makeDisposition`` method was added in Symfony 2.1. - When sending a file, you must add a ``Content-Disposition`` header to your response. While creating this header for basic file downloads is easy, using non-ASCII filenames is more involving. The @@ -480,10 +474,6 @@ right content and headers. A JSON response might look like this:: ))); $response->headers->set('Content-Type', 'application/json'); -.. versionadded:: 2.1 - The :class:`Symfony\\Component\\HttpFoundation\\JsonResponse` - class was added in Symfony 2.1. - There is also a helpful :class:`Symfony\\Component\\HttpFoundation\\JsonResponse` class, which can make this even easier:: diff --git a/components/http_foundation/sessions.rst b/components/http_foundation/sessions.rst index dbd855f4bf0..bce15b95589 100644 --- a/components/http_foundation/sessions.rst +++ b/components/http_foundation/sessions.rst @@ -9,10 +9,6 @@ The Symfony2 HttpFoundation Component has a very powerful and flexible session subsystem which is designed to provide session management through a simple object-oriented interface using a variety of session storage drivers. -.. versionadded:: 2.1 - The :class:`Symfony\\Component\\HttpFoundation\\Session\\SessionInterface` interface, - as well as a number of other changes, are new as of Symfony 2.1. - Sessions are used via the simple :class:`Symfony\\Component\\HttpFoundation\\Session\\Session` implementation of :class:`Symfony\\Component\\HttpFoundation\\Session\\SessionInterface` interface. diff --git a/components/http_kernel/introduction.rst b/components/http_kernel/introduction.rst index 5822096e075..32840b653fe 100644 --- a/components/http_kernel/introduction.rst +++ b/components/http_kernel/introduction.rst @@ -447,9 +447,6 @@ method, which sends the headers and prints the ``Response`` content. 8) The ``kernel.terminate`` event ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.. versionadded:: 2.1 - The ``kernel.terminate`` event is new to Symfony 2.1. - **Typical Purposes**: To perform some "heavy" action after the response has been streamed to the user diff --git a/components/process.rst b/components/process.rst index b109ea6d0d7..94a7005563d 100644 --- a/components/process.rst +++ b/components/process.rst @@ -61,9 +61,6 @@ anonymous function to the } }); -.. versionadded:: 2.1 - The non-blocking feature was added in 2.1. - You can also start the subprocess and then let it run asynchronously, retrieving output and the status in your main process whenever you need it. Use the :method:`Symfony\\Component\\Process\\Process::start` method to start an asynchronous @@ -107,9 +104,6 @@ instead:: ); $process->run(); -.. versionadded:: 2.1 - The ``ProcessBuilder`` class was added in Symfony 2.1. - To make your code work better on all platforms, you might want to use the :class:`Symfony\\Component\\Process\\ProcessBuilder` class instead:: diff --git a/cookbook/bundles/extension.rst b/cookbook/bundles/extension.rst index 6ede7320fab..dad7f614935 100644 --- a/cookbook/bundles/extension.rst +++ b/cookbook/bundles/extension.rst @@ -510,9 +510,6 @@ For more details, see :doc:`/cookbook/bundles/prepend_extension`. Default Configuration Dump ~~~~~~~~~~~~~~~~~~~~~~~~~~ -.. versionadded:: 2.1 - The ``config:dump-reference`` command was added in Symfony 2.1 - The ``config:dump-reference`` command allows a bundle's default configuration to be output to the console in yaml. diff --git a/cookbook/configuration/pdo_session_storage.rst b/cookbook/configuration/pdo_session_storage.rst index 79bb496761f..0b02f690f08 100644 --- a/cookbook/configuration/pdo_session_storage.rst +++ b/cookbook/configuration/pdo_session_storage.rst @@ -14,13 +14,6 @@ Symfony2 has a built-in solution for database session storage called To use it, you just need to change some parameters in ``config.yml`` (or the configuration format of your choice): -.. versionadded:: 2.1 - In Symfony2.1 the class and namespace are slightly modified. You can now - find the session storage classes in the `Session\\Storage` namespace: - ``Symfony\Component\HttpFoundation\Session\Storage``. Also - note that in Symfony2.1 you should configure ``handler_id`` not ``storage_id`` like in Symfony2.0. - Below, you'll notice that ``%session.storage.options%`` is not used anymore. - .. configuration-block:: .. code-block:: yaml diff --git a/cookbook/console/sending_emails.rst b/cookbook/console/sending_emails.rst index c184e915326..fffb4028439 100644 --- a/cookbook/console/sending_emails.rst +++ b/cookbook/console/sending_emails.rst @@ -20,9 +20,6 @@ and per Command. Configuring the Request Context globally ---------------------------------------- -.. versionadded:: 2.1 - The ``host`` and ``scheme`` parameters are available since Symfony 2.1 - .. versionadded: 2.2 The ``base_url`` parameter is available since Symfony 2.2 diff --git a/cookbook/doctrine/resolve_target_entity.rst b/cookbook/doctrine/resolve_target_entity.rst index 9fbe7b7176c..6d7439582ec 100644 --- a/cookbook/doctrine/resolve_target_entity.rst +++ b/cookbook/doctrine/resolve_target_entity.rst @@ -5,10 +5,6 @@ How to Define Relationships with Abstract Classes and Interfaces ================================================================ -.. versionadded:: 2.1 - The ResolveTargetEntityListener is new to Doctrine 2.2, which was first - packaged with Symfony 2.1. - One of the goals of bundles is to create discreet bundles of functionality that do not have many (if any) dependencies, allowing you to use that functionality in other applications without including unnecessary items. diff --git a/cookbook/form/data_transformers.rst b/cookbook/form/data_transformers.rst index 5c7ed6c3438..30bf3ce37e7 100644 --- a/cookbook/form/data_transformers.rst +++ b/cookbook/form/data_transformers.rst @@ -177,11 +177,6 @@ its error message can be controlled with the ``invalid_message`` field option. Model and View Transformers ~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.. versionadded:: 2.1 - The names and method of the transformers were changed in Symfony 2.1. - ``prependNormTransformer`` became ``addModelTransformer`` and ``appendClientTransformer`` - became ``addViewTransformer``. - In the above example, the transformer was used as a "model" transformer. In fact, there are two different type of transformers and three different types of underlying data. diff --git a/cookbook/form/form_collections.rst b/cookbook/form/form_collections.rst index e84136970ec..b43461ea491 100755 --- a/cookbook/form/form_collections.rst +++ b/cookbook/form/form_collections.rst @@ -390,9 +390,6 @@ HTML contains the tag ``text`` input element with a name of ``task[tags][__name_ and id of ``task_tags___name___name``. The ``__name__`` is a little "placeholder", which you'll replace with a unique, incrementing number (e.g. ``task[tags][3][name]``). -.. versionadded:: 2.1 - The placeholder was changed from ``$$name$$`` to ``__name__`` in Symfony 2.1 - The actual code needed to make this all work can vary quite a bit, but here's one example: diff --git a/cookbook/logging/channels_handlers.rst b/cookbook/logging/channels_handlers.rst index 08161091004..18e99350d5d 100644 --- a/cookbook/logging/channels_handlers.rst +++ b/cookbook/logging/channels_handlers.rst @@ -4,10 +4,6 @@ How to log Messages to different Files ====================================== -.. versionadded:: 2.1 - The ability to specify channels for a specific handler was added to - the MonologBundle for Symfony 2.1. - The Symfony Standard Edition contains a bunch of channels for logging: ``doctrine``, ``event``, ``security`` and ``request``. Each channel corresponds to a logger service (``monolog.logger.XXX``) in the container and is injected to the diff --git a/cookbook/routing/service_container_parameters.rst b/cookbook/routing/service_container_parameters.rst index 8b6d100e264..15128f4c0b5 100644 --- a/cookbook/routing/service_container_parameters.rst +++ b/cookbook/routing/service_container_parameters.rst @@ -4,9 +4,6 @@ How to use Service Container Parameters in your Routes ====================================================== -.. versionadded:: 2.1 - The ability to use parameters in your routes was added in Symfony 2.1. - Sometimes you may find it useful to make some parts of your routes globally configurable. For instance, if you build an internationalized site, you'll probably start with one or two locales. Surely you'll diff --git a/cookbook/security/custom_authentication_provider.rst b/cookbook/security/custom_authentication_provider.rst index c528b69ae32..133eae002b4 100644 --- a/cookbook/security/custom_authentication_provider.rst +++ b/cookbook/security/custom_authentication_provider.rst @@ -417,9 +417,6 @@ to service ids that do not exist yet: ``wsse.security.authentication.provider`` Now that your services are defined, tell your security context about your factory in your bundle class: -.. versionadded:: 2.1 - Before 2.1, the factory below was added via ``security.yml`` instead. - .. code-block:: php // src/Acme/DemoBundle/AcmeDemoBundle.php diff --git a/cookbook/security/custom_provider.rst b/cookbook/security/custom_provider.rst index 6d1dbfc51b2..bf7a1faeefe 100644 --- a/cookbook/security/custom_provider.rst +++ b/cookbook/security/custom_provider.rst @@ -102,10 +102,6 @@ Let's see this in action:: } } -.. versionadded:: 2.1 - The ``EquatableInterface`` was added in Symfony 2.1. Use the ``equals()`` - method of the ``UserInterface`` in Symfony 2.0. - If you have more information about your users - like a "first name" - then you can add a ``firstName`` field to hold that data. diff --git a/cookbook/security/entity_provider.rst b/cookbook/security/entity_provider.rst index 54708d9b544..c859da650e8 100644 --- a/cookbook/security/entity_provider.rst +++ b/cookbook/security/entity_provider.rst @@ -167,12 +167,6 @@ interface forces the class to implement the five following methods: For more details on each of these, see :class:`Symfony\\Component\\Security\\Core\\User\\UserInterface`. -.. versionadded:: 2.1 - In Symfony 2.1, the ``equals`` method was removed from ``UserInterface``. - If you need to override the default implementation of comparison logic, - implement the new :class:`Symfony\\Component\\Security\\Core\\User\\EquatableInterface` - interface and implement the ``isEqualTo`` method. - .. code-block:: php // src/Acme/UserBundle/Entity/User.php diff --git a/cookbook/security/form_login.rst b/cookbook/security/form_login.rst index 37b9f38fce1..b4e3ba01c28 100644 --- a/cookbook/security/form_login.rst +++ b/cookbook/security/form_login.rst @@ -180,10 +180,6 @@ this by setting ``use_referer`` to true (it defaults to false): ), )); -.. versionadded:: 2.1 - As of 2.1, if the referer is equal to the ``login_path`` option, the - user will be redirected to the ``default_target_path``. - Control the Redirect URL from inside the Form ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/reference/configuration/framework.rst b/reference/configuration/framework.rst index 0adc4abf598..0ba491d1e4f 100644 --- a/reference/configuration/framework.rst +++ b/reference/configuration/framework.rst @@ -192,9 +192,6 @@ through XSS attacks. gc_probability .............. -.. versionadded:: 2.1 - The ``gc_probability`` option is new in version 2.1 - **type**: ``integer`` **default**: ``1`` This defines the probability that the garbage collector (GC) process is started @@ -205,9 +202,6 @@ that the GC process will start on each request. gc_divisor .......... -.. versionadded:: 2.1 - The ``gc_divisor`` option is new in version 2.1 - **type**: ``integer`` **default**: ``100`` See `gc_probability`_. @@ -215,9 +209,6 @@ See `gc_probability`_. gc_maxlifetime .............. -.. versionadded:: 2.1 - The ``gc_maxlifetime`` option is new in version 2.1 - **type**: ``integer`` **default**: ``14400`` This determines the number of seconds after which data will be seen as "garbage" @@ -293,15 +284,6 @@ is `protocol-relative`_ (i.e. starts with `//`) it will be added to both collections. URLs starting with ``http://`` will only be added to the ``http`` collection. -.. versionadded:: 2.1 - Unlike most configuration blocks, successive values for ``assets_base_urls`` - will overwrite each other instead of being merged. This behavior was chosen - because developers will typically define base URL's for each environment. - Given that most projects tend to inherit configurations - (e.g. ``config_test.yml`` imports ``config_dev.yml``) and/or share a common - base configuration (i.e. ``config.yml``), merging could yield a set of base - URL's for multiple environments. - .. _ref-framework-assets-version: assets_version diff --git a/reference/configuration/kernel.rst b/reference/configuration/kernel.rst index 24566753ebb..2a8544aff22 100644 --- a/reference/configuration/kernel.rst +++ b/reference/configuration/kernel.rst @@ -17,10 +17,6 @@ Configuration * `Cache Directory`_ * `Log Directory`_ -.. versionadded:: 2.1 - The :method:`Symfony\\Component\\HttpKernel\\Kernel::getCharset` method is new - in Symfony 2.1 - Charset ~~~~~~~ diff --git a/reference/constraints/Collection.rst b/reference/constraints/Collection.rst index 9fd0c1160c0..02e3a6b518f 100644 --- a/reference/constraints/Collection.rst +++ b/reference/constraints/Collection.rst @@ -163,9 +163,6 @@ the above example, the ``allowMissingFields`` option was set to true, meaning that if either of the ``personal_email`` or ``short_bio`` elements were missing from the ``$personalData`` property, no validation error would occur. -.. versionadded:: 2.1 - The ``Required`` and ``Optional`` constraints are new to Symfony 2.1. - Required and Optional Field Constraints ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/reference/constraints/Count.rst b/reference/constraints/Count.rst index 9c808e9576d..da8a93405da 100644 --- a/reference/constraints/Count.rst +++ b/reference/constraints/Count.rst @@ -4,9 +4,6 @@ Count Validates that a given collection's (i.e. an array or an object that implements Countable) element count is *between* some minimum and maximum value. -.. versionadded:: 2.1 - The Count constraint was added in Symfony 2.1. - +----------------+---------------------------------------------------------------------+ | Applies to | :ref:`property or method` | +----------------+---------------------------------------------------------------------+ diff --git a/reference/constraints/Email.rst b/reference/constraints/Email.rst index f0ea3098655..8df886b3fa8 100644 --- a/reference/constraints/Email.rst +++ b/reference/constraints/Email.rst @@ -107,9 +107,6 @@ check the validity of the MX record of the host of the given email. checkHost ~~~~~~~~~ -.. versionadded:: 2.1 - The ``checkHost`` option was added in Symfony 2.1 - **type**: ``Boolean`` **default**: ``false`` If true, then the :phpfunction:`checkdnsrr` PHP function will be used to diff --git a/reference/constraints/Image.rst b/reference/constraints/Image.rst index ca90c6476c7..180397330a3 100644 --- a/reference/constraints/Image.rst +++ b/reference/constraints/Image.rst @@ -156,9 +156,6 @@ mimeTypesMessage **type**: ``string`` **default**: ``This file is not a valid image`` -.. versionadded:: 2.1 - All of the min/max width/height options are new to Symfony 2.1. - minWidth ~~~~~~~~ diff --git a/reference/constraints/Length.rst b/reference/constraints/Length.rst index a78cf42c62e..53f9d09342b 100644 --- a/reference/constraints/Length.rst +++ b/reference/constraints/Length.rst @@ -3,9 +3,6 @@ Length Validates that a given string length is *between* some minimum and maximum value. -.. versionadded:: 2.1 - The Length constraint was added in Symfony 2.1. - +----------------+----------------------------------------------------------------------+ | Applies to | :ref:`property or method` | +----------------+----------------------------------------------------------------------+ diff --git a/reference/constraints/Range.rst b/reference/constraints/Range.rst index 41c820b61e3..88ff2b20908 100644 --- a/reference/constraints/Range.rst +++ b/reference/constraints/Range.rst @@ -3,9 +3,6 @@ Range Validates that a given number is *between* some minimum and maximum number. -.. versionadded:: 2.1 - The Range constraint was added in Symfony 2.1. - +----------------+---------------------------------------------------------------------+ | Applies to | :ref:`property or method` | +----------------+---------------------------------------------------------------------+ diff --git a/reference/constraints/UniqueEntity.rst b/reference/constraints/UniqueEntity.rst index 5ec43a1c225..184e75698bc 100644 --- a/reference/constraints/UniqueEntity.rst +++ b/reference/constraints/UniqueEntity.rst @@ -142,10 +142,6 @@ repositoryMethod **type**: ``string`` **default**: ``findBy`` -.. versionadded:: 2.1 - The ``repositoryMethod`` option was added in Symfony 2.1. Before, it - always used the ``findBy`` method. - The name of the repository method to use for making the query to determine the uniqueness. If it's left blank, the ``findBy`` method will be used. This method should return a countable result. diff --git a/reference/constraints/UserPassword.rst b/reference/constraints/UserPassword.rst index dc0dfcab277..2e59f4a9e92 100644 --- a/reference/constraints/UserPassword.rst +++ b/reference/constraints/UserPassword.rst @@ -1,9 +1,6 @@ UserPassword ============ -.. versionadded:: 2.1 - This constraint is new in version 2.1. - .. note:: Since Symfony 2.2, the `UserPassword*` classes in the diff --git a/reference/dic_tags.rst b/reference/dic_tags.rst index 8da679a0d5a..8f2f8ce50e1 100644 --- a/reference/dic_tags.rst +++ b/reference/dic_tags.rst @@ -323,9 +323,6 @@ kernel.event_subscriber **Purpose**: To subscribe to a set of different events/hooks in Symfony -.. versionadded:: 2.1 - The ability to add kernel event subscribers is new to 2.1. - To enable a custom subscriber, add it as a regular service in one of your configuration, and tag it with ``kernel.event_subscriber``: diff --git a/reference/forms/twig_reference.rst b/reference/forms/twig_reference.rst index f81e7912082..74ddcca51a8 100644 --- a/reference/forms/twig_reference.rst +++ b/reference/forms/twig_reference.rst @@ -295,10 +295,6 @@ object: get('name')->vars['label'] ?> -.. versionadded:: 2.1 - The ``valid``, ``label_attr``, ``compound``, and ``disabled`` variables - are new in Symfony 2.1. - +-----------------+-----------------------------------------------------------------------------------------+ | Variable | Usage | +=================+=========================================================================================+ diff --git a/reference/forms/types/collection.rst b/reference/forms/types/collection.rst index b394e8bbb5a..4d8cd3aefb3 100644 --- a/reference/forms/types/collection.rst +++ b/reference/forms/types/collection.rst @@ -325,9 +325,6 @@ as :ref:`cookbook-form-collections-new-prototype`. prototype_name ~~~~~~~~~~~~~~ -.. versionadded:: 2.1 - The ``prototype_name`` option was added in Symfony 2.1 - **type**: ``String`` **default**: ``__name__`` If you have several collections in your form, or worse, nested collections diff --git a/reference/forms/types/options/disabled.rst.inc b/reference/forms/types/options/disabled.rst.inc index df3b93a6357..3e634a36e83 100644 --- a/reference/forms/types/options/disabled.rst.inc +++ b/reference/forms/types/options/disabled.rst.inc @@ -1,9 +1,6 @@ disabled ~~~~~~~~ -.. versionadded:: 2.1 - The ``disabled`` option is new in version 2.1 - **type**: ``boolean`` **default**: ``false`` If you don't want a user to modify the value of a field, you can set diff --git a/reference/forms/types/options/property_path.rst.inc b/reference/forms/types/options/property_path.rst.inc index 7bdbe3156d8..921245ac989 100644 --- a/reference/forms/types/options/property_path.rst.inc +++ b/reference/forms/types/options/property_path.rst.inc @@ -14,6 +14,3 @@ If you wish the field to be ignored when reading or writing to the object you can set the ``property_path`` option to ``false``, but using ``property_path`` for this purpose is deprecated, you should do it the way described below: - -.. versionadded:: 2.1 - Since 2.1, the ``mapped`` option has been added for this use-case. diff --git a/reference/forms/types/options/read_only.rst.inc b/reference/forms/types/options/read_only.rst.inc index 73f35688e00..d1c2101591c 100644 --- a/reference/forms/types/options/read_only.rst.inc +++ b/reference/forms/types/options/read_only.rst.inc @@ -1,12 +1,7 @@ read_only ~~~~~~~~~ -.. versionadded:: 2.1 - The ``read_only`` option was changed in 2.1 to render as a ``readonly`` - HTML attribute. Previously, it rendered as a ``disabled`` attribute. - Use the `disabled`_ option if you need the old behavior. - **type**: ``Boolean`` **default**: ``false`` If this option is true, the field will be rendered with the ``readonly`` -attribute so that the field is not editable. \ No newline at end of file +attribute so that the field is not editable. diff --git a/reference/forms/types/repeated.rst b/reference/forms/types/repeated.rst index 3fae87bd5eb..953b0ea6128 100644 --- a/reference/forms/types/repeated.rst +++ b/reference/forms/types/repeated.rst @@ -129,9 +129,6 @@ first_options **type**: ``array`` **default**: ``array()`` -.. versionadded:: 2.1 - The ``first_options`` option is new in Symfony 2.1. - Additional options (will be merged into `options` above) that should be passed *only* to the first field. This is especially useful for customizing the label:: @@ -146,9 +143,6 @@ second_options **type**: ``array`` **default**: ``array()`` -.. versionadded:: 2.1 - The ``second_options`` option is new in Symfony 2.1. - Additional options (will be merged into `options` above) that should be passed *only* to the second field. This is especially useful for customizing the label (see `first_options`_). diff --git a/reference/twig_reference.rst b/reference/twig_reference.rst index 142ad6f5df0..b6960b1e729 100644 --- a/reference/twig_reference.rst +++ b/reference/twig_reference.rst @@ -17,9 +17,6 @@ There may also be tags in bundles you use that aren't listed here. Functions --------- -.. versionadded:: 2.1 - The ``csrf_token``, ``logout_path`` and ``logout_url`` functions were added in Symfony2.1 - .. versionadded:: 2.2 The ``render`` and ``controller`` functions are new in Symfony 2.2. Prior, the ``{% render %}`` tag was used and had a different signature. @@ -96,9 +93,6 @@ Functions Filters ------- -.. versionadded:: 2.1 - The ``humanize`` filter was added in Symfony2.1 - +---------------------------------------------------------------------------------+-------------------------------------------------------------------+ | Filter Syntax | Usage | +=================================================================================+===================================================================+ @@ -160,9 +154,6 @@ Tags Tests ----- -.. versionadded:: 2.1 - The ``selectedchoice`` test was added in Symfony2.1 - +---------------------------------------------------+------------------------------------------------------------------------------+ | Test Syntax | Usage | +===================================================+==============================================================================+