Skip to content

Commit 4ae558b

Browse files
committed
Remove 2.6 versionaddeds as version reached eom
1 parent ed71759 commit 4ae558b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+0
-308
lines changed

book/controller.rst

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -439,10 +439,6 @@ If you want to redirect the user to another page, use the ``redirectToRoute()``
439439
// return $this->redirect($this->generateUrl('homepage'), 301);
440440
}
441441

442-
.. versionadded:: 2.6
443-
The ``redirectToRoute()`` method was added in Symfony 2.6. Previously (and still now), you
444-
could use ``redirect()`` and ``generateUrl()`` together for this (see the example above).
445-
446442
Or, if you want to redirect externally, just use ``redirect()`` and pass it the URL::
447443

448444
public function indexAction()
@@ -534,9 +530,6 @@ console command:
534530
535531
$ php app/console debug:container
536532
537-
.. versionadded:: 2.6
538-
Prior to Symfony 2.6, this command was called ``container:debug``.
539-
540533
For more information, see the :doc:`/book/service_container` chapter.
541534

542535
.. index::

book/routing.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1395,9 +1395,6 @@ the command by running the following from the root of your project.
13951395
13961396
$ php app/console debug:router
13971397
1398-
.. versionadded:: 2.6
1399-
Prior to Symfony 2.6, this command was called ``router:debug``.
1400-
14011398
This command will print a helpful list of *all* the configured routes in
14021399
your application:
14031400

book/security.rst

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -841,15 +841,6 @@ You can easily deny access from inside a controller::
841841
// ...
842842
}
843843

844-
.. versionadded:: 2.6
845-
The ``denyAccessUnlessGranted()`` method was introduced in Symfony 2.6. Previously (and
846-
still now), you could check access directly and throw the ``AccessDeniedException`` as shown
847-
in the example above).
848-
849-
.. versionadded:: 2.6
850-
The ``security.authorization_checker`` service was introduced in Symfony 2.6. Prior
851-
to Symfony 2.6, you had to use the ``isGranted()`` method of the ``security.context`` service.
852-
853844
In both cases, a special
854845
:class:`Symfony\\Component\\Security\\Core\\Exception\\AccessDeniedException`
855846
is thrown, which ultimately triggers a 403 HTTP response inside Symfony.
@@ -1016,10 +1007,6 @@ shown above.
10161007
Retrieving the User Object
10171008
--------------------------
10181009

1019-
.. versionadded:: 2.6
1020-
The ``security.token_storage`` service was introduced in Symfony 2.6. Prior
1021-
to Symfony 2.6, you had to use the ``getToken()`` method of the ``security.context`` service.
1022-
10231010
After authentication, the ``User`` object of the current user can be accessed
10241011
via the ``security.token_storage`` service. From inside a controller, this will
10251012
look like::
@@ -1220,9 +1207,6 @@ in the following way from a controller::
12201207

12211208
$user->setPassword($encoded);
12221209

1223-
.. versionadded:: 2.6
1224-
The ``security.password_encoder`` service was introduced in Symfony 2.6.
1225-
12261210
In order for this to work, just make sure that you have the encoder for your
12271211
user class (e.g. ``AppBundle\Entity\User``) configured under the ``encoders``
12281212
key in ``app/config/security.yml``.

book/service_container.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1147,9 +1147,6 @@ console. To show all services and the class for each service, run:
11471147
11481148
$ php app/console debug:container
11491149
1150-
.. versionadded:: 2.6
1151-
Prior to Symfony 2.6, this command was called ``container:debug``.
1152-
11531150
By default, only public services are shown, but you can also view private services:
11541151

11551152
.. code-block:: bash

book/templating.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1222,12 +1222,6 @@ automatically:
12221222
<p>Application Environment: <?php echo $app->getEnvironment() ?></p>
12231223
<?php endif ?>
12241224

1225-
.. versionadded:: 2.6
1226-
The global ``app.security`` variable (or the ``$app->getSecurity()``
1227-
method in PHP templates) is deprecated as of Symfony 2.6. Use ``app.user``
1228-
(``$app->getUser()``) and ``is_granted()`` (``$view['security']->isGranted()``)
1229-
instead.
1230-
12311225
.. tip::
12321226

12331227
You can add your own global template variables. See the cookbook example

book/testing.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -471,9 +471,6 @@ Be warned that this does not work if you insulate the client or if you use an
471471
HTTP layer. For a list of services available in your application, use the
472472
``debug:container`` console task.
473473

