Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3ab53a6

Browse files
committed
Fixed some of the comments
1 parentc6ff013 commit3ab53a6

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

‎book/http_cache.rst‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ To see a simple implementation, generate the ETag as the md5 of the content::
588588
{
589589
public function homepageAction(Request $request)
590590
{
591-
$response = $this->render('homepage.html.twig');
591+
$response = $this->render('static/homepage.html.twig');
592592
$response->setETag(md5($response->getContent()));
593593
$response->setPublic(); // make sure the response is public/cacheable
594594
$response->isNotModified($request);
@@ -1019,7 +1019,6 @@ First, to use ESI, be sure to enable it in your application configuration:
10191019
http://symfony.com/schema/dic/services/services-1.0.xsd
10201020
http://symfony.com/schema/dic/symfony
10211021
http://symfony.com/schema/dic/symfony/symfony-1.0.xsd">
1022-
">
10231022
10241023
<framework:config>
10251024
<!-- ...-->
@@ -1048,7 +1047,7 @@ independent of the rest of the page.
10481047
{
10491048
public function aboutAction()
10501049
{
1051-
$response = $this->render('about.html.twig');
1050+
$response = $this->render('static/about.html.twig');
10521051
// set the shared max age - which also marks the response as public
10531052
$response->setSharedMaxAge(600);
10541053
@@ -1068,7 +1067,7 @@ matter), Symfony uses the standard ``render`` helper to configure ESI tags:
10681067

10691068
..code-block::jinja
10701069
1071-
{# app/Resources/views/about.html.twig #}
1070+
{# app/Resources/views/static/about.html.twig #}
10721071
10731072
{# you can use a controller reference #}
10741073
{{ render_esi(controller('AppBundle:News:latest', { 'maxPerPage': 5 })) }}
@@ -1078,7 +1077,7 @@ matter), Symfony uses the standard ``render`` helper to configure ESI tags:
10781077
10791078
..code-block::html+php
10801079

1081-
<!-- app/Resources/views/about.html.php -->
1080+
<!-- app/Resources/views/static/about.html.php -->
10821081

10831082
// you can use a controller reference
10841083
use Symfony\Component\HttpKernel\Controller\ControllerReference;

‎book/testing.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ unit tests. Suppose, for example, that you have an *incredibly* simple class
5454
called ``Calculator`` in the ``Util/`` directory of the app bundle::
5555

5656
// src/AppBundle/Util/Calculator.php
57-
namespace AppBundle\Utility;
57+
namespace AppBundle\Util;
5858

5959
class Calculator
6060
{

‎book/validation.rst‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ class to have at least 3 characters.
539539
{
540540
/**
541541
* @Assert\NotBlank()
542-
* @Assert\Length(min="3")
542+
* @Assert\Length(min=3)
543543
*/
544544
private $firstName;
545545
}
@@ -823,7 +823,7 @@ user registers and when a user updates their contact information later:
823823
'groups' => array('registration'),
824824
)));
825825
826-
$metadata->addPropertyConstraint('city', Assert\Length(array(
826+
$metadata->addPropertyConstraint('city',newAssert\Length(array(
827827
"min" => 3,
828828
)));
829829
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp