Skip to content

Commit 381e578

Browse files
committed
Merge branch 'deprecated' of github.com:fabpot/symfony-docs into fabpot-deprecated
Conflicts: reference/configuration/framework.rst reference/constraints/Max.rst reference/constraints/Min.rst
2 parents 232525f + 934531c commit 381e578

File tree

13 files changed

+24
-563
lines changed

13 files changed

+24
-563
lines changed

book/controller.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ the ``notice`` message:
686686

687687
.. code-block:: html+php
688688

689-
<?php foreach ($view['session']->getFlash('notice') as $message): ?>
689+
<?php foreach ($view['session']->getFlashBag()->get('notice') as $message): ?>
690690
<div class="flash-notice">
691691
<?php echo "<div class='flash-error'>$message</div>" ?>
692692
</div>

components/yaml/introduction.rst

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -134,20 +134,6 @@ string or a file containing YAML. Internally, it calls the
134134
:method:`Symfony\\Component\\Yaml\\Parser::parse` method, but enhances the
135135
error if something goes wrong by adding the filename to the message.
136136

137-
Executing PHP Inside YAML Files
138-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
139-
140-
.. versionadded:: 2.1
141-
The ``Yaml::enablePhpParsing()`` method is new to Symfony 2.1. Prior to 2.1,
142-
PHP was *always* executed when calling the ``parse()`` function.
143-
144-
By default, if you include PHP inside a YAML file, it will not be parsed.
145-
If you do want PHP to be parsed, you must call ``Yaml::enablePhpParsing()``
146-
before parsing the file to activate this mode. If you only want to allow
147-
PHP code for a single YAML file, be sure to disable PHP parsing after parsing
148-
the single file by calling ``Yaml::$enablePhpParsing = false;`` (``$enablePhpParsing``
149-
is a public property).
150-
151137
Writing YAML Files
152138
~~~~~~~~~~~~~~~~~~
153139

cookbook/configuration/pdo_session_storage.rst

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ configuration format of your choice):
5454
5555
<!-- app/config/config.xml -->
5656
<framework:config>
57-
<framework:session handler-id="session.handler.pdo" lifetime="3600" auto-start="true"/>
57+
<framework:session handler-id="session.handler.pdo" session-lifetime="3600" auto-start="true"/>
5858
</framework:config>
5959
6060
<parameters>
@@ -196,16 +196,16 @@ For MSSQL, the statement might look like the following:
196196
.. code-block:: sql
197197
198198
CREATE TABLE [dbo].[session](
199-
[session_id] [nvarchar](255) NOT NULL,
200-
[session_value] [ntext] NOT NULL,
199+
[session_id] [nvarchar](255) NOT NULL,
200+
[session_value] [ntext] NOT NULL,
201201
[session_time] [int] NOT NULL,
202-
PRIMARY KEY CLUSTERED(
203-
[session_id] ASC
204-
) WITH (
205-
PAD_INDEX = OFF,
206-
STATISTICS_NORECOMPUTE = OFF,
207-
IGNORE_DUP_KEY = OFF,
208-
ALLOW_ROW_LOCKS = ON,
209-
ALLOW_PAGE_LOCKS = ON
210-
) ON [PRIMARY]
202+
PRIMARY KEY CLUSTERED(
203+
[session_id] ASC
204+
) WITH (
205+
PAD_INDEX = OFF,
206+
STATISTICS_NORECOMPUTE = OFF,
207+
IGNORE_DUP_KEY = OFF,
208+
ALLOW_ROW_LOCKS = ON,
209+
ALLOW_PAGE_LOCKS = ON
210+
) ON [PRIMARY]
211211
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

cookbook/form/form_customization.rst

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -718,13 +718,9 @@ and customize the ``form_errors`` fragment.
718718
{% block form_errors %}
719719
{% spaceless %}
720720
{% if errors|length > 0 %}
721-
<ul class="error_list">
721+
<ul>
722722
{% for error in errors %}
723-
<li>{{
724-
error.messagePluralization is null
725-
? error.messageTemplate|trans(error.messageParameters, 'validators')
726-
: error.messageTemplate|transchoice(error.messagePluralization, error.messageParameters, 'validators')
727-
}}</li>
723+
<li>{{ error.message }}</li>
728724
{% endfor %}
729725
</ul>
730726
{% endif %}
@@ -735,28 +731,13 @@ and customize the ``form_errors`` fragment.
735731

736732
<!-- form_errors.html.php -->
737733
<?php if ($errors): ?>
738-
<ul class="error_list">
734+
<ul>
739735
<?php foreach ($errors as $error): ?>
740-
<li><?php
741-
if (null === $error->getMessagePluralization()) {
742-
echo $view['translator']->trans(
743-
$error->getMessageTemplate(),
744-
$error->getMessageParameters(),
745-
'validators'
746-
);
747-
} else {
748-
echo $view['translator']->transChoice(
749-
$error->getMessageTemplate(),
750-
$error->getMessagePluralization(),
751-
$error->getMessageParameters(),
752-
'validators'
753-
);
754-
}?></li>
736+
<li><?php echo $error->getMessage() ?></li>
755737
<?php endforeach; ?>
756738
</ul>
757739
<?php endif ?>
758740

759-
760741
.. tip::
761742

762743
See :ref:`cookbook-form-theming-methods` for how to apply this customization.

cookbook/validation/custom_constraint.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,6 @@ The validator class is also simple, and only has one required method: ``validate
7979
The first parameter of the ``addViolation`` call is the error message to
8080
use for that violation.
8181

82-
.. versionadded:: 2.1
83-
The ``isValid`` method was renamed to ``validate`` in Symfony 2.1. The
84-
``setMessage`` method was also deprecated, in favor of calling ``addViolation``
85-
on the context.
86-
8782
Using the new Validator
8883
-----------------------
8984

reference/configuration/framework.rst

Lines changed: 1 addition & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Configuration
1818
* `secret`_
1919
* `ide`_
2020
* `test`_
21-
* `trust_proxy_headers`_
21+
* `trusted_proxies`_
2222
* `form`_
2323
* enabled
2424
* `csrf_protection`_
@@ -119,23 +119,6 @@ see :doc:`/components/http_foundation/trusting_proxies`.
119119
'trusted_proxies' => array('192.0.0.1'),
120120
));
121121
122-
trust_proxy_headers
123-
~~~~~~~~~~~~~~~~~~~
124-
125-
.. caution::
126-
127-
The ``trust_proxy_headers`` option is deprecated and will be removed in
128-
Symfony 2.3. See `trusted_proxies`_ and :doc:`/components/http_foundation/trusting_proxies`
129-
for details on how to properly trust proxy data.
130-
131-
**type**: ``Boolean``
132-
133-
Configures if HTTP headers (like ``HTTP_X_FORWARDED_FOR``, ``X_FORWARDED_PROTO``, and
134-
``X_FORWARDED_HOST``) are trusted as an indication for an SSL connection. By default, it is
135-
set to ``false`` and only SSL_HTTPS connections are indicated as secure.
136-
137-
You should enable this setting if your application is behind a reverse proxy.
138-
139122
.. _reference-framework-form:
140123

