Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 48835de

Browse files
committed
minor #4767 [2.6] Removed 2.4 versionadded as version is deprecated (WouterJ)
This PR was merged into the 2.6 branch. Discussion ---------- [2.6] Removed 2.4 versionadded as version is deprecated Commits ------- 89caa75 Removed 2.4 versionadded as version is deprecated
2 parents 08e5ac9 + 89caa75 commit 48835de

40 files changed

+0
-167
lines changed

book/controller.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -683,9 +683,6 @@ content that's sent back to the client::
683683
$response = new Response(json_encode(array('name' => $name)));
684684
$response->headers->set('Content-Type', 'application/json');
685685

686-
.. versionadded:: 2.4
687-
Support for HTTP status code constants was introduced in Symfony 2.4.
688-
689686
The ``headers`` property is a :class:`Symfony\\Component\\HttpFoundation\\HeaderBag`
690687
object and has some nice methods for getting and setting the headers. The
691688
header names are normalized so that using ``Content-Type`` is equivalent to

book/from_flat_php_to_symfony2.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -484,9 +484,6 @@ the HTTP response being returned. Use them to improve the blog:
484484
// echo the headers and send the response
485485
$response->send();
486486

487-
.. versionadded:: 2.4
488-
Support for HTTP status code constants was introduced in Symfony 2.4.
489-
490487
The controllers are now responsible for returning a ``Response`` object.
491488
To make this easier, you can add a new ``render_template()`` function, which,
492489
incidentally, acts quite a bit like the Symfony templating engine:

book/http_fundamentals.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -287,9 +287,6 @@ interface to construct the response that needs to be returned to the client::
287287
// prints the HTTP headers followed by the content
288288
$response->send();
289289

290-
.. versionadded:: 2.4
291-
Support for HTTP status code constants was introduced in Symfony 2.4.
292-
293290
If Symfony offered nothing else, you would already have a toolkit for easily
294291
accessing request information and an object-oriented interface for creating
295292
the response. Even as you learn the many powerful features in Symfony, keep

book/internals.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,10 +208,6 @@ processing must only occur on the master request).
208208
Events
209209
~~~~~~
210210

211-
.. versionadded:: 2.4
212-
The ``isMasterRequest()`` method was introduced in Symfony 2.4.
213-
Prior, the ``getRequestType()`` method must be used.
214-
215211
Each event thrown by the Kernel is a subclass of
216212
:class:`Symfony\\Component\\HttpKernel\\Event\\KernelEvent`. This means that
217213
each event has access to the same basic information:

book/routing.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -915,9 +915,6 @@ component documentation.
915915
Completely Customized Route Matching with Conditions
916916
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
917917

918-
.. versionadded:: 2.4
919-
Route conditions were introduced in Symfony 2.4.
920-
921918
As you've seen, a route can be made to match only certain routing wildcards
922919
(via regular expressions), HTTP methods, or host names. But the routing system
923920
can be extended to have an almost infinite flexibility using ``conditions``:

book/security.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -927,9 +927,6 @@ special attributes like this:
927927

928928
.. _book-security-template-expression:
929929

930-
.. versionadded:: 2.4
931-
The ``expression`` functionality was introduced in Symfony 2.4.
932-
933930
You can also use expressions inside your templates:
934931

935932
.. configuration-block::

book/service_container.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -624,9 +624,6 @@ the work of instantiating the classes.
624624
Using the Expression Language
625625
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
626626

627-
.. versionadded:: 2.4
628-
The Expression Language functionality was introduced in Symfony 2.4.
629-
630627
The service container also supports an "expression" that allows you to inject
631628
very specific values into a service.
632629

@@ -818,9 +815,6 @@ Injecting the dependency by the setter method just needs a change of syntax:
818815
Injecting the Request
819816
~~~~~~~~~~~~~~~~~~~~~
820817

821-
.. versionadded:: 2.4
822-
The ``request_stack`` service was introduced in Symfony 2.4.
823-
824818
As of Symfony 2.4, instead of injecting the ``request`` service, you should
825819
inject the ``request_stack`` service and access the ``Request`` by calling
826820
the :method:`Symfony\\Component\\HttpFoundation\\RequestStack::getCurrentRequest`

components/console/helpers/progresshelper.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ Progress Helper
77
.. versionadded:: 2.3
88
The ``setCurrent`` method was introduced in Symfony 2.3.
99

10-
.. versionadded:: 2.4
11-
The ``clear`` method was introduced in Symfony 2.4.
12-
1310
.. caution::
1411

1512
The Progress Helper was deprecated in Symfony 2.5 and will be removed in

