@@ -16,8 +16,8 @@ request to generate the response.
1616
1717This single kernel approach is a convenient default, but Symfony applications
1818can define any number of kernels. Whereas
19- :ref: `environments <configuration-environments >` execute the same application
20- with different configurations, kernels can execute different parts of the same
19+ :ref: `environments <configuration-environments >` run the same application with
20+ different configurations, kernels can run different parts of the same
2121application.
2222
2323These are some of the common use cases for creating multiple kernels:
@@ -123,7 +123,7 @@ Finally, define the configuration files that the new ``ApiKernel`` will load.
123123According to the above code, this config will live in one or multiple files
124124stored in ``config/api/ `` and ``config/api/ENVIRONMENT_NAME/ `` directories.
125125
126- The new configuration files can be created from scratch when you load just a few
126+ The new configuration files can be created from scratch when you load only a few
127127bundles, because it will be small. Otherwise, duplicate the existing
128128config files in ``config/packages/ `` or better, import them and override the
129129needed options.
@@ -133,13 +133,12 @@ Executing Commands with a Different Kernel
133133
134134The ``bin/console `` script used to run Symfony commands always uses the default
135135``Kernel `` class to build the application and load the commands. If you need
136- to execute console commands using the new kernel, duplicate the ``bin/console ``
136+ to run console commands using the new kernel, duplicate the ``bin/console ``
137137script and rename it (e.g. ``bin/api ``).
138138
139139Then, replace the ``Kernel `` instance by your own kernel instance
140- (e.g. ``ApiKernel ``) and now you can execute commands using the new kernel
141- (e.g. ``php bin/api cache:clear ``) Now you can use execute commands using the
142- new kernel.
140+ (e.g. ``ApiKernel ``). Now you can run commands using the new kernel
141+ (e.g. ``php bin/api cache:clear ``).
143142
144143.. note ::
145144
0 commit comments