Skip to content

Commit

Permalink
minor #4767 [2.6] Removed 2.4 versionadded as version is deprecated (…
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
weaverryan committed Jan 16, 2015
2 parents 08e5ac9 + 89caa75 commit 48835de
Show file tree
Hide file tree
Showing 40 changed files with 0 additions and 167 deletions.
3 changes: 0 additions & 3 deletions book/controller.rst
Original file line number Diff line number Diff line change
Expand Up @@ -683,9 +683,6 @@ content that's sent back to the client::
$response = new Response(json_encode(array('name' => $name)));
$response->headers->set('Content-Type', 'application/json');

.. versionadded:: 2.4
Support for HTTP status code constants was introduced in Symfony 2.4.

The ``headers`` property is a :class:`Symfony\\Component\\HttpFoundation\\HeaderBag`
object and has some nice methods for getting and setting the headers. The
header names are normalized so that using ``Content-Type`` is equivalent to
Expand Down
3 changes: 0 additions & 3 deletions book/from_flat_php_to_symfony2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -484,9 +484,6 @@ the HTTP response being returned. Use them to improve the blog:
// echo the headers and send the response
$response->send();

.. versionadded:: 2.4
Support for HTTP status code constants was introduced in Symfony 2.4.

The controllers are now responsible for returning a ``Response`` object.
To make this easier, you can add a new ``render_template()`` function, which,
incidentally, acts quite a bit like the Symfony templating engine:
Expand Down
3 changes: 0 additions & 3 deletions book/http_fundamentals.rst
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,6 @@ interface to construct the response that needs to be returned to the client::
// prints the HTTP headers followed by the content
$response->send();

.. versionadded:: 2.4
Support for HTTP status code constants was introduced in Symfony 2.4.

If Symfony offered nothing else, you would already have a toolkit for easily
accessing request information and an object-oriented interface for creating
the response. Even as you learn the many powerful features in Symfony, keep
Expand Down
4 changes: 0 additions & 4 deletions book/internals.rst
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,6 @@ processing must only occur on the master request).
Events
~~~~~~

.. versionadded:: 2.4
The ``isMasterRequest()`` method was introduced in Symfony 2.4.
Prior, the ``getRequestType()`` method must be used.

Each event thrown by the Kernel is a subclass of
:class:`Symfony\\Component\\HttpKernel\\Event\\KernelEvent`. This means that
each event has access to the same basic information:
Expand Down
3 changes: 0 additions & 3 deletions book/routing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -915,9 +915,6 @@ component documentation.
Completely Customized Route Matching with Conditions
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. versionadded:: 2.4
Route conditions were introduced in Symfony 2.4.

As you've seen, a route can be made to match only certain routing wildcards
(via regular expressions), HTTP methods, or host names. But the routing system
can be extended to have an almost infinite flexibility using ``conditions``:
Expand Down
3 changes: 0 additions & 3 deletions book/security.rst
Original file line number Diff line number Diff line change
Expand Up @@ -927,9 +927,6 @@ special attributes like this:

.. _book-security-template-expression:

.. versionadded:: 2.4
The ``expression`` functionality was introduced in Symfony 2.4.

You can also use expressions inside your templates:

.. configuration-block::
Expand Down
6 changes: 0 additions & 6 deletions book/service_container.rst
Original file line number Diff line number Diff line change
Expand Up @@ -624,9 +624,6 @@ the work of instantiating the classes.
Using the Expression Language
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. versionadded:: 2.4
The Expression Language functionality was introduced in Symfony 2.4.

The service container also supports an "expression" that allows you to inject
very specific values into a service.

Expand Down Expand Up @@ -818,9 +815,6 @@ Injecting the dependency by the setter method just needs a change of syntax:
Injecting the Request
~~~~~~~~~~~~~~~~~~~~~

.. versionadded:: 2.4
The ``request_stack`` service was introduced in Symfony 2.4.

As of Symfony 2.4, instead of injecting the ``request`` service, you should
inject the ``request_stack`` service and access the ``Request`` by calling
the :method:`Symfony\\Component\\HttpFoundation\\RequestStack::getCurrentRequest`
Expand Down
3 changes: 0 additions & 3 deletions components/console/helpers/progresshelper.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ Progress Helper
.. versionadded:: 2.3
The ``setCurrent`` method was introduced in Symfony 2.3.

.. versionadded:: 2.4
The ``clear`` method was introduced in Symfony 2.4.

