Skip to content

Commit 6853f61

Browse files
committed
Some manual tweaks to the automated migrations
1 parent 9e5cd17 commit 6853f61

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+232
-233
lines changed

bundles/extension.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ Other available loaders are the ``YamlFileLoader``, ``PhpFileLoader`` and
116116
.. caution::
117117

118118
If you removed the default file with service definitions (i.e.
119-
``app/config/services.yaml``), make sure to also remove it from the
119+
``config/services.yaml``), make sure to also remove it from the
120120
``imports`` key in ``app/config/config.yml``.
121121

122122
Using Configuration to Change the Services

bundles/override.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Routing
2626

2727
Routing is never automatically imported in Symfony. If you want to include
2828
the routes from any bundle, then they must be manually imported from somewhere
29-
in your application (e.g. ``app/config/routes.yaml``).
29+
in your application (e.g. ``config/routes.yml``).
3030

3131
The easiest way to "override" a bundle's routing is to never import it at
3232
all. Instead of importing a third-party bundle's routing, simply copy

console.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,8 @@ useful one is the :class:`Symfony\\Component\\Console\\Tester\\CommandTester`
226226
class. It uses special input and output classes to ease testing without a real
227227
console::
228228

229-
// tests/AppBundle/Command/CreateUserCommandTest.php
230-
namespace Tests\App\Command;
229+
// tests/Command/CreateUserCommandTest.php
230+
namespace App\Tests\Command;
231231

232232
use App\Command\CreateUserCommand;
233233
use Symfony\Bundle\FrameworkBundle\Console\Application;

controller.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ controller's service config:
282282

283283
.. code-block:: yaml
284284
285-
# app/config/services.yaml
285+
# config/services.yaml
286286
services:
287287
# ...
288288
@@ -299,7 +299,7 @@ controller's service config:
299299
300300
.. code-block:: xml
301301
302-
<!-- app/config/services.xml -->
302+
<!-- config/services.xml -->
303303
<?xml version="1.0" encoding="UTF-8" ?>
304304
<container xmlns="http://symfony.com/schema/dic/services"
305305
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
@@ -323,7 +323,7 @@ controller's service config:
323323
324324
.. code-block:: php
325325
326-
// app/config/services.php
326+
// config/services.php
327327
use App\Controller\LuckyController;
328328
329329
$container->register(LuckyController::class)

controller/argument_value_resolver.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ and adding a priority.
148148

149149
.. code-block:: yaml
150150
151-
# app/config/services.yaml
151+
# config/services.yaml
152152
services:
153153
_defaults:
154154
# ... be sure autowiring is enabled
@@ -161,7 +161,7 @@ and adding a priority.
161161
162162
.. code-block:: xml
163163
164-
<!-- app/config/services.xml -->
164+
<!-- config/services.xml -->
165165
<?xml version="1.0" encoding="UTF-8" ?>
166166
<container xmlns="http://symfony.com/schema/dic/services"
167167
xmlns:xsi="http://www.w3.org/2001/XMLSchema-Instance"
@@ -181,7 +181,7 @@ and adding a priority.
181181
182182
.. code-block:: php
183183
184-
// app/config/services.php
184+
// config/services.php
185185
use App\ArgumentResolver\UserValueResolver;
186186
187187
$container->autowire(UserValueResolver::class)

controller/error_pages.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ In that case, you might want to override one or both of the ``showAction()`` and
268268

269269
.. code-block:: yaml
270270
271-
# app/config/services.yaml
271+
# config/services.yaml
272272
services:
273273
_defaults:
274274
# ... be sure autowiring is enabled
@@ -282,7 +282,7 @@ In that case, you might want to override one or both of the ``showAction()`` and
282282
283283
.. code-block:: xml
284284
285-
<!-- app/config/services.xml -->
285+
<!-- config/services.xml -->
286286
<?xml version="1.0" encoding="UTF-8" ?>
287287
<container xmlns="http://symfony.com/schema/dic/services"
288288
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
@@ -303,7 +303,7 @@ In that case, you might want to override one or both of the ``showAction()`` and
303303
304304
.. code-block:: php
305305
306-
// app/config/services.php
306+
// config/services.php
307307
use App\Controller\CustomExceptionController;
308308
309309
$container->autowire(CustomExceptionController::class)

controller/service.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ syntax:
5151
5252
.. code-block:: xml
5353
54-
<!-- app/config/routing.xml -->
54+
<!-- config/routes.xml -->
5555
<?xml version="1.0" encoding="UTF-8" ?>
5656
<routes xmlns="http://symfony.com/schema/routing"
5757
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
@@ -66,7 +66,7 @@ syntax:
6666
6767
.. code-block:: php
6868
69-
// app/config/routing.php
69+
// config/routes.php
7070
$collection->add('hello', new Route('/hello', array(
7171
'_controller' => 'app.hello_controller:indexAction',
7272
)));

controller/upload_file.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ Then, define a service for this class:
256256

257257
.. code-block:: yaml
258258
259-
# app/config/services.yaml
259+
# config/services.yaml
260260
services:
261261
# ...
262262
@@ -266,7 +266,7 @@ Then, define a service for this class:
266266
267267
.. code-block:: xml
268268
269-
<!-- app/config/services.xml -->
269+
<!-- config/services.xml -->
270270
<?xml version="1.0" encoding="UTF-8" ?>
271271
<container xmlns="http://symfony.com/schema/dic/services"
272272
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
@@ -281,7 +281,7 @@ Then, define a service for this class:
281281
282282
.. code-block:: php
283283
284-
// app/config/services.php
284+
// config/services.php
285285
use App\Service\FileUploader;
286286
287287
$container->autowire(FileUploader::class)
@@ -372,7 +372,7 @@ Now, register this class as a Doctrine listener:
372372

373373
.. code-block:: yaml
374374
375-
# app/config/services.yaml
375+
# config/services.yaml
376376
services:
377377
_defaults:
378378
# ... be sure autowiring is enabled
@@ -405,7 +405,7 @@ Now, register this class as a Doctrine listener:
405405
406406
.. code-block:: php
407407
408-
// app/config/services.php
408+
// config/services.php
409409
use App\EventListener\BrochureUploaderListener;
410410
411411
$container->autowire(BrochureUploaderListener::class)

deployment/azure-website.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ below:
294294

295295
The code of the Symfony application has now been deployed to the Azure Website
296296
which you can browse from the file explorer of the Kudu application. You should
297-
see the ``app/``, ``src/`` and ``public/`` directories under your ``site/wwwroot``
297+
see the ``config/``, ``src/`` and ``public/`` directories under your ``site/wwwroot``
298298
directory on the Azure Website filesystem.
299299

300300
Configure the Symfony Application

doctrine/registration_form.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ the :ref:`user password encoding <security-encoding-user-password>` article.
320320
321321
.. code-block:: xml
322322
323-
<!-- app/config/routing.xml -->
323+
<!-- config/routes.xml -->
324324
<?xml version="1.0" encoding="UTF-8" ?>
325325
<routes xmlns="http://symfony.com/schema/routing"
326326
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
@@ -333,7 +333,7 @@ the :ref:`user password encoding <security-encoding-user-password>` article.
333333
334334
.. code-block:: php
335335
336-
// app/config/routing.php
336+
// config/routes.php
337337
use Symfony\Component\Routing\RouteCollection;
338338
use Symfony\Component\Routing\Route;
339339

0 commit comments

Comments
 (0)