Skip to content

Commit d2f0955

Browse files
committed
bug #8788 Remove some wrong uses of the app/ dir (javiereguiluz)
This PR was merged into the 4.0 branch. Discussion ---------- Remove some wrong uses of the app/ dir Commits ------- b2426d4 Remove some wrong uses of the app/ dir
2 parents 2afa92b + b2426d4 commit d2f0955

30 files changed

+55
-56
lines changed

_includes/service_container/_my_mailer.rst.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
.. code-block:: xml
1212

13-
<!-- app/config/services.xml -->
13+
<!-- config/services.xml -->
1414
<?xml version="1.0" encoding="UTF-8" ?>
1515
<container xmlns="http://symfony.com/schema/dic/services"
1616
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

contributing/documentation/standards.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ Files and Directories
132132
---------------------
133133

134134
* When referencing directories, always add a trailing slash to avoid confusions
135-
with regular files (e.g. "execute the ``console`` script located at the ``app/``
135+
with regular files (e.g. "execute the ``console`` script located at the ``bin/``
136136
directory").
137137
* When referencing file extensions explicitly, you should include a leading dot
138138
for every extension (e.g. "XML files use the ``.xml`` extension").

controller/upload_file.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ Now, register this class as a Doctrine listener:
386386
387387
.. code-block:: xml
388388
389-
<!-- app/config/config.xml -->
389+
<!-- config/services.xml -->
390390
<?xml version="1.0" encoding="UTF-8" ?>
391391
<container xmlns="http://symfony.com/schema/dic/services"
392392
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

form/form_collections.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ great, your user can't actually add any new tags yet.
257257
rendering the form in the template if you render the whole form at
258258
once (e.g ``form_widget(form)``). To fix this you can set this directive
259259
to a higher value (either via a ``php.ini`` file or via :phpfunction:`ini_set`,
260-
for example in ``app/autoload.php``) or render each form field by hand
260+
for example in ``public/index.php``) or render each form field by hand
261261
using ``form_row()``.
262262

263263
.. _form-collections-new-prototype:

reference/configuration/doctrine.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ The following block shows all possible configuration keys:
305305
# the DBAL driverOptions option
306306
options:
307307
foo: bar
308-
path: '%kernel.project_dir%/app/data/data.sqlite'
308+
path: '%kernel.project_dir%/var/data/data.sqlite'
309309
memory: true
310310
unix_socket: /tmp/mysql.sock
311311
# the DBAL wrapperClass option

reference/configuration/security.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ Using the BCrypt Password Encoder
540540
541541
.. code-block:: xml
542542
543-
<!-- app/config/security.xml -->
543+
<!-- config/packages/security.xml -->
544544
<?xml version="1.0" charset="UTF-8" ?>
545545
<srv:container xmlns="http://symfony.com/schema/dic/security"
546546
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

reference/dic_tags.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -870,8 +870,7 @@ The ``alias`` option is required and very important: it defines the file
870870
"suffix" that will be used for the resource files that use this loader.
871871
For example, suppose you have some custom ``bin`` format that you need to
872872
load. If you have a ``bin`` file that contains French translations for
873-
the ``messages`` domain, then you might have a file
874-
``app/Resources/translations/messages.fr.bin``.
873+
the ``messages`` domain, then you might have a file ``translations/messages.fr.bin``.
875874

876875
When Symfony tries to load the ``bin`` file, it passes the path to your
877876
custom loader as the ``$resource`` argument. You can then perform any logic

security/access_control.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Take the following ``access_control`` entries as an example:
6363
6464
.. code-block:: php
6565
66-
// app/config/security.php
66+
// config/packages/security.php
6767
$container->loadFromExtension('security', array(
6868
// ...
6969
'access_control' => array(
@@ -202,7 +202,7 @@ pattern so that it is only accessible by requests from the local server itself:
202202
203203
.. code-block:: php
204204
205-
// app/config/security.php
205+
// config/packages/security.php
206206
$container->loadFromExtension('security', array(
207207
// ...
208208
'access_control' => array(
@@ -324,7 +324,7 @@ the user will be redirected to ``https``:
324324
325325
.. code-block:: php
326326
327-
// app/config/security.php
327+
// config/packages/security.php
328328
$container->loadFromExtension('security', array(
329329
'access_control' => array(
330330
array(

security/access_denied_handler.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ configure it under your firewall:
5757
5858
.. code-block:: php
5959
60-
// app/config/security.php
60+
// config/packages/security.php
6161
use App\Security\AccessDeniedHandler;
6262
6363
$container->loadFromExtension('security', array(

security/api_key_authentication.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ and ``provider`` keys:
334334
335335
.. code-block:: php
336336
337-
// app/config/security.php
337+
// config/packages/security.php
338338
339339
// ...
340340
use App\Security\ApiKeyAuthenticator;
@@ -387,7 +387,7 @@ If you have defined ``access_control``, make sure to add a new entry:
387387
388388
.. code-block:: php
389389
390-
// app/config/security.php
390+
// config/packages/security.php
391391
$container->loadFromExtension('security', array(
392392
'access_control' => array(
393393
array(
@@ -455,7 +455,7 @@ configuration or set it to ``false``:
455455
456456
.. code-block:: php
457457
458-
// app/config/security.php
458+
// config/packages/security.php
459459
460460
// ..
461461
$container->loadFromExtension('security', array(

0 commit comments

Comments
 (0)