474-
.. versionadded:: 2.6
475-
Prior to Symfony 2.6, this command was called ``container:debug``.
476-
477474
.. tip::
478475

479476
If the information you need to check is available from the profiler, use

book/translation.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -407,9 +407,6 @@ checks translation resources for several locales:
407407
#. If the translation still isn't found, Symfony uses the ``fallbacks`` configuration
408408
parameter, which defaults to ``en`` (see `Configuration`_).
409409

410-
.. versionadded:: 2.6
411-
The ability to log missing translations was introduced in Symfony 2.6.
412-
413410
.. note::
414411

415412
When Symfony doesn't find a translation in the given locale, it will
@@ -701,9 +698,6 @@ For more information, see the documentation for these libraries.
701698
Debugging Translations
702699
----------------------
703700

704-
.. versionadded:: 2.6
705-
Prior to Symfony 2.6, this command was called ``translation:debug``.
706-
707701
When maintaining a bundle, you may use or remove the usage of a translation
708702
message without updating all message catalogues. The ``debug:translation``
709703
command helps you to find these missing or unused translation messages for a

components/config/definition.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -297,10 +297,6 @@ method.
297297
The info will be printed as a comment when dumping the configuration tree
298298
with the ``config:dump`` command.
299299

300-
.. versionadded:: 2.6
301-
Since Symfony 2.6, the info will also be added to the exception message
302-
when an invalid type is given.
303-
304300
Optional Sections
305301
-----------------
306302

components/console/events.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,6 @@ dispatched. Listeners receive a
5959
Disable Commands inside Listeners
6060
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6161

62-
.. versionadded:: 2.6
63-
Disabling commands inside listeners was introduced in Symfony 2.6.
64-
6562
Using the
6663
:method:`Symfony\\Component\\Console\\Event\\ConsoleCommandEvent::disableCommand`
6764
method, you can disable a command inside a listener. The application

components/console/helpers/debug_formatter.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
Debug Formatter Helper
55
======================
66

7-
.. versionadded:: 2.6
8-
The Debug Formatter helper was introduced in Symfony 2.6.
9-
107
The :class:`Symfony\\Component\\Console\\Helper\\DebugFormatterHelper` provides
118
functions to output debug information when running an external program, for
129
instance a process or HTTP request. For example, if you used it to output

components/console/helpers/processhelper.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
Process Helper
55
==============
66

7-
.. versionadded:: 2.6
8-
The Process Helper was introduced in Symfony 2.6.
9-
107
The Process Helper shows processes as they're running and reports
118
useful information about process status.
129

components/console/helpers/progressbar.rst

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -40,22 +40,11 @@ Instead of advancing the bar by a number of steps (with the
4040
you can also set the current progress by calling the
4141
:method:`Symfony\\Component\\Console\\Helper\\ProgressBar::setProgress` method.
4242

43-
.. versionadded:: 2.6
44-
The ``setProgress()`` method was called ``setCurrent()`` prior to Symfony 2.6.
45-
4643
.. caution::
4744

4845
Prior to version 2.6, the progress bar only works if your platform
4946
supports ANSI codes; on other platforms, no output is generated.
5047

51-
.. versionadded:: 2.6
52-
If your platform doesn't support ANSI codes, updates to the progress
53-
bar are added as new lines. To prevent the output from being flooded,
54-
adjust the
55-
:method:`Symfony\\Component\\Console\\Helper\\ProgressBar::setRedrawFrequency`
56-
accordingly. By default, when using a ``max``, the redraw frequency
57-
is set to *10%* of your ``max``.
58-
5948
If you don't know the number of steps in advance, just omit the steps argument
6049
when creating the :class:`Symfony\\Component\\Console\\Helper\\ProgressBar`
6150
instance::
@@ -303,9 +292,6 @@ that displays the number of remaining steps::
303292
}
304293
);
305294

306-
.. versionadded:: 2.6
307-
The ``getProgress()`` method was called ``getStep()`` prior to Symfony 2.6.
308-
309295
Custom Messages
310296
~~~~~~~~~~~~~~~
311297

components/dependency_injection/factories.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@ For this situation, you can use a factory to create the object and tell
1212
the service container to call a method on the factory rather than directly
1313
instantiating the class.
1414

15-
.. versionadded:: 2.6
16-
The new :method:`Symfony\\Component\\DependencyInjection\\Definition::setFactory`
17-
method was introduced in Symfony 2.6. Refer to older versions for the
18-
syntax for factories prior to 2.6.
19-
2015
Suppose you have a factory that configures and returns a new ``NewsletterManager``
2116
object::
2217

