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

Commit62af2ca

Browse files
committed
Merge branch '2.7' into 2.8
* 2.7: minor#7613 Twig Extensions Reference minor brush-up (mpdude) Update Title in controller.rst Update scheme.rst Update requirements.rst [#7845] minor tweaks Update translation_domain.rst.inc Update page_creation.rst to correct hidden colon Update forms.rst Minor reword Update deployment.rst KernelTestCase::createKernel() is static, $this->createKernel() -> static::createKernel() Better explain how to enable the validation component and its annotations Fix the link to ConEmu (it is now hosted on GitHub) Add annotation examples to match a route based on the host Minor reword to improve readability Minor reword and reformatting Add security stateless tip typo
2 parentsa5ea888 +2542b36 commit62af2ca

File tree

15 files changed

+233
-35
lines changed

15 files changed

+233
-35
lines changed

‎console.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ you can extend your test from
273273
{
274274
public function testExecute()
275275
{
276-
$kernel =$this->createKernel();
276+
$kernel =static::createKernel();
277277
$kernel->boot();
278278

279279
$application = new Application($kernel);

‎contributing/code/tests.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@ what's going on and if the tests are broken because of the new code.
5555
to see colored test results.
5656

5757
.. _Cmder:http://cmder.net/
58-
.. _ConEmu:https://code.google.com/p/conemu-maximus5/
58+
.. _ConEmu:https://conemu.github.io/
5959
.. _ANSICON:https://github.com/adoxa/ansicon/releases
6060
.. _Mintty:https://mintty.github.io/

‎controller.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ The Symfony templating system and Twig are explained more in the
237237

238238
.. _controller-accessing-services:
239239

240-
Accessingother Services
240+
AccessingOther Services
241241
~~~~~~~~~~~~~~~~~~~~~~~~
242242

243243
Symfony comes packed with a lot of useful objects, called *services*. These

‎deployment.rst‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ specifically tailored to the requirements of Symfony.
8080
`Capistrano`_ with `Symfony plugin`_
8181
`Capistrano`_ is a remote server automation and deployment tool written in Ruby.
8282
`Symfony plugin`_ is a plugin to ease Symfony related tasks, inspired by `Capifony`_
83-
(which works only with Capistrano 2 )
83+
(which works only with Capistrano 2).
8484

8585
`sf2debpkg`_
8686
Helps you build a native Debian package for your Symfony project.
@@ -181,12 +181,12 @@ setup:
181181
* Pushing assets to a CDN
182182
* ...
183183

184-
Application Lifecycle: Continuous Integration, QA, etc
185-
------------------------------------------------------
184+
Application Lifecycle: Continuous Integration, QA, etc.
185+
-------------------------------------------------------
186186

187187
While this entry covers the technical details of deploying, the full lifecycle
188-
of taking code from development up to production may havea lotmore steps
189-
(thinkdeploying to staging, QA (Quality Assurance), running tests, etc).
188+
of taking code from development up to production may have more steps:
189+
deploying to staging, QA (Quality Assurance), running tests, etc.
190190

191191
The use of staging, testing, QA, continuous integration, database migrations
192192
and the capability to roll back in case of failure are all strongly advised. There

‎forms.rst‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ to do with Symfony or any other library. It's quite simply a normal PHP object
6161
that directly solves a problem inside *your* application (i.e. the need to
6262
represent a task in your application). Of course, by the end of this article,
6363
you'll be able to submit data to a ``Task`` instance (via an HTML form), validate
64-
its data, and persist it to the database.
64+
its data and persist it to the database.
6565

6666
..index::
6767
single: Forms; Create a form in a controller
@@ -116,7 +116,7 @@ from inside a controller::
116116

117117
Creating a form requires relatively little code because Symfony form objects
118118
are built with a "form builder". The form builder's purpose is to allow you
119-
to write simple form "recipes", and have it do all the heavy-lifting of actually
119+
to write simple form "recipes" and have it do all the heavy-lifting of actually
120120
building the form.
121121

122122
In this example, you've added two fields to your form - ``task`` and ``dueDate`` -
@@ -278,7 +278,7 @@ your controller::
278278
to the ``submit()`` method - a strategy which is deprecated and will be
279279
removed in Symfony 3.0. For details on that method, see:ref:`form-submit-request`.
280280

281-
This controller follows a common pattern for handling forms, and has three
281+
This controller follows a common pattern for handling forms and has three
282282
possible paths:
283283

284284
#. When initially loading the page in a browser, the form is created and

‎introduction/from_flat_php_to_symfony2.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ on the requested URI::
370370
echo '<html><body><h1>Page Not Found</h1></body></html>';
371371
}
372372

373-
For organization, both controllers (formerly ``index.php`` and ``show.php``)
373+
For organization, both controllers (formerly ``/index.php`` and ``/index.php/show``)
374374
are now PHP functions and each has been moved into a separate file named ``controllers.php``::
375375

376376
// controllers.php

‎page_creation.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ to creating a page?
7979
in its own section, including how to make *variable* URLs;
8080

8181
#. *Create a controller*: The method below the route - ``numberAction()`` - is called
82-
the *controller*: this is a function where *you* build the page and ultimately
82+
the *controller*. This is a function where *you* build the page and ultimately
8383
return a ``Response`` object. You'll learn more about:doc:`controllers</controller>`
8484
in their own section, including how to return JSON responses.
8585

‎reference/configuration/security.rst‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -661,6 +661,13 @@ multiple firewalls, the "context" could actually be shared:
661661
),
662662
));
663663
664+
..note::
665+
666+
The firewall context key is stored in session, so every firewall using it
667+
must set its ``stateless`` option to ``false``. Otherwise, the context is
668+
ignored and you won't be able to authenticate on multiple firewalls at the
669+
same time.
670+
664671
HTTP-Digest Authentication
665672
--------------------------
666673

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
translation_domain
22
~~~~~~~~~~~~~~~~~~
33

