File tree Expand file tree Collapse file tree 4 files changed +11
-9
lines changed Expand file tree Collapse file tree 4 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -122,10 +122,10 @@ Extractable Information
122122The :class: `Symfony\\ Component\\ PropertyInfo\\ PropertyInfoExtractor `
123123class exposes public methods to extract four types of information:
124124
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() `
129129
130130.. note ::
131131
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::
1212 $translator = new Translator('fr_FR');
1313 $translator->addLoader('array', new ArrayLoader());
1414 $translator->addResource('array', array(
15- 'Symfony is great!' => 'J\'aime Symfony!',
15+ 'Symfony is great!' => 'Symfony est super !',
1616 ), 'fr_FR');
1717
1818 var_dump($translator->trans('Symfony is great!'));
Original file line number Diff line number Diff line change @@ -192,7 +192,9 @@ Structure
192192* Do not use ``else ``, ``elseif ``, ``break `` after ``if `` and ``case `` conditions
193193 which return or throw something;
194194
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.
196198
197199Naming Conventions
198200~~~~~~~~~~~~~~~~~~
Original file line number Diff line number Diff line change @@ -506,12 +506,12 @@ redirect between them.
506506Symfony follows this logic to redirect between URLs with and without trailing
507507slashes (but only for ``GET `` and ``HEAD `` requests):
508508
509- ---------- ---------------------------------------- ------------------------------------------
509+ ========== ======================================== ==========================================
510510Route path If the requested URL is ``/foo `` If the requested URL is ``/foo/ ``
511- ---------- ---------------------------------------- ------------------------------------------
511+ ========== ======================================== ==========================================
512512``/foo `` It matches (``200 `` status response) It doesn't match (``404 `` status response)
513513``/foo/ `` It makes a ``301 `` redirect to ``/foo/ `` It matches (``200 `` status response)
514- ---------- ---------------------------------------- ------------------------------------------
514+ ========== ======================================== ==========================================
515515
516516In summary, adding a trailing slash in the route path is the best way to ensure
517517that both URLs work. Read the :doc: `/routing/redirect_trailing_slash ` article to
You can’t perform that action at this time.
0 commit comments