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

Commitb55dfa6

Browse files
committed
consistent table headlines
1 parent2c190ed commitb55dfa6

File tree

35 files changed

+149
-170
lines changed

35 files changed

+149
-170
lines changed

‎best_practices/templates.rst‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@ But for the templates used in your application, it's much more convenient
3939
to store them in the ``app/Resources/views/`` directory. For starters, this
4040
drastically simplifies their logical names:
4141

42-
================================================== ==================================
43-
Templatesstored insidebundlesTemplatesstored in ``app/``
44-
================================================== ==================================
45-
``AcmeDemoBundle:Default:index.html.twig````default/index.html.twig``
46-
``::layout.html.twig````layout.html.twig``
47-
``AcmeDemoBundle::index.html.twig````index.html.twig``
48-
``AcmeDemoBundle:Default:subdir/index.html.twig````default/subdir/index.html.twig``
49-
``AcmeDemoBundle:Default/subdir:index.html.twig````default/subdir/index.html.twig``
50-
================================================== ==================================
42+
================================================= ==================================
43+
TemplatesStored insideBundles TemplatesStored in ``app/``
44+
================================================= ==================================
45+
``AcmeDemoBundle:Default:index.html.twig`` ``default/index.html.twig``
46+
``::layout.html.twig`` ``layout.html.twig``
47+
``AcmeDemoBundle::index.html.twig`` ``index.html.twig``
48+
``AcmeDemoBundle:Default:subdir/index.html.twig`` ``default/subdir/index.html.twig``
49+
``AcmeDemoBundle:Default/subdir:index.html.twig`` ``default/subdir/index.html.twig``
50+
================================================= ==================================
5151

5252
Another advantage is that centralizing your templates simplifies the work
5353
of your designers. They don't need to look for templates in lots of directories

‎book/routing.rst‎

