@@ -25,7 +25,7 @@ the ``services.yaml`` file configures the services of the
25
25
:doc: `service container </service_container >`; the ``bundles.php `` file enables/
26
26
disables packages in your application.
27
27
28
- You'll be working most in the ``config/packages/ `` directory. This directory
28
+ You'll be working mostly in the ``config/packages/ `` directory. This directory
29
29
stores the configuration of every package installed in your application.
30
30
Packages (also called "bundles" in Symfony and "plugins/modules" in other
31
31
projects) add ready-to-use features to your projects.
@@ -55,7 +55,7 @@ to change these files after package installation
55
55
Configuration Formats
56
56
~~~~~~~~~~~~~~~~~~~~~
57
57
58
- Unlike other frameworks, Symfony doesn't impose you a specific format to
58
+ Unlike other frameworks, Symfony doesn't impose a specific format on you to
59
59
configure your applications. Symfony lets you choose between YAML, XML and PHP
60
60
and throughout the Symfony documentation, all configuration examples will be
61
61
shown in these three formats.
@@ -70,8 +70,8 @@ readable. These are the main advantages and disadvantages of each format:
70
70
* **YAML **: simple, clean and readable, but not all IDEs support autocompletion
71
71
and validation for it. :doc: `Learn the YAML syntax </components/yaml/yaml_format >`;
72
72
* **XML **:autocompleted/validated by most IDEs and is parsed natively by PHP,
73
- but sometimes it generates too verbose configuration . `Learn the XML syntax `_;
74
- * **PHP **: very powerful and it allows to create dynamic configuration, but the
73
+ but sometimes it generates configuration considered too verbose. `Learn the XML syntax `_;
74
+ * **PHP **: very powerful and it allows you to create dynamic configuration, but the
75
75
resulting configuration is less readable than the other formats.
76
76
77
77
Importing Configuration Files
@@ -368,7 +368,7 @@ Take the ``framework`` package, installed by default, as an example:
368
368
``config/packages/framework.yaml ``.
369
369
370
370
In reality, each environment differs only somewhat from others. This means that
371
- all environments share a large base of common configurations , which is put in
371
+ all environments share a large base of common configuration , which is put in
372
372
files directly in the ``config/packages/ `` directory.
373
373
374
374
.. seealso ::
@@ -425,7 +425,7 @@ going to production:
425
425
426
426
.. tip ::
427
427
428
- It's common for environments to be similar between each other, so you can
428
+ It's common for environments to be similar to each other, so you can
429
429
use `symbolic links `_ between ``config/packages/<environment-name>/ ``
430
430
directories to reuse the same configuration.
431
431
@@ -732,10 +732,10 @@ doesn't work for parameters:
732
732
$container->getDefinition(MessageGenerator::class)
733
733
->setArgument('$contentsDir', '%app.contents_dir%');
734
734
735
- If you inject the same parameters over and over again, use instead the
736
- ``services._defaults.bind `` option. The arguments defined in that option are
735
+ If you inject the same parameters over and over again, use the
736
+ ``services._defaults.bind `` option instead . The arguments defined in that option are
737
737
injected automatically whenever a service constructor or controller action
738
- define an argument with that exact name. For example, to inject the value of the
738
+ defines an argument with that exact name. For example, to inject the value of the
739
739
:ref: `kernel.project_dir parameter <configuration-kernel-project-directory >`
740
740
whenever a service/controller defines a ``$projectDir `` argument, use this:
741
741
@@ -794,7 +794,7 @@ whenever a service/controller defines a ``$projectDir`` argument, use this:
794
794
Read the article about :ref: `binding arguments by name and/or type <services-binding >`
795
795
to learn more about this powerful feature.
796
796
797
- Finally, if some service needs to access to lots of parameters, instead of
797
+ Finally, if some service needs access to lots of parameters, instead of
798
798
injecting each of them individually, you can inject all the application
799
799
parameters at once by type-hinting any of its constructor arguments with the
800
800
:class: `Symfony\\ Component\\ DependencyInjection\\ ParameterBag\\ ContainerBagInterface `::
@@ -826,7 +826,7 @@ parameters at once by type-hinting any of its constructor arguments with the
826
826
Keep Going!
827
827
-----------
828
828
829
- Congratulations! You've tackled the basics in Symfony. Next, learn about *each *
829
+ Congratulations! You've tackled the basics of Symfony. Next, learn about *each *
830
830
part of Symfony individually by following the guides. Check out:
831
831
832
832
* :doc: `/forms `
0 commit comments