141124
form
@@ -150,9 +133,6 @@ session
150133
cookie_lifetime
151134
...............
152135

153-
.. versionadded:: 2.1
154-
This option was formerly known as ``lifetime``
155-
156136
**type**: ``integer`` **default**: ``0``
157137

158138
This determines the lifetime of the session - in seconds. By default it will use
@@ -161,19 +141,13 @@ This determines the lifetime of the session - in seconds. By default it will use
161141
cookie_path
162142
...........
163143

164-
.. versionadded:: 2.1
165-
This option was formerly known as ``path``
166-
167144
**type**: ``string`` **default**: ``/``
168145

169146
This determines the path to set in the session cookie. By default it will use ``/``.
170147

171148
cookie_domain
172149
.............
173150

174-
.. versionadded:: 2.1
175-
This option was formerly known as ``domain``
176-
177151
**type**: ``string`` **default**: ``''``
178152

179153
This determines the domain to set in the session cookie. By default it's blank,
@@ -183,19 +157,13 @@ to the cookie specification.
183157
cookie_secure
184158
.............
185159

186-
.. versionadded:: 2.1
187-
This option was formerly known as ``secure``
188-
189160
**type**: ``Boolean`` **default**: ``false``
190161

191162
This determines whether cookies should only be sent over secure connections.
192163

193164
cookie_httponly
194165
...............
195166

196-
.. versionadded:: 2.1
197-
This option was formerly known as ``httponly``
198-
199167
**type**: ``Boolean`` **default**: ``false``
200168

201169
This determines whether cookies should only accessible through the HTTP protocol.
@@ -393,9 +361,7 @@ Full Default Configuration
393361
.. code-block:: yaml
394362
395363
framework:
396-
charset: ~
397364
secret: ~
398-
trust_proxy_headers: false
399365
trusted_proxies: []
400366
ide: ~
401367
test: ~
@@ -448,8 +414,6 @@ Full Default Configuration
448414
449415
# session configuration
450416
session:
451-
# DEPRECATED! Session starts on demand
452-
auto_start: false
453417
storage_id: session.storage.native
454418
handler_id: session.handler.native_file
455419
name: ~
@@ -463,21 +427,6 @@ Full Default Configuration
463427
gc_maxlifetime: ~
464428
save_path: %kernel.cache_dir%/sessions
465429
466-
# DEPRECATED! Please use: cookie_lifetime
467-
lifetime: ~
468-
469-
# DEPRECATED! Please use: cookie_path
470-
path: ~
471-
472-
# DEPRECATED! Please use: cookie_domain
473-
domain: ~
474-
475-
# DEPRECATED! Please use: cookie_secure
476-
secure: ~
477-
478-
# DEPRECATED! Please use: cookie_httponly
479-
httponly: ~
480-
481430
# serializer configuration
482431
serializer:
483432
enabled: false
@@ -529,9 +478,4 @@ Full Default Configuration
529478
file_cache_dir: %kernel.cache_dir%/annotations
530479
debug: %kernel.debug%
531480
532-
533-
.. versionadded:: 2.1
534-
The ```framework.session.auto_start`` setting has been removed in Symfony2.1,
535-
it will start on demand now.
536-
537481
.. _`protocol-relative`: http://tools.ietf.org/html/rfc3986#section-4.2

reference/constraints.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,11 @@ Validation Constraints Reference
1414
constraints/Type
1515

1616
constraints/Email
17-
constraints/MinLength
18-
constraints/MaxLength
1917
constraints/Length
2018
constraints/Url
2119
constraints/Regex
2220
constraints/Ip
2321

24-
constraints/Max
25-
constraints/Min
2622
constraints/Range
2723

2824
constraints/Date

reference/constraints/Max.rst

Lines changed: 0 additions & 111 deletions
This file was deleted.

0 commit comments

Comments
 (0)