|
4 | 4 | How to override Symfony's Default Directory Structure
|
5 | 5 | =====================================================
|
6 | 6 |
|
7 |
| -Symfony automatically ships with a default directory structure. You can |
8 |
| -easily override this directory structure to create your own. The default |
| 7 | +Symfony automatically ships with a default directory structure. You can |
| 8 | +easily override this directory structure to create your own. The default |
9 | 9 | directory structure is:
|
10 | 10 |
|
11 | 11 | .. code-block:: text
|
@@ -26,7 +26,7 @@ directory structure is:
|
26 | 26 | Override the ``cache`` directory
|
27 | 27 | --------------------------------
|
28 | 28 |
|
29 |
| -You can override the cache directory by overriding the ``getCacheDir`` method |
| 29 | +You can override the cache directory by overriding the ``getCacheDir`` method |
30 | 30 | in the ``AppKernel`` class of you application::
|
31 | 31 |
|
32 | 32 | // app/AppKernel.php
|
@@ -43,7 +43,7 @@ in the ``AppKernel`` class of you application::
|
43 | 43 | }
|
44 | 44 |
|
45 | 45 | ``$this->rootDir`` is the absolute path to the ``app`` directory and ``$this->environment``
|
46 |
| -is the current environment (i.e. ``dev``). In this case we have changed |
| 46 | +is the current environment (i.e. ``dev``). In this case you have changed |
47 | 47 | the location of the cache directory to ``app/{environment}/cache``.
|
48 | 48 |
|
49 | 49 | .. caution::
|
@@ -56,8 +56,8 @@ the location of the cache directory to ``app/{environment}/cache``.
|
56 | 56 | Override the ``logs`` directory
|
57 | 57 | -------------------------------
|
58 | 58 |
|
59 |
| -Overriding the ``logs`` directory is the same as overriding the ``cache`` |
60 |
| -directory, the only difference is that you need to override the ``getLogDir`` |
| 59 | +Overriding the ``logs`` directory is the same as overriding the ``cache`` |
| 60 | +directory, the only difference is that you need to override the ``getLogDir`` |
61 | 61 | method::
|
62 | 62 |
|
63 | 63 | // app/AppKernel.php
|
@@ -73,7 +73,7 @@ method::
|
73 | 73 | }
|
74 | 74 | }
|
75 | 75 |
|
76 |
| -Here we have changed the location of the directory to ``app/{environment}/logs``. |
| 76 | +Here you have changed the location of the directory to ``app/{environment}/logs``. |
77 | 77 |
|
78 | 78 | Override the ``web`` directory
|
79 | 79 | ------------------------------
|
@@ -98,7 +98,7 @@ may need to modify the paths inside these files::
|
98 | 98 |
|
99 | 99 | .. note::
|
100 | 100 |
|
101 |
| -If you use the AsseticBundle you need to configure this, so it can use |
| 101 | +If you use the AsseticBundle you need to configure this, so it can use |
102 | 102 | the correct ``web`` directory:
|
103 | 103 |
|
104 | 104 | .. code-block:: yaml
|
@@ -110,7 +110,7 @@ may need to modify the paths inside these files::
|
110 | 110 | # ...
|
111 | 111 | read_from: "%kernel.root_dir%/../../public_html"
|
112 | 112 |
|
113 |
| - Now you just need to dump the assets again and your application should |
| 113 | + Now you just need to dump the assets again and your application should |
114 | 114 | work:
|
115 | 115 |
|
116 | 116 | .. code-block:: bash
|
|
0 commit comments