components/console/helpers/tablehelper.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@ table rendering: using named layouts or by customizing rendering options.
3939
Customize Table Layout using Named Layouts
4040
------------------------------------------
4141

42-
.. versionadded:: 2.4
43-
The ``TableHelper::LAYOUT_COMPACT`` layout was introduced in Symfony 2.4.
44-
4542
The Table helper ships with three preconfigured table layouts:
4643

4744
* ``TableHelper::LAYOUT_DEFAULT``

components/console/introduction.rst

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -203,13 +203,6 @@ level. For example::
203203
$output->writeln(...);
204204
}
205205

206-
.. versionadded:: 2.4
207-
The :method:`Symfony\\Component\\Console\\Output\\Output::isQuiet`,
208-
:method:`Symfony\\Component\\Console\\Output\\Output::isVerbose`,
209-
:method:`Symfony\\Component\\Console\\Output\\Output::isVeryVerbose` and
210-
:method:`Symfony\\Component\\Console\\Output\\Output::isDebug`
211-
methods were introduced in Symfony 2.4
212-
213206
There are also more semantic methods you can use to test for each of the
214207
verbosity levels::
215208

components/debug/class_loader.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55
Debugging a Class Loader
66
========================
77

8-
.. versionadded:: 2.4
9-
The ``DebugClassLoader`` of the Debug component was introduced in Symfony 2.4.
10-
Previously, it was located in the ClassLoader component.
11-
128
The :class:`Symfony\\Component\\Debug\\DebugClassLoader` attempts to
139
throw more helpful exceptions when a class isn't found by the registered
1410
autoloaders. All autoloaders that implement a ``findFile()`` method are replaced

components/dom_crawler.rst

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,6 @@ Both the :method:`Symfony\\Component\\DomCrawler\\Crawler::filterXPath` and
102102
XML namespaces, which can be either automatically discovered or registered
103103
explicitly.
104104

105-
.. versionadded:: 2.4
106-
Auto discovery and explicit registration of namespaces was introduced
107-
in Symfony 2.4.
108-
109105
Consider the XML below:
110106

111107
.. code-block:: xml
@@ -456,10 +452,6 @@ directly::
456452
Selecting Invalid Choice Values
457453
...............................
458454

459-
.. versionadded:: 2.4
460-
The :method:`Symfony\\Component\\DomCrawler\\Form::disableValidation`
461-
method was introduced in Symfony 2.4.
462-
463455
By default, choice fields (select, radio) have internal validation activated
464456
to prevent you from setting invalid values. If you want to be able to set
465457
invalid values, you can use the ``disableValidation()`` method on either

components/event_dispatcher/introduction.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -489,10 +489,6 @@ which returns a boolean value::
489489
EventDispatcher aware Events and Listeners
490490
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
491491

492-
.. versionadded:: 2.4
493-
Since Symfony 2.4, the current event name and the ``EventDispatcher``
494-
itself are passed to the listeners as additional arguments.
495-
496492
The ``EventDispatcher`` always passes the dispatched event, the event's name
497493
and a reference to itself to the listeners. This can be used in some advanced
498494
usages of the ``EventDispatcher`` like dispatching other events in listeners,

components/expression_language/introduction.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ The ExpressionLanguage Component
99
evaluate expressions. An expression is a one-liner that returns a value
1010
(mostly, but not limited to, Booleans).
1111

12-
.. versionadded:: 2.4
13-
The ExpressionLanguage component was introduced in Symfony 2.4.
14-
1512
Installation
1613
------------
1714

components/filesystem/introduction.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,6 @@ endpoint for filesystem operations::
3636
echo "An error occurred while creating your directory at ".$e->getPath();
3737
}
3838

39-
.. versionadded:: 2.4
40-
The ``IOExceptionInterface`` and its ``getPath`` method were introduced in
41-
Symfony 2.4. Prior to 2.4, you would catch the ``IOException`` class.
42-
4339
.. note::
4440

4541
Methods :method:`Symfony\\Component\\Filesystem\\Filesystem::mkdir`,

components/http_foundation/introduction.rst

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -284,10 +284,6 @@ for more information about them.
284284
Overriding the Request
285285
~~~~~~~~~~~~~~~~~~~~~~
286286

287-
.. versionadded:: 2.4
288-
The :method:`Symfony\\Component\\HttpFoundation\\Request::setFactory`
289-
method was introduced in Symfony 2.4.
290-
291287
The ``Request`` class should not be overridden as it is a data object that
292288
represents an HTTP message. But when moving from a legacy system, adding
293289
methods or changing some default behavior might help. In that case, register a
@@ -335,9 +331,6 @@ code, and an array of HTTP headers::
335331
array('content-type' => 'text/html')
336332
);
337333

338-
.. versionadded:: 2.4
339-
Support for HTTP status code constants was introduced in Symfony 2.4.
340-
341334
These information can also be manipulated after the Response object creation::
342335

343336
$response->setContent('Hello World');

components/http_kernel/introduction.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -679,10 +679,6 @@ argument as follows::
679679
$response = $kernel->handle($request, HttpKernelInterface::SUB_REQUEST);
680680
// do something with this response
681681

682-
.. versionadded:: 2.4
683-
The ``isMasterRequest()`` method was introduced in Symfony 2.4.
684-
Prior, the ``getRequestType()`` method must be used.
685-
686682
This creates another full request-response cycle where this new ``Request`` is
687683
transformed into a ``Response``. The only difference internally is that some
688684
listeners (e.g. security) may only act upon the master request. Each listener

components/process.rst

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ output. Alternatively, the :method:`Symfony\\Component\\Process\\Process::getInc
4242
and :method:`Symfony\\Component\\Process\\Process::getIncrementalErrorOutput`
4343
methods returns the new outputs since the last call.
4444

45-
.. versionadded:: 2.4
46-
The ``clearOutput()`` and ``clearErrorOutput()`` methods were introduced in Symfony 2.4.
47-
4845
The :method:`Symfony\\Component\\Process\\Process::clearOutput` method clears
4946
the contents of the output and
5047
:method:`Symfony\\Component\\Process\\Process::clearErrorOutput` clears
@@ -236,10 +233,6 @@ check regularly::
236233
Process Idle Timeout
237234
--------------------
238235

239-
.. versionadded:: 2.4
240-
The :method:`Symfony\\Component\\Process\\Process::setIdleTimeout` method
241-
was introduced in Symfony 2.4.
242-
243236
In contrast to the timeout of the previous paragraph, the idle timeout only
244237
considers the time since the last output was produced by the process::
245238

components/translation/introduction.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,6 @@ The Translation component uses Loader classes to load catalogs. You can load
6262
multiple resources for the same locale, which will then be combined into one
6363
catalog.
6464

65-
.. versionadded:: 2.4
66-
The ``JsonFileLoader`` was introduced in Symfony 2.4.
67-
6865
The component comes with some default Loaders and you can create your own
6966
Loader too. The default loaders are:
7067

cookbook/console/commands_as_services.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@
44
How to Define Commands as Services
55
==================================
66

7-
.. versionadded:: 2.4
8-
Support for registering commands in the service container was introduced in
9-
Symfony 2.4.
10-
117
By default, Symfony will take a look in the ``Command`` directory of each
128
bundle and automatically register your commands. If a command extends the
139
:class:`Symfony\\Bundle\\FrameworkBundle\\Command\\ContainerAwareCommand`,

cookbook/console/console_command.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -181,11 +181,6 @@ instead of
181181
}
182182
}
183183

184-
.. versionadded:: 2.4
185-
Since Symfony 2.4, the ``CommandTester`` automatically detects the name of
186-
the command to execute. Prior to Symfony 2.4, you need to pass it via the
187-
``command`` key.
188-
189184
.. note::
190185

191186
In the specific case above, the ``name`` parameter and the ``--yell`` option

cookbook/expression/expressions.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
How to use Expressions in Security, Routing, Services, and Validation
55
=====================================================================
66

7-
.. versionadded:: 2.4
8-
The expression functionality was introduced in Symfony 2.4.
9-
107
In Symfony 2.4, a powerful :doc:`ExpressionLanguage </components/expression_language/introduction>`
118
component was added to Symfony. This allows us to add highly customized
129
logic inside configuration.
@@ -28,9 +25,6 @@ For more information about how to create and work with expressions, see
2825
Security: Complex Access Controls with Expressions
2926
--------------------------------------------------
3027

31-
.. versionadded:: 2.4
32-
The expression functionality was introduced in Symfony 2.4.
33-
3428
In addition to a role like ``ROLE_ADMIN``, the ``isGranted`` method also
3529
accepts an :class:`Symfony\\Component\\ExpressionLanguage\\Expression` object::
3630

cookbook/logging/channels_handlers.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,6 @@ specified.
114114
Configure Additional Channels without Tagged Services
115115
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
116116

117-
.. versionadded:: 2.4
118-
This feature was introduced to the MonologBundle 2.4, which was first
119-
packaged with Symfony 2.4.
120-
121117
With MonologBundle 2.4 you can configure additional channels without the
122118
need to tag your services:
123119

cookbook/logging/monolog_console.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
How to Configure Monolog to Display Console Messages
55
====================================================
66

7-
.. versionadded:: 2.4
8-
This feature was introduced to the MonologBridge in Symfony 2.4.
9-
107
It is possible to use the console to print messages for certain
118
:ref:`verbosity levels <verbosity-levels>` using the
129
:class:`Symfony\\Component\\Console\\Output\\OutputInterface` instance that

cookbook/logging/monolog_regex_based_excludes.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
66
How to Configure Monolog to Exclude 404 Errors from the Log
77
===========================================================
88

9-
.. versionadded:: 2.4
10-
This feature was introduced to the MonologBundle 2.4, which was first
11-
packaged with Symfony 2.4.
12-
139
Sometimes your logs become flooded with unwanted 404 HTTP errors, for example,
1410
when an attacker scans your app for some well-known application paths (e.g.
1511
`/phpmyadmin`). When using a ``fingers_crossed`` handler, you can exclude

cookbook/security/access_control.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,9 +247,6 @@ address):
247247
Securing by an Expression
248248
~~~~~~~~~~~~~~~~~~~~~~~~~
249249

250-
.. versionadded:: 2.4
251-
The ``allow_if`` functionality was introduced in Symfony 2.4.
252-
253250
Once an ``access_control`` entry is matched, you can deny access via the
254251
``roles`` key or use more complex logic with an expression in the ``allow_if``
255252
key:

cookbook/security/api_key_authentication.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ passed as a query string parameter or via an HTTP header.
1111
The API Key Authenticator
1212
-------------------------
1313

14-
.. versionadded:: 2.4
15-
The ``SimplePreAuthenticatorInterface`` interface was introduced in Symfony 2.4.
16-
1714
Authenticating a user based on the Request information should be done via a
1815
pre-authentication mechanism. The :class:`Symfony\\Component\\Security\\Core\\Authentication\\SimplePreAuthenticatorInterface`
1916
allows you to implement such a scheme really easily.

cookbook/security/custom_authentication_provider.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,6 @@ set an authenticated token in the token storage if successful.
168168
}
169169
}
170170
171-
.. versionadded:: 2.4
172-
Support for HTTP status code constants was introduced in Symfony 2.4.
173-
174171
This listener checks the request for the expected ``X-WSSE`` header, matches
175172
the value returned for the expected WSSE information, creates a token using
176173
that information, and passes the token on to the authentication manager. If

cookbook/security/custom_password_authenticator.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ Before Symfony 2.6, you had to use the password encoder to authenticate the user
1313
The Password Authenticator
1414
--------------------------
1515

16-
.. versionadded:: 2.4
17-
The ``SimpleFormAuthenticatorInterface`` interface was introduced in Symfony 2.4.
18-
1916
.. versionadded:: 2.6
2017
The ``UserPasswordEncoderInterface`` interface was introduced in Symfony 2.6.
2118

cookbook/security/firewall_restriction.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,6 @@ firewalls will have the opportunity to be matched for this request.
7272
Restricting by Host
7373
-------------------
7474

75-
.. versionadded:: 2.4
76-
Support for restricting security firewalls to a specific host was introduced in
77-
Symfony 2.4.
78-
7975
If matching against the ``pattern`` only is not enough, the request can also be matched against
8076
``host``. When the configuration option ``host`` is set, the firewall will be restricted to
8177
only initialize if the host from the request matches against the configuration.

cookbook/service_container/event_listener.rst

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,6 @@ event is just one of the core kernel events::
5151
}
5252
}
5353

54-
.. versionadded:: 2.4
55-
Support for HTTP status code constants was introduced in Symfony 2.4.
56-
5754
.. tip::
5855

5956
Each event receives a slightly different type of ``$event`` object. For
@@ -106,10 +103,6 @@ using a special "tag":
106103
Request Events, Checking Types
107104
------------------------------
108105

109-
.. versionadded:: 2.4
110-
The ``isMasterRequest()`` method was introduced in Symfony 2.4.
111-
Prior, the ``getRequestType()`` method must be used.
112-
113106
A single page can make several requests (one master request, and then multiple
114107
sub-requests), which is why when working with the ``KernelEvents::REQUEST``
115108
event, you might need to check the type of the request. This can be easily

cookbook/session/limit_metadata_writes.rst

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

7-
.. versionadded:: 2.4
8-
The ability to limit session metadata writes was introduced in Symfony 2.4.
9-
107
The default behavior of PHP session is to persist the session regardless of
118
whether the session data has changed or not. In Symfony, each time the session
129
is accessed, metadata is recorded (session created/last used) which can be used

0 commit comments

Comments
 (0)