components/dom_crawler.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,10 +191,6 @@ Get all the child or parent nodes::
191191
Accessing Node Values
192192
~~~~~~~~~~~~~~~~~~~~~
193193

194-
.. versionadded:: 2.6
195-
The :method:`Symfony\\Component\\DomCrawler\\Crawler::nodeName`
196-
method was introduced in Symfony 2.6.
197-
198194
Access the node name (HTML tag name) of the first node of the current selection (eg. "p" or "div")::
199195

200196
// will return the node name (HTML tag name) of the first child element under <body>

components/event_dispatcher/introduction.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -628,10 +628,6 @@ and so on...
628628
Event Name Introspection
629629
~~~~~~~~~~~~~~~~~~~~~~~~
630630

631-
.. versionadded:: 2.4
632-
Before Symfony 2.4, the event name and the event dispatcher had to be
633-
requested from the ``Event`` instance. These methods are now deprecated.
634-
635631
The ``EventDispatcher`` instance, as well as the name of the event that
636632
is dispatched, are passed as arguments to the listener::
637633

components/expression_language/extending.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,6 @@ evaluating or the "names" if compiling).
5656
Using Expression Providers
5757
--------------------------
5858

59-
.. versionadded:: 2.6
60-
Expression providers were introduced in Symfony 2.6.
61-
6259
When you use the ``ExpressionLanguage`` class in your library, you often want
6360
to add custom functions. To do so, you can create a new expression provider by
6461
creating a class that implements

components/filesystem/lock_handler.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
LockHandler
22
===========
33

4-
.. versionadded:: 2.6
5-
The lock handler feature was introduced in Symfony 2.6
6-
74
What is a Lock?
85
---------------
96

components/http_foundation/introduction.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -512,9 +512,6 @@ You can still set the ``Content-Type`` of the sent file, or change its ``Content
512512
'filename.txt'
513513
);
514514

515-
.. versionadded:: 2.6
516-
The ``deleteFileAfterSend()`` method was introduced in Symfony 2.6.
517-
518515
It is possible to delete the file after the request is sent with the
519516
:method:`Symfony\\Component\\HttpFoundation\\BinaryFileResponse::deleteFileAfterSend` method.
520517
Please note that this will not work when the ``X-Sendfile`` header is set.

components/options_resolver.rst

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@ You can install the component in 2 different ways:
2222
Notes on Previous Versions
2323
--------------------------
2424

25-
.. versionadded:: 2.6
26-
This documentation was written for Symfony 2.6 and later. If you use an older
27-
version, please `read the Symfony 2.5 documentation`_. For a list of changes,
28-
see the `CHANGELOG`_.
29-
3025
Usage
3126
-----
3227

@@ -222,10 +217,6 @@ For example, to make the ``host`` option required, you can do::
222217
}
223218
}
224219

225-
.. versionadded:: 2.6
226-
As of Symfony 2.6, ``setRequired()`` accepts both an array of options or a
227-
single option. Prior to 2.6, you could only pass arrays.
228-
229220
If you omit a required option, a
230221
:class:`Symfony\\Component\\OptionsResolver\\Exception\\MissingOptionsException`
231222
will be thrown::
@@ -250,11 +241,6 @@ one required option::
250241
}
251242
}
252243

253-
.. versionadded:: 2.6
254-
The methods :method:`Symfony\\Component\\OptionsResolver\\OptionsResolver::isRequired`
255-
and :method:`Symfony\\Component\\OptionsResolver\\OptionsResolver::getRequiredOptions`
256-
were introduced in Symfony 2.6.
257-
258244
Use :method:`Symfony\\Component\\OptionsResolver\\OptionsResolver::isRequired` to find
259245
out if an option is required. You can use
260246
:method:`Symfony\\Component\\OptionsResolver\\OptionsResolver::getRequiredOptions` to
@@ -275,11 +261,6 @@ retrieve the names of all required options::
275261
}
276262
}
277263

278-
.. versionadded:: 2.6
279-
The methods :method:`Symfony\\Component\\OptionsResolver\\OptionsResolver::isMissing`
280-
and :method:`Symfony\\Component\\OptionsResolver\\OptionsResolver::getMissingOptions`
281-
were introduced in Symfony 2.6.
282-
283264
If you want to check whether a required option is still missing from the default
284265
options, you can use :method:`Symfony\\Component\\OptionsResolver\\OptionsResolver::isMissing`.
285266
The difference between this and :method:`Symfony\\Component\\OptionsResolver\\OptionsResolver::isRequired`
@@ -362,11 +343,6 @@ is thrown::
362343
In sub-classes, you can use :method:`Symfony\\Component\\OptionsResolver\\OptionsResolver::addAllowedTypes`
363344
to add additional allowed types without erasing the ones already set.
364345

