File tree Expand file tree Collapse file tree 6 files changed +13
-11
lines changed Expand file tree Collapse file tree 6 files changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -122,10 +122,10 @@ Extractable Information
122
122
The :class: `Symfony\\ Component\\ PropertyInfo\\ PropertyInfoExtractor `
123
123
class exposes public methods to extract four types of information:
124
124
125
- * :ref: `* List* of properties <property-info-list >`: `getProperties() `
126
- * :ref: `Property * type* <property-info-type >`: `getTypes() `
127
- * :ref: `Property * description* <property-info-description >`: `getShortDescription() ` and `getLongDescription() `
128
- * :ref: `Property * access* details <property-info-access >`: `isReadable() ` and `isWritable() `
125
+ * :ref: `List of properties <property-info-list >`: `getProperties() `
126
+ * :ref: `Property type <property-info-type >`: `getTypes() `
127
+ * :ref: `Property description <property-info-description >`: `getShortDescription() ` and `getLongDescription() `
128
+ * :ref: `Property access details <property-info-access >`: `isReadable() ` and `isWritable() `
129
129
130
130
.. note ::
131
131
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ Imagine you want to translate the string *"Symfony is great"* into French::
12
12
$translator = new Translator('fr_FR');
13
13
$translator->addLoader('array', new ArrayLoader());
14
14
$translator->addResource('array', array(
15
- 'Symfony is great!' => 'J\'aime Symfony!',
15
+ 'Symfony is great!' => 'Symfony est super !',
16
16
), 'fr_FR');
17
17
18
18
var_dump($translator->trans('Symfony is great!'));
Original file line number Diff line number Diff line change @@ -192,7 +192,9 @@ Structure
192
192
* Do not use ``else ``, ``elseif ``, ``break `` after ``if `` and ``case `` conditions
193
193
which return or throw something;
194
194
195
- * Do not use spaces around ``[ `` offset accessor and before ``] `` offset accessor.
195
+ * Do not use spaces around ``[ `` offset accessor and before ``] `` offset accessor;
196
+
197
+ * Add a ``use `` statement for every class that is not part of the global namespace.
196
198
197
199
Naming Conventions
198
200
~~~~~~~~~~~~~~~~~~
Original file line number Diff line number Diff line change @@ -214,7 +214,7 @@ Deployments not Using the ``composer.json`` File
214
214
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
215
215
216
216
Symfony applications provide a ``kernel.project_dir `` parameter and a related
217
- :method: `Symfony\\ Component\\ HttpKernel\\ Kernel\\ Kernel ::getProjectDir> ` method.
217
+ :method: `Symfony\\ Component\\ HttpKernel\\ Kernel::getProjectDir ` method.
218
218
You can use this method to perform operations with file paths relative to your
219
219
project's root directory. The logic to find that project root directory is based
220
220
on the location of the main ``composer.json `` file.
Original file line number Diff line number Diff line change @@ -505,12 +505,12 @@ redirect between them.
505
505
Symfony follows this logic to redirect between URLs with and without trailing
506
506
slashes (but only for ``GET `` and ``HEAD `` requests):
507
507
508
- ---------- ---------------------------------------- ------------------------------------------
508
+ ========== ======================================== ==========================================
509
509
Route path If the requested URL is ``/foo `` If the requested URL is ``/foo/ ``
510
- ---------- ---------------------------------------- ------------------------------------------
510
+ ========== ======================================== ==========================================
511
511
``/foo `` It matches (``200 `` status response) It doesn't match (``404 `` status response)
512
512
``/foo/ `` It makes a ``301 `` redirect to ``/foo/ `` It matches (``200 `` status response)
513
- ---------- ---------------------------------------- ------------------------------------------
513
+ ========== ======================================== ==========================================
514
514
515
515
In summary, adding a trailing slash in the route path is the best way to ensure
516
516
that both URLs work. Read the :doc: `/routing/redirect_trailing_slash ` article to
Original file line number Diff line number Diff line change @@ -383,7 +383,7 @@ This means that each event has access to the following information:
383
383
:method: `Symfony\\ Component\\ Workflow\\ Event\\ Event::getMarking `
384
384
Returns the :class: `Symfony\\ Component\\ Workflow\\ Marking ` of the workflow.
385
385
386
- :method: `Symfony\\ Component\\ Worflow \\ Event\\ Event::getSubject `
386
+ :method: `Symfony\\ Component\\ Workflow \\ Event\\ Event::getSubject `
387
387
Returns the object that dispatches the event.
388
388
389
389
:method: `Symfony\\ Component\\ Workflow\\ Event\\ Event::getTransition `
You can’t perform that action at this time.
0 commit comments