.. caution::

The Progress Helper was deprecated in Symfony 2.5 and will be removed in
Expand Down
3 changes: 0 additions & 3 deletions components/console/helpers/tablehelper.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ table rendering: using named layouts or by customizing rendering options.
Customize Table Layout using Named Layouts
------------------------------------------

.. versionadded:: 2.4
The ``TableHelper::LAYOUT_COMPACT`` layout was introduced in Symfony 2.4.

The Table helper ships with three preconfigured table layouts:

* ``TableHelper::LAYOUT_DEFAULT``
Expand Down
7 changes: 0 additions & 7 deletions components/console/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -203,13 +203,6 @@ level. For example::
$output->writeln(...);
}

.. versionadded:: 2.4
The :method:`Symfony\\Component\\Console\\Output\\Output::isQuiet`,
:method:`Symfony\\Component\\Console\\Output\\Output::isVerbose`,
:method:`Symfony\\Component\\Console\\Output\\Output::isVeryVerbose` and
:method:`Symfony\\Component\\Console\\Output\\Output::isDebug`
methods were introduced in Symfony 2.4

There are also more semantic methods you can use to test for each of the
verbosity levels::

Expand Down
4 changes: 0 additions & 4 deletions components/debug/class_loader.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
Debugging a Class Loader
========================

.. versionadded:: 2.4
The ``DebugClassLoader`` of the Debug component was introduced in Symfony 2.4.
Previously, it was located in the ClassLoader component.

The :class:`Symfony\\Component\\Debug\\DebugClassLoader` attempts to
throw more helpful exceptions when a class isn't found by the registered
autoloaders. All autoloaders that implement a ``findFile()`` method are replaced
Expand Down
8 changes: 0 additions & 8 deletions components/dom_crawler.rst
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,6 @@ Both the :method:`Symfony\\Component\\DomCrawler\\Crawler::filterXPath` and
XML namespaces, which can be either automatically discovered or registered
explicitly.

.. versionadded:: 2.4
Auto discovery and explicit registration of namespaces was introduced
in Symfony 2.4.

Consider the XML below:

.. code-block:: xml
Expand Down Expand Up @@ -456,10 +452,6 @@ directly::
Selecting Invalid Choice Values
...............................

.. versionadded:: 2.4
The :method:`Symfony\\Component\\DomCrawler\\Form::disableValidation`
method was introduced in Symfony 2.4.

By default, choice fields (select, radio) have internal validation activated
to prevent you from setting invalid values. If you want to be able to set
invalid values, you can use the ``disableValidation()`` method on either
Expand Down
4 changes: 0 additions & 4 deletions components/event_dispatcher/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -489,10 +489,6 @@ which returns a boolean value::
EventDispatcher aware Events and Listeners
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. versionadded:: 2.4
Since Symfony 2.4, the current event name and the ``EventDispatcher``
itself are passed to the listeners as additional arguments.

The ``EventDispatcher`` always passes the dispatched event, the event's name
and a reference to itself to the listeners. This can be used in some advanced
usages of the ``EventDispatcher`` like dispatching other events in listeners,
Expand Down
3 changes: 0 additions & 3 deletions components/expression_language/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ The ExpressionLanguage Component
evaluate expressions. An expression is a one-liner that returns a value
(mostly, but not limited to, Booleans).

.. versionadded:: 2.4
The ExpressionLanguage component was introduced in Symfony 2.4.

Installation
------------

Expand Down
4 changes: 0 additions & 4 deletions components/filesystem/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@ endpoint for filesystem operations::
echo "An error occurred while creating your directory at ".$e->getPath();
}

.. versionadded:: 2.4
The ``IOExceptionInterface`` and its ``getPath`` method were introduced in
Symfony 2.4. Prior to 2.4, you would catch the ``IOException`` class.

.. note::

Methods :method:`Symfony\\Component\\Filesystem\\Filesystem::mkdir`,
Expand Down
7 changes: 0 additions & 7 deletions components/http_foundation/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,6 @@ for more information about them.
Overriding the Request
~~~~~~~~~~~~~~~~~~~~~~

.. versionadded:: 2.4
The :method:`Symfony\\Component\\HttpFoundation\\Request::setFactory`
method was introduced in Symfony 2.4.

The ``Request`` class should not be overridden as it is a data object that
represents an HTTP message. But when moving from a legacy system, adding
methods or changing some default behavior might help. In that case, register a
Expand Down Expand Up @@ -335,9 +331,6 @@ code, and an array of HTTP headers::
array('content-type' => 'text/html')
);

.. versionadded:: 2.4
Support for HTTP status code constants was introduced in Symfony 2.4.

These information can also be manipulated after the Response object creation::

$response->setContent('Hello World');
Expand Down
4 changes: 0 additions & 4 deletions components/http_kernel/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -679,10 +679,6 @@ argument as follows::
$response = $kernel->handle($request, HttpKernelInterface::SUB_REQUEST);
// do something with this response

.. versionadded:: 2.4
The ``isMasterRequest()`` method was introduced in Symfony 2.4.
Prior, the ``getRequestType()`` method must be used.

This creates another full request-response cycle where this new ``Request`` is
transformed into a ``Response``. The only difference internally is that some
listeners (e.g. security) may only act upon the master request. Each listener
Expand Down
7 changes: 0 additions & 7 deletions components/process.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ output. Alternatively, the :method:`Symfony\\Component\\Process\\Process::getInc
and :method:`Symfony\\Component\\Process\\Process::getIncrementalErrorOutput`
methods returns the new outputs since the last call.

.. versionadded:: 2.4
The ``clearOutput()`` and ``clearErrorOutput()`` methods were introduced in Symfony 2.4.

The :method:`Symfony\\Component\\Process\\Process::clearOutput` method clears
the contents of the output and
:method:`Symfony\\Component\\Process\\Process::clearErrorOutput` clears
Expand Down Expand Up @@ -236,10 +233,6 @@ check regularly::
Process Idle Timeout
--------------------

.. versionadded:: 2.4
The :method:`Symfony\\Component\\Process\\Process::setIdleTimeout` method
was introduced in Symfony 2.4.

In contrast to the timeout of the previous paragraph, the idle timeout only
considers the time since the last output was produced by the process::

Expand Down
3 changes: 0 additions & 3 deletions components/translation/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,6 @@ The Translation component uses Loader classes to load catalogs. You can load
multiple resources for the same locale, which will then be combined into one
catalog.

.. versionadded:: 2.4
The ``JsonFileLoader`` was introduced in Symfony 2.4.

The component comes with some default Loaders and you can create your own
Loader too. The default loaders are:

Expand Down
4 changes: 0 additions & 4 deletions cookbook/console/commands_as_services.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
How to Define Commands as Services
==================================

.. versionadded:: 2.4
Support for registering commands in the service container was introduced in
Symfony 2.4.

By default, Symfony will take a look in the ``Command`` directory of each
bundle and automatically register your commands. If a command extends the
:class:`Symfony\\Bundle\\FrameworkBundle\\Command\\ContainerAwareCommand`,
Expand Down
5 changes: 0 additions & 5 deletions cookbook/console/console_command.rst
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,6 @@ instead of
}
}

.. versionadded:: 2.4
Since Symfony 2.4, the ``CommandTester`` automatically detects the name of
the command to execute. Prior to Symfony 2.4, you need to pass it via the
``command`` key.

.. note::

In the specific case above, the ``name`` parameter and the ``--yell`` option
Expand Down
6 changes: 0 additions & 6 deletions cookbook/expression/expressions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
How to use Expressions in Security, Routing, Services, and Validation
=====================================================================

.. versionadded:: 2.4
The expression functionality was introduced in Symfony 2.4.

In Symfony 2.4, a powerful :doc:`ExpressionLanguage </components/expression_language/introduction>`
component was added to Symfony. This allows us to add highly customized
logic inside configuration.
Expand All @@ -28,9 +25,6 @@ For more information about how to create and work with expressions, see
Security: Complex Access Controls with Expressions
--------------------------------------------------

.. versionadded:: 2.4
The expression functionality was introduced in Symfony 2.4.

In addition to a role like ``ROLE_ADMIN``, the ``isGranted`` method also
accepts an :class:`Symfony\\Component\\ExpressionLanguage\\Expression` object::

Expand Down
4 changes: 0 additions & 4 deletions cookbook/logging/channels_handlers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,6 @@ specified.
Configure Additional Channels without Tagged Services
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. versionadded:: 2.4
This feature was introduced to the MonologBundle 2.4, which was first
packaged with Symfony 2.4.

With MonologBundle 2.4 you can configure additional channels without the
need to tag your services:

Expand Down
3 changes: 0 additions & 3 deletions cookbook/logging/monolog_console.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
How to Configure Monolog to Display Console Messages
====================================================

.. versionadded:: 2.4
This feature was introduced to the MonologBridge in Symfony 2.4.

It is possible to use the console to print messages for certain
:ref:`verbosity levels <verbosity-levels>` using the
:class:`Symfony\\Component\\Console\\Output\\OutputInterface` instance that
Expand Down
4 changes: 0 additions & 4 deletions cookbook/logging/monolog_regex_based_excludes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
How to Configure Monolog to Exclude 404 Errors from the Log
===========================================================

.. versionadded:: 2.4
This feature was introduced to the MonologBundle 2.4, which was first
packaged with Symfony 2.4.

Sometimes your logs become flooded with unwanted 404 HTTP errors, for example,
when an attacker scans your app for some well-known application paths (e.g.
`/phpmyadmin`). When using a ``fingers_crossed`` handler, you can exclude
Expand Down
3 changes: 0 additions & 3 deletions cookbook/security/access_control.rst
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,6 @@ address):
Securing by an Expression
~~~~~~~~~~~~~~~~~~~~~~~~~

.. versionadded:: 2.4
The ``allow_if`` functionality was introduced in Symfony 2.4.

Once an ``access_control`` entry is matched, you can deny access via the
``roles`` key or use more complex logic with an expression in the ``allow_if``
key:
Expand Down
3 changes: 0 additions & 3 deletions cookbook/security/api_key_authentication.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ passed as a query string parameter or via an HTTP header.
The API Key Authenticator
-------------------------

.. versionadded:: 2.4
The ``SimplePreAuthenticatorInterface`` interface was introduced in Symfony 2.4.

Authenticating a user based on the Request information should be done via a
pre-authentication mechanism. The :class:`Symfony\\Component\\Security\\Core\\Authentication\\SimplePreAuthenticatorInterface`
allows you to implement such a scheme really easily.
Expand Down
3 changes: 0 additions & 3 deletions cookbook/security/custom_authentication_provider.rst
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,6 @@ set an authenticated token in the token storage if successful.
}
}
.. versionadded:: 2.4
Support for HTTP status code constants was introduced in Symfony 2.4.

This listener checks the request for the expected ``X-WSSE`` header, matches
the value returned for the expected WSSE information, creates a token using
that information, and passes the token on to the authentication manager. If
Expand Down
3 changes: 0 additions & 3 deletions cookbook/security/custom_password_authenticator.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ Before Symfony 2.6, you had to use the password encoder to authenticate the user
The Password Authenticator
--------------------------

.. versionadded:: 2.4
The ``SimpleFormAuthenticatorInterface`` interface was introduced in Symfony 2.4.

.. versionadded:: 2.6
The ``UserPasswordEncoderInterface`` interface was introduced in Symfony 2.6.

Expand Down
4 changes: 0 additions & 4 deletions cookbook/security/firewall_restriction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,6 @@ firewalls will have the opportunity to be matched for this request.
Restricting by Host
-------------------

.. versionadded:: 2.4
Support for restricting security firewalls to a specific host was introduced in
Symfony 2.4.

If matching against the ``pattern`` only is not enough, the request can also be matched against
``host``. When the configuration option ``host`` is set, the firewall will be restricted to
only initialize if the host from the request matches against the configuration.
Expand Down
7 changes: 0 additions & 7 deletions cookbook/service_container/event_listener.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ event is just one of the core kernel events::
}
}

.. versionadded:: 2.4
Support for HTTP status code constants was introduced in Symfony 2.4.

.. tip::

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

.. versionadded:: 2.4
The ``isMasterRequest()`` method was introduced in Symfony 2.4.
Prior, the ``getRequestType()`` method must be used.

A single page can make several requests (one master request, and then multiple
sub-requests), which is why when working with the ``KernelEvents::REQUEST``
event, you might need to check the type of the request. This can be easily
Expand Down
3 changes: 0 additions & 3 deletions cookbook/session/limit_metadata_writes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
Limit Session Metadata Writes
=============================

.. versionadded:: 2.4
The ability to limit session metadata writes was introduced in Symfony 2.4.

The default behavior of PHP session is to persist the session regardless of
whether the session data has changed or not. In Symfony, each time the session
is accessed, metadata is recorded (session created/last used) which can be used
Expand Down
Loading

0 comments on commit 48835de

Please sign in to comment.