Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b67a059

Browse files
committed
minor symfony#3986 Rebased symfony#3982 - Some minor fixes (WouterJ)
This PR was merged into the 2.3 branch. Discussion ---------- Rebased symfony#3982 - Some minor fixes | Q | A | --- | --- | Doc fix? | yes | New docs? | no | Applies to | all | Fixed tickets | - Replaces symfony#3982 Commits ------- be09679 tried fixing code block rendering f43fa0d comply to dir structure standards 0cd3d89 Reoutlined the standards 3cbf4d9 Fixed invalid nesting
2 parents 4a9e49e + be09679 commit b67a059

File tree

2 files changed

+33
-32
lines changed

2 files changed

+33
-32
lines changed

contributing/documentation/standards.rst

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -81,25 +81,6 @@ Configuration examples should show all supported formats using
8181
* **Validation**: YAML, Annotations, XML, PHP
8282
* **Doctrine Mapping**: Annotations, YAML, XML, PHP
8383

84-
Files and Directories
85-
~~~~~~~~~~~~~~~~~~~~~
86-
87-
* When referencing directories, always add a trailing slash to avoid confusions
88-
with regular files (e.g. *"execute the ``console`` script located at the ``app/``
89-
directory"*).
90-
* When referencing file extensions explicitly, you should include a leading dot
91-
for every extension (e.g. "*XML files use the ``.xml`` extension*").
92-
* When you list a Symfony file/directory hierarchy, use ``your-project/`` as the
93-
top level directory. E.g.
94-
95-
.. code-block:: text
96-
97-
your-project/
98-
├─ app/
99-
├─ src/
100-
├─ vendor/
101-
└─ ...
102-
10384
Example
10485
~~~~~~~
10586

@@ -133,6 +114,25 @@ Example
133114
In YAML you should put a space after ``{`` and before ``}`` (e.g. ``{ _controller: ... }``),
134115
but this should not be done in Twig (e.g. ``{'hello' : 'value'}``).
135116

117+
Files and Directories
118+
---------------------
119+
120+
* When referencing directories, always add a trailing slash to avoid confusions
121+
with regular files (e.g. "execute the ``console`` script located at the ``app/``
122+
directory").
123+
* When referencing file extensions explicitly, you should include a leading dot
124+
for every extension (e.g. "XML files use the ``.xml`` extension").
125+
* When you list a Symfony file/directory hierarchy, use ``your-project/`` as the
126+
top level directory. E.g.
127+
128+
.. code-block:: text
129+
130+
your-project/
131+
├─ app/
132+
├─ src/
133+
├─ vendor/
134+
└─ ...
135+
136136
Language Standards
137137
------------------
138138

cookbook/configuration/override_dir_structure.rst

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,19 @@ directory structure is:
1010

1111
.. code-block:: text
1212
13-
app/
14-
cache/
15-
config/
16-
logs/
17-
...
18-
src/
19-
...
20-
vendor/
21-
...
22-
web/
23-
app.php
24-
...
13+
your-project/
14+
├─ app/
15+
│ ├─ cache/
16+
│ ├─ config/
17+
│ ├─ logs/
18+
│ └─ ...
19+
├─ src/
20+
│ └─ ...
21+
├─ vendor/
22+
│ └─ ...
23+
└─ web/
24+
├─ app.php
25+
└─ ...
2526
2627
.. _override-cache-dir:
2728

@@ -94,7 +95,7 @@ may need to modify the paths inside these files::
9495
Since Symfony 2.1 (in which Composer is introduced), you also need to change
9596
the ``extra.symfony-web-dir`` option in the ``composer.json`` file:
9697

97-
.. code-block:: json
98+
.. code-block:: javascript
9899
99100
{
100101
...

0 commit comments

Comments
 (0)