@@ -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
@@ -728,10 +728,10 @@ doesn't work for parameters:
728
728
$container->getDefinition(MessageGenerator::class)
729
729
->setArgument('$contentsDir', '%app.contents_dir%');
730
730
731
- If you inject the same parameters over and over again, use instead the
732
- ``services._defaults.bind `` option. The arguments defined in that option are
731
+ If you inject the same parameters over and over again, use the
732
+ ``services._defaults.bind `` option instead . The arguments defined in that option are
733
733
injected automatically whenever a service constructor or controller action
734
- define an argument with that exact name. For example, to inject the value of the
734
+ defines an argument with that exact name. For example, to inject the value of the
735
735
:ref: `kernel.project_dir parameter <configuration-kernel-project-directory >`
736
736
whenever a service/controller defines a ``$projectDir `` argument, use this:
737
737
@@ -790,7 +790,7 @@ whenever a service/controller defines a ``$projectDir`` argument, use this:
790
790
Read the article about :ref: `binding arguments by name and/or type <services-binding >`
791
791
to learn more about this powerful feature.
792
792
793
- Finally, if some service needs to access to lots of parameters, instead of
793
+ Finally, if some service needs access to lots of parameters, instead of
794
794
injecting each of them individually, you can inject all the application
795
795
parameters at once by type-hinting any of its constructor arguments with the
796
796
:class: `Symfony\\ Component\\ DependencyInjection\\ ParameterBag\\ ContainerBagInterface `::
@@ -822,7 +822,7 @@ parameters at once by type-hinting any of its constructor arguments with the
822
822
Keep Going!
823
823
-----------
824
824
825
- Congratulations! You've tackled the basics in Symfony. Next, learn about *each *
825
+ Congratulations! You've tackled the basics of Symfony. Next, learn about *each *
826
826
part of Symfony individually by following the guides. Check out:
827
827
828
828
* :doc: `/forms `
0 commit comments