4-
**type**: ``string``**default**: ``messages``
4+
**type**: ``string``, ``null``or ``false``**default**: ``null``
55

6-
Thisis the translation domain that will be usedfor any labelsor options
7-
that are renderedfor this field.
6+
Thisis the translation domain that will be usedfor anylabelor option
7+
thatis renderedfor this field. Use ``null``to reuse the translation domain
8+
of the parent form (or the default domainof the translatorfor the root
9+
form). Use ``false``to disable translations.

‎reference/twig_reference.rst‎

Lines changed: 30 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,32 @@ Symfony Twig Extensions
77
=======================
88

99
Twig is the default template engine for Symfony. By itself, it already contains
10-
a lot of built-in functions, filters, tags and tests (learn more about them
11-
from the `Twig Reference`_).
10+
a lot of built-in functions, filters, tags and tests. You canlearn more about
11+
themfrom the `Twig Reference`_.
1212

13-
Symfony addscustom extensions on top of Twig to integrate some components
14-
into the Twig templates. The following sections describe the custom
15-
:ref:`functions<reference-twig-functions>`,:ref:`filters<reference-twig-filters>`,
16-
:ref:`tags<reference-twig-tags>` and:ref:`tests<reference-twig-tests>`
17-
that are available when using the Symfony Core Framework.
13+
TheSymfonyframeworkaddsquite a few extra:ref:`functions<reference-twig-functions>`,
14+
:ref:`filters<reference-twig-filters>`,:ref:`tags<reference-twig-tags>`
15+
and:ref:`tests<reference-twig-tests>` to seamlessly integrate the
16+
various Symfony components with Twig templates. The following sections
17+
describe these extra features.
1818

19-
There may also be tags in bundles you use that aren't listed here.
19+
..tip::
20+
21+
  Technically, most of the extensions live in the `Twig Bridge`_. That code
22+
might give you some ideas when you need to write your own Twig extension
23+
as described in:doc:`/templating/twig_extension`.
24+
25+
..note::
26+
27+
This reference only covers the Twig extensions provided by the Symfony
28+
framework. You are probably using some other bundles as well, and
29+
those might come with their own extensions not covered here.
30+
31+
..tip::
32+
33+
  The `Twig Extensions repository`_ contains some additional Twig extensions
34+
that do not belong to the Twig core, so you might want to have a look at
35+
the `Twig Extensions documentation`_.
2036

2137
.. _reference-twig-functions:
2238

@@ -756,8 +772,11 @@ Symfony Standard Edition Extensions
756772
The Symfony Standard Edition adds some bundles to the Symfony Core Framework.
757773
Those bundles can have other Twig extensions:
758774

759-
* **Twig Extensions** includes some interesting extensions that do not belong
760-
to the Twig core. You can read more in `the official Twig Extensions documentation`_.
775+
* **Assetic** adds the ``{% stylesheets %}``, ``{% javascripts %}`` and
776+
``{% image %}`` tags. You can read more about them in
777+
:doc:`the Assetic Documentation</assetic/asset_management>`.
761778

762779
.. _`Twig Reference`:http://twig.sensiolabs.org/documentation#reference
763-
.. _`the official Twig Extensions documentation`:http://twig-extensions.readthedocs.io/
780+
.. _`Twig Extensions repository`:https://github.com/twigphp/Twig-extensions
781+
.. _`Twig Extensions documentation`:http://twig-extensions.readthedocs.io/en/latest/
782+
.. _`Twig Bridge`:https://github.com/symfony/symfony/tree/master/src/Symfony/Bridge/Twig/Extension

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp