diff --git a/book/forms.rst b/book/forms.rst index b107a180460..c21c44f6d68 100644 --- a/book/forms.rst +++ b/book/forms.rst @@ -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 @@ -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. @@ -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``:: @@ -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, diff --git a/components/console/helpers/dialoghelper.rst b/components/console/helpers/dialoghelper.rst index 689ff2556c0..634cf5b77bf 100644 --- a/components/console/helpers/dialoghelper.rst +++ b/components/console/helpers/dialoghelper.rst @@ -198,7 +198,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 ................ diff --git a/components/console/helpers/progresshelper.rst b/components/console/helpers/progresshelper.rst index 3722b3fe213..07d922609e7 100644 --- a/components/console/helpers/progresshelper.rst +++ b/components/console/helpers/progresshelper.rst @@ -5,7 +5,7 @@ Progress Helper =============== .. versionadded:: 2.3 - The ``setCurrent`` method was added in Symfony 2.3. + The ``setCurrent`` method was introduced in Symfony 2.3. .. versionadded:: 2.4 The ``clear`` method was added in Symfony 2.4. diff --git a/components/console/helpers/tablehelper.rst b/components/console/helpers/tablehelper.rst index 81a1bb122c3..e9556146219 100644 --- a/components/console/helpers/tablehelper.rst +++ b/components/console/helpers/tablehelper.rst @@ -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. .. caution:: diff --git a/components/finder.rst b/components/finder.rst index 08392476cbf..31997e17508 100644 --- a/components/finder.rst +++ b/components/finder.rst @@ -95,7 +95,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:: diff --git a/components/form/introduction.rst b/components/form/introduction.rst index a5e5732978a..4b99dda69fa 100644 --- a/components/form/introduction.rst +++ b/components/form/introduction.rst @@ -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:: diff --git a/components/intl.rst b/components/intl.rst index fd12431753b..9560d6e4790 100644 --- a/components/intl.rst +++ b/components/intl.rst @@ -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:: diff --git a/components/process.rst b/components/process.rst index 6ad44519b0c..06c2e8f7224 100644 --- a/components/process.rst +++ b/components/process.rst @@ -114,7 +114,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 @@ -154,7 +154,7 @@ To make your code work better on all platforms, you might want to use the .. versionadded:: 2.3 The :method:`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 @@ -235,7 +235,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:: @@ -261,7 +261,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. diff --git a/components/property_access/introduction.rst b/components/property_access/introduction.rst index d6696468277..07177d15b5f 100644 --- a/components/property_access/introduction.rst +++ b/components/property_access/introduction.rst @@ -212,7 +212,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:: diff --git a/components/security/authorization.rst b/components/security/authorization.rst index 3311e962e89..68a4f3379c7 100644 --- a/components/security/authorization.rst +++ b/components/security/authorization.rst @@ -142,7 +142,7 @@ method:: $roleVoter = new RoleVoter('ROLE_'); - $roleVoter->vote($token, $object, 'ROLE_ADMIN'); + $roleVoter->vote($token, $object, array('ROLE_ADMIN')); RoleHierarchyVoter ~~~~~~~~~~~~~~~~~~ diff --git a/components/serializer.rst b/components/serializer.rst index e45dc61f74c..d4dd82c44c0 100644 --- a/components/serializer.rst +++ b/components/serializer.rst @@ -108,7 +108,7 @@ Ignoring Attributes when Serializing .. versionadded:: 2.3 The :method:`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 @@ -153,7 +153,7 @@ Using Camelized Method Names for Underscored Attributes .. versionadded:: 2.3 The :method:`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 diff --git a/cookbook/doctrine/mapping_model_classes.rst b/cookbook/doctrine/mapping_model_classes.rst index 630819c9928..45dd20a5ce0 100644 --- a/cookbook/doctrine/mapping_model_classes.rst +++ b/cookbook/doctrine/mapping_model_classes.rst @@ -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`_ diff --git a/cookbook/form/direct_submit.rst b/cookbook/form/direct_submit.rst index dc4143b118f..a83cf21b21c 100644 --- a/cookbook/form/direct_submit.rst +++ b/cookbook/form/direct_submit.rst @@ -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:: diff --git a/cookbook/security/entity_provider.rst b/cookbook/security/entity_provider.rst index 7e782e36c8f..3ae31907877 100644 --- a/cookbook/security/entity_provider.rst +++ b/cookbook/security/entity_provider.rst @@ -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. diff --git a/cookbook/session/php_bridge.rst b/cookbook/session/php_bridge.rst index bc6acc9bf6c..7d9c6aa8321 100644 --- a/cookbook/session/php_bridge.rst +++ b/cookbook/session/php_bridge.rst @@ -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 diff --git a/reference/constraints/Iban.rst b/reference/constraints/Iban.rst index 9f52ee766e6..a482903ace6 100644 --- a/reference/constraints/Iban.rst +++ b/reference/constraints/Iban.rst @@ -2,7 +2,7 @@ Iban ==== .. versionadded:: 2.3 - The Iban constraint was added in Symfony 2.3. + The Iban constraint was introduced in Symfony 2.3. This constraint is used to ensure that a bank account number has the proper format of an `International Bank Account Number (IBAN)`_. IBAN is an internationally agreed means diff --git a/reference/constraints/Isbn.rst b/reference/constraints/Isbn.rst index 276ca98ecff..9518c527042 100644 --- a/reference/constraints/Isbn.rst +++ b/reference/constraints/Isbn.rst @@ -2,7 +2,7 @@ Isbn ==== .. versionadded:: 2.3 - The Isbn constraint was added in Symfony 2.3. + The Isbn constraint was introduced in Symfony 2.3. This constraint validates that an `International Standard Book Number (ISBN)`_ is either a valid ISBN-10, a valid ISBN-13 or both. diff --git a/reference/constraints/Issn.rst b/reference/constraints/Issn.rst index b1a1e70bf33..20836159eca 100644 --- a/reference/constraints/Issn.rst +++ b/reference/constraints/Issn.rst @@ -2,7 +2,7 @@ Issn ==== .. versionadded:: 2.3 - The Issn constraint was added in Symfony 2.3. + The Issn constraint was introduced in Symfony 2.3. Validates that a value is a valid `International Standard Serial Number (ISSN)`_. diff --git a/reference/forms/types/button.rst b/reference/forms/types/button.rst index a0bf11c5480..0d6a17feeab 100644 --- a/reference/forms/types/button.rst +++ b/reference/forms/types/button.rst @@ -5,7 +5,7 @@ button Field Type ================= .. versionadded:: 2.3 - The ``button`` type was added in Symfony 2.3 + The ``button`` type was introduced in Symfony 2.3 A simple, non-responsive button. diff --git a/reference/forms/types/reset.rst b/reference/forms/types/reset.rst index 53494cdd1d8..bf5c62cf280 100644 --- a/reference/forms/types/reset.rst +++ b/reference/forms/types/reset.rst @@ -5,7 +5,7 @@ reset Field Type ================ .. versionadded:: 2.3 - The ``reset`` type was added in Symfony 2.3 + The ``reset`` type was introduced in Symfony 2.3 A button that resets all fields to their original values. diff --git a/reference/forms/types/submit.rst b/reference/forms/types/submit.rst index f7701528e0d..ec68f4b84bd 100644 --- a/reference/forms/types/submit.rst +++ b/reference/forms/types/submit.rst @@ -5,7 +5,7 @@ submit Field Type ================= .. versionadded:: 2.3 - The ``submit`` type was added in Symfony 2.3 + The ``submit`` type was introduced in Symfony 2.3 A submit button.