365-
.. versionadded:: 2.6
366-
Before Symfony 2.6, ``setAllowedTypes()`` and ``addAllowedTypes()`` expected
367-
the values to be given as an array mapping option names to allowed types:
368-
``$resolver->setAllowedTypes(array('port' => array('null', 'int')));``
369-
370346
Value Validation
371347
~~~~~~~~~~~~~~~~
372348

@@ -413,11 +389,6 @@ returns ``true`` for acceptable values and ``false`` for invalid values::
413389
In sub-classes, you can use :method:`Symfony\\Component\\OptionsResolver\\OptionsResolver::addAllowedValues`
414390
to add additional allowed values without erasing the ones already set.
415391

416-
.. versionadded:: 2.6
417-
Before Symfony 2.6, ``setAllowedValues()`` and ``addAllowedValues()`` expected
418-
the values to be given as an array mapping option names to allowed values:
419-
``$resolver->setAllowedValues(array('transport' => array('sendmail', 'mail', 'smtp')));``
420-
421392
Option Normalization
422393
~~~~~~~~~~~~~~~~~~~~
423394

@@ -446,11 +417,6 @@ option. You can configure a normalizer by calling
446417
}
447418
}
448419

449-
.. versionadded:: 2.6
450-
The method :method:`Symfony\\Component\\OptionsResolver\\OptionsResolver::setNormalizer`
451-
was introduced in Symfony 2.6. Before, you had to use
452-
:method:`Symfony\\Component\\OptionsResolver\\OptionsResolver::setNormalizers`.
453-
454420
The normalizer receives the actual ``$value`` and returns the normalized form.
455421
You see that the closure also takes an ``$options`` parameter. This is useful
456422
if you need to use other options during normalization::
@@ -585,11 +551,6 @@ comes from the default::
585551
}
586552
}
587553

588-
.. versionadded:: 2.6
589-
The method :method:`Symfony\\Component\\OptionsResolver\\OptionsResolver::setDefined`
590-
was introduced in Symfony 2.6. Before, you had to use
591-
:method:`Symfony\\Component\\OptionsResolver\\OptionsResolver::setOptional`.
592-
593554
You can use :method:`Symfony\\Component\\OptionsResolver\\OptionsResolver::setDefined`
594555
to define an option without setting a default value. Then the option will only
595556
be included in the resolved options if it was actually passed to
@@ -641,11 +602,6 @@ options in one go::
641602
}
642603
}
643604

644-
.. versionadded:: 2.6
645-
The method :method:`Symfony\\Component\\OptionsResolver\\OptionsResolver::isDefined`
646-
and :method:`Symfony\\Component\\OptionsResolver\\OptionsResolver::getDefinedOptions`
647-
were introduced in Symfony 2.6.
648-
649605
The methods :method:`Symfony\\Component\\OptionsResolver\\OptionsResolver::isDefined`
650606
and :method:`Symfony\\Component\\OptionsResolver\\OptionsResolver::getDefinedOptions`
651607
let you find out which options are defined::

components/security/authentication.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@
44
Authentication
55
==============
66

7-
.. versionadded:: 2.6
8-
The ``TokenStorageInterface`` was introduced in Symfony 2.6. Prior, you
9-
had to use the ``getToken()`` method of the
10-
:class:`Symfony\\Component\\Security\\Core\\SecurityContextInterface`.
11-
127
When a request points to a secured area, and one of the listeners from the
138
firewall map is able to extract the user's credentials from the current
149
:class:`Symfony\\Component\\HttpFoundation\\Request` object, it should create

components/security/authorization.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,6 @@ An authorization decision will always be based on a few things:
2929
Any object for which access control needs to be checked, like
3030
an article or a comment object.
3131

32-
.. versionadded:: 2.6
33-
The ``TokenStorageInterface`` was introduced in Symfony 2.6. Prior, you
34-
had to use the ``setToken()`` method of the
35-
:class:`Symfony\\Component\\Security\\Core\\SecurityContextInterface`.
36-
3732
.. _components-security-access-decision-manager:
3833

3934
Access Decision Manager

0 commit comments

Comments
 (0)