Skip to content

Commit 851c35a

Browse files
committed
[#2344] Backporting some deprecated features which were not reflected yet
1 parent 7e2f8b9 commit 851c35a

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
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>

cookbook/configuration/pdo_session_storage.rst

Lines changed: 1 addition & 1 deletion
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" cookie-lifetime="3600" auto-start="true"/>
5858
</framework:config>
5959
6060
<parameters>

reference/constraints/Valid.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,14 +115,18 @@ an ``Address`` instance in the ``$address`` property.
115115
</property>
116116
<property name="zipCode">
117117
<constraint name="NotBlank" />
118-
<constraint name="MaxLength">5</constraint>
118+
<constraint name="Length">
119+
<option name="max">5</option>
120+
</constraint>
119121
</property>
120122
</class>
121123
122124
<class name="Acme\HelloBundle\Entity\Author">
123125
<property name="firstName">
124126
<constraint name="NotBlank" />
125-
<constraint name="MinLength">4</constraint>
127+
<constraint name="Length">
128+
<option name="min">4</option>
129+
</constraint>
126130
</property>
127131
<property name="lastName">
128132
<constraint name="NotBlank" />

0 commit comments

Comments
 (0)