Lines changed: 28 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ entries? Update the route to have a new ``{page}`` placeholder:
410410
..code-block::php-annotations
411411
412412
// src/AppBundle/Controller/BlogController.php
413-
413+
414414
// ...
415415
416416
/**
@@ -470,7 +470,7 @@ This is done by including it in the ``defaults`` collection:
470470
..code-block::php-annotations
471471
472472
// src/AppBundle/Controller/BlogController.php
473-
473+
474474
// ...
475475
476476
/**
@@ -522,13 +522,13 @@ longer required. The URL ``/blog`` will match this route and the value of
522522
the ``page`` parameter will be set to ``1``. The URL ``/blog/2`` will also
523523
match, giving the ``page`` parameter a value of ``2``. Perfect.
524524

525-
=========== ===============
526-
URLroute parameters
527-
=========== ===============
528-
``/blog`` blog{page} =1
529-
``/blog/1`` blog{page} =1
530-
``/blog/2`` blog{page} =2
531-
=========== ===============
525+
=========== ======== ==================
526+
URLRoute Parameters
527+
=========== ======== ==================
528+
``/blog````blog`` ``{page}`` =``1``
529+
``/blog/1````blog`` ``{page}`` =``1``
530+
``/blog/2````blog`` ``{page}`` =``2``
531+
=========== ======== ==================
532532

533533
..caution::
534534

@@ -555,7 +555,7 @@ Take a quick look at the routes that have been created so far:
555555
..code-block::php-annotations
556556
557557
// src/AppBundle/Controller/BlogController.php
558-
558+
559559
// ...
560560
class BlogController extends Controller
561561
{
@@ -631,13 +631,12 @@ will *never* be matched. Instead, a URL like ``/blog/my-blog-post`` will match
631631
the first route (``blog``) and return a nonsense value of ``my-blog-post``
632632
to the ``{page}`` parameter.
633633

634-
+--------------------+-------+-----------------------+
635-
| URL| route| parameters|
636-
+====================+=======+=======================+
637-
| /blog/2| blog| {page} = 2|
638-
+--------------------+-------+-----------------------+
639-
| /blog/my-blog-post| blog| {page} = my-blog-post|
640-
+--------------------+-------+-----------------------+
634+
====================== ======== ===============================
635+
URL Route Parameters
636+
====================== ======== ===============================
637+
``/blog/2`` ``blog`` ``{page}`` = ``2``
638+
``/blog/my-blog-post`` ``blog`` ``{page}`` = ``"my-blog-post"``
639+
====================== ======== ===============================
641640

642641
The answer to the problem is to add route *requirements*. The routes in this
643642
example would work perfectly if the ``/blog/{page}`` path *only* matched
@@ -710,15 +709,13 @@ is *not* a number).
710709
As a result, a URL like ``/blog/my-blog-post`` will now properly match the
711710
``blog_show`` route.
712711

713-
+----------------------+-----------+-------------------------+
714-
| URL| route| parameters|
715-
+======================+===========+=========================+
716-
| /blog/2| blog| {page} = 2|
717-
+----------------------+-----------+-------------------------+
718-
| /blog/my-blog-post| blog_show| {slug} = my-blog-post|
719-
+----------------------+-----------+-------------------------+
720-
| /blog/2-my-blog-post| blog_show| {slug} = 2-my-blog-post|
721-
+----------------------+-----------+-------------------------+
712+
======================== ============= ===============================
713+
URL Route Parameters
714+
======================== ============= ===============================
715+
``/blog/2`` ``blog`` ``{page}`` = ``2``
716+
``/blog/my-blog-post`` ``blog_show`` ``{slug}`` = ``my-blog-post``
717+
``/blog/2-my-blog-post`` ``blog_show`` ``{slug}`` = ``2-my-blog-post``
718+
======================== ============= ===============================
722719

723720
..sidebar::Earlier Routes always Win
724721

@@ -738,7 +735,7 @@ URL:
738735
..code-block::php-annotations
739736
740737
// src/AppBundle/Controller/MainController.php
741-
738+
742739
// ...
743740
class MainController extends Controller
744741
{
@@ -795,11 +792,11 @@ For incoming requests, the ``{_locale}`` portion of the URL is matched against
795792
the regular expression ``(en|fr)``.
796793

797794
======= ========================
798-
pathparameters
795+
PathParameters
799796
======= ========================
800-
``/`` {_locale} =en
801-
``/en`` {_locale} =en
802-
``/fr`` {_locale} =fr
797+
``/````{_locale}`` =``"en"``
798+
``/en````{_locale}`` =``"en"``
799+
``/fr````{_locale}`` =``"fr"``
803800
``/es`` *won't match this route*
804801
======= ========================
805802

‎components/class_loader/class_map_generator.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ manually. For example, imagine a library with the following directory structure:
2929
These files contain the following classes:
3030

3131
=========================== ================
32-
File Classname
32+
File ClassName
3333
=========================== ================
3434
``library/bar/baz/Boo.php`` ``Acme\Bar\Baz``
3535
--------------------------- ----------------

‎components/form/form_events.rst‎

Lines changed: 44 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,13 @@ The ``FormEvents::PRE_SET_DATA`` event is dispatched at the beginning of the
6161

6262
:ref:`Form Events Information Table<component-form-event-table>`
6363

64-
+-----------------+-----------+
65-
| Data type| Value|
66-
+=================+===========+
67-
| Model data| ``null``|
68-
+-----------------+-----------+
69-
| Normalized data| ``null``|
70-
+-----------------+-----------+
71-
| View data| ``null``|
72-
+-----------------+-----------+
64+
=============== ========
65+
Data Type Value
66+
=============== ========
67+
Model data ``null``
68+
Normalized data ``null``
69+
View data ``null``
70+
=============== ========
7371

7472
..caution::
7573

@@ -98,15 +96,13 @@ the form.
9896

9997
:ref:`Form Events Information Table<component-form-event-table>`
10098

101-
+-----------------+------------------------------------------------------+
102-
| Data type| Value|
103-
+=================+======================================================+
104-
| Model data| Model data injected into ``setData()``|
105-
+-----------------+------------------------------------------------------+
106-
| Normalized data| Model data transformed using a model transformer|
107-
+-----------------+------------------------------------------------------+
108-
| View data| Normalized data transformed using a view transformer|
109-
+-----------------+------------------------------------------------------+
99+
=============== ====================================================
100+
Data Type Value
101+
=============== ====================================================
102+
Model data Model data injected into ``setData()``
103+
Normalized data Model data transformed using a model transformer
104+
View data Normalized data transformed using a view transformer
105+
=============== ====================================================
110106

111107
..sidebar::``FormEvents::POST_SET_DATA`` in the Form component
112108

@@ -140,15 +136,13 @@ It can be used to:
140136

141137
:ref:`Form Events Information Table<component-form-event-table>`
142138

143-
+-----------------+------------------------------------------+
144-
| Data type| Value|
145-
+=================+==========================================+
146-
| Model data| Same as in ``FormEvents::POST_SET_DATA``|
147-
+-----------------+------------------------------------------+
148-
| Normalized data| Same as in ``FormEvents::POST_SET_DATA``|
149-
+-----------------+------------------------------------------+
150-
| View data| Same as in ``FormEvents::POST_SET_DATA``|
151-
+-----------------+------------------------------------------+
139+
=============== ========================================
140+
Data Type Value
141+
=============== ========================================
142+
Model data Same as in ``FormEvents::POST_SET_DATA``
143+
Normalized data Same as in ``FormEvents::POST_SET_DATA``
144+
View data Same as in ``FormEvents::POST_SET_DATA``
145+
=============== ========================================
152146

153147
..sidebar::``FormEvents::PRE_SUBMIT`` in the Form component
154148

@@ -170,15 +164,13 @@ It can be used to change data from the normalized representation of the data.
170164

171165
:ref:`Form Events Information Table<component-form-event-table>`
172166

173-
+-----------------+-------------------------------------------------------------------------------------+
174-
| Data type| Value|
175-
+=================+=====================================================================================+
176-
| Model data| Same as in ``FormEvents::POST_SET_DATA``|
177-
+-----------------+-------------------------------------------------------------------------------------+
178-
| Normalized data| Data from the request reverse-transformed from the request using a view transformer|
179-
+-----------------+-------------------------------------------------------------------------------------+
180-
| View data| Same as in ``FormEvents::POST_SET_DATA``|
181-
+-----------------+-------------------------------------------------------------------------------------+
167+
=============== ===================================================================================
168+
Data Type Value
169+
=============== ===================================================================================
170+
Model data Same as in ``FormEvents::POST_SET_DATA``
171+
Normalized data Data from the request reverse-transformed from the request using a view transformer
172+
View data Same as in ``FormEvents::POST_SET_DATA``
173+
=============== ===================================================================================
182174

183175
..caution::
184176

@@ -202,15 +194,13 @@ It can be used to fetch data after denormalization.
202194

203195
:ref:`Form Events Information Table<component-form-event-table>`
204196

205-
+-----------------+---------------------------------------------------------------+
206-
| Data type| Value|
207-
+=================+===============================================================+
208-
| Model data| Normalized data reverse-transformed using a model transformer|
209-
+-----------------+---------------------------------------------------------------+
210-
| Normalized data| Same as in ``FormEvents::POST_SUBMIT``|
211-
+-----------------+---------------------------------------------------------------+
212-
| View data| Normalized data transformed using a view transformer|
213-
+-----------------+---------------------------------------------------------------+
197+
=============== =============================================================
198+
Data Type Value
199+
=============== =============================================================
200+
Model data Normalized data reverse-transformed using a model transformer
201+
Normalized data Same as in ``FormEvents::POST_SUBMIT``
202+
View data Normalized data transformed using a view transformer
203+
=============== =============================================================
214204

215205
..caution::
216206

@@ -242,19 +232,15 @@ processed.
242232

243233
.. _component-form-event-table:
244234

245-
+------------------------+-------------------------------+------------------+
246-
| Name| ``FormEvents`` Constant| Event's data|
247-
+========================+===============================+==================+
248-
| ``form.pre_set_data``| ``FormEvents::PRE_SET_DATA``| Model data|
249-
+------------------------+-------------------------------+------------------+
250-
| ``form.post_set_data``| ``FormEvents::POST_SET_DATA``| Model data|
251-
+------------------------+-------------------------------+------------------+
252-
| ``form.pre_bind``| ``FormEvents::PRE_SUBMIT``| Request data|
253-
+------------------------+-------------------------------+------------------+
254-
| ``form.bind``| ``FormEvents::SUBMIT``| Normalized data|
255-
+------------------------+-------------------------------+------------------+
256-
| ``form.post_bind``| ``FormEvents::POST_SUBMIT``| View data|
257-
+------------------------+-------------------------------+------------------+
235+
====================== ============================= ===============
236+
Name ``FormEvents`` Constant Event's Data
237+
====================== ============================= ===============
238+
``form.pre_set_data`` ``FormEvents::PRE_SET_DATA`` Model data
239+
``form.post_set_data`` ``FormEvents::POST_SET_DATA`` Model data
240+
``form.pre_bind`` ``FormEvents::PRE_SUBMIT`` Request data
241+
``form.bind`` ``FormEvents::SUBMIT`` Normalized data
242+
``form.post_bind`` ``FormEvents::POST_SUBMIT`` View data
243+
====================== ============================= ===============
258244

259245
..versionadded::2.3
260246
Before Symfony 2.3, ``FormEvents::PRE_SUBMIT``, ``FormEvents::SUBMIT``

‎components/http_kernel/introduction.rst‎

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -578,21 +578,16 @@ each event has their own event object:
578578

579579
.. _component-http-kernel-event-table:
580580

581-
+-------------------+-------------------------------+-------------------------------------------------------------------------------------+
582-
| Name| ``KernelEvents`` Constant| Argument passed to the listener|
583-
+===================+===============================+=====================================================================================+
584-
| kernel.request| ``KernelEvents::REQUEST``|:class:`Symfony\\Component\\HttpKernel\\Event\\GetResponseEvent`|
585-
+-------------------+-------------------------------+-------------------------------------------------------------------------------------+
586-
| kernel.controller| ``KernelEvents::CONTROLLER``|:class:`Symfony\\Component\\HttpKernel\\Event\\FilterControllerEvent`|
587-
+-------------------+-------------------------------+-------------------------------------------------------------------------------------+
588-
| kernel.view| ``KernelEvents::VIEW``|:class:`Symfony\\Component\\HttpKernel\\Event\\GetResponseForControllerResultEvent`|
589-
+-------------------+-------------------------------+-------------------------------------------------------------------------------------+
590-
| kernel.response| ``KernelEvents::RESPONSE``|:class:`Symfony\\Component\\HttpKernel\\Event\\FilterResponseEvent`|
591-
+-------------------+-------------------------------+-------------------------------------------------------------------------------------+
592-
| kernel.terminate| ``KernelEvents::TERMINATE``|:class:`Symfony\\Component\\HttpKernel\\Event\\PostResponseEvent`|
593-
+-------------------+-------------------------------+-------------------------------------------------------------------------------------+
594-
| kernel.exception| ``KernelEvents::EXCEPTION``|:class:`Symfony\\Component\\HttpKernel\\Event\\GetResponseForExceptionEvent`|
595-
+-------------------+-------------------------------+-------------------------------------------------------------------------------------+
581+
================= ============================ ===================================================================================
582+
Name ``KernelEvents`` Constant Argument Passed to the Listener
583+
================= ============================ ===================================================================================
584+
kernel.request ``KernelEvents::REQUEST``:class:`Symfony\\Component\\HttpKernel\\Event\\GetResponseEvent`
585+
kernel.controller ``KernelEvents::CONTROLLER``:class:`Symfony\\Component\\HttpKernel\\Event\\FilterControllerEvent`
586+
kernel.view ``KernelEvents::VIEW``:class:`Symfony\\Component\\HttpKernel\\Event\\GetResponseForControllerResultEvent`
587+
kernel.response ``KernelEvents::RESPONSE``:class:`Symfony\\Component\\HttpKernel\\Event\\FilterResponseEvent`
588+
kernel.terminate ``KernelEvents::TERMINATE``:class:`Symfony\\Component\\HttpKernel\\Event\\PostResponseEvent`
589+
kernel.exception ``KernelEvents::EXCEPTION``:class:`Symfony\\Component\\HttpKernel\\Event\\GetResponseForExceptionEvent`
590+
================= ============================ ===================================================================================
596591

597592
.. _http-kernel-working-example:
598593

‎contributing/documentation/format.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ The previous reST snippet renders as follow:
9292
The current list of supported formats are the following:
9393

9494
=================== ======================================
95-
Markupformat Useit todisplay
95+
MarkupFormat UseIt toDisplay
9696
=================== ======================================
9797
``html`` HTML
9898
``xml`` XML

‎cookbook/security/entity_provider.rst‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -447,11 +447,11 @@ The :class:`Symfony\\Component\\Security\\Core\\User\\AdvancedUserInterface`
447447
interface adds four extra methods to validate the account status:
448448

449449
*:method:`Symfony\\Component\\Security\\Core\\User\\AdvancedUserInterface::isAccountNonExpired`
450-
checks whether the user's account has expired,
450+
checks whether the user's account has expired;
451451
*:method:`Symfony\\Component\\Security\\Core\\User\\AdvancedUserInterface::isAccountNonLocked`
452-
checks whether the user is locked,
452+
checks whether the user is locked;
453453
*:method:`Symfony\\Component\\Security\\Core\\User\\AdvancedUserInterface::isCredentialsNonExpired`
454-
checks whether the user's credentials (password) has expired,
454+
checks whether the user's credentials (password) has expired;
455455
*:method:`Symfony\\Component\\Security\\Core\\User\\AdvancedUserInterface::isEnabled`
456456
checks whether the user is enabled.
457457

‎cookbook/templating/twig_extension.rst‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,12 @@ Now you must let the Service Container know about your newly created Twig Extens
9898
..note::
9999

100100
Keep in mind that Twig Extensions are not lazily loaded. This means that
101-
there's a higher chance that you'll get a **CircularReferenceException**
102-
or a **ScopeWideningInjectionException** if any services
103-
(or your Twig Extension in this case) are dependent on the request service.
104-
For more information take a look at:doc:`/cookbook/service_container/scopes`.
101+
there's a higher chance that you'll get a
102+
:class:`Symfony\\Component\\DependencyInjection\\Exception\\ServiceCircularReferenceException`
103+
or a
104+
:class:`Symfony\\Component\\DependencyInjection\\Exception\\ScopeWideningInjectionException`
105+
if any services (or your Twig Extension in this case) are dependent on
106+
the request service. For more information take a look at:doc:`/cookbook/service_container/scopes`.
105107

106108
Using the custom Extension
107109
--------------------------

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp