Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitce3db69

Browse files
mpdudeweaverryan
authored andcommitted
GH feedback
1 parent5a4bb99 commitce3db69

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

‎cookbook/configuration/front_controllers_and_kernel.rst

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ The front controller
3030
====================
3131

3232
The `front controller`_ is a well-known design pattern; it is a
33-
section of
34-
code that *all* requests served by an application runthrough.
33+
section of code that *all* requests served by an application run
34+
through.
3535

3636
In the `Symfony 2 Standard Edition`_, this role is taken by the
3737
``app.php``_ and ``app_dev.php``_ files in the ``web/`` directory.
@@ -86,21 +86,22 @@ only that is not used for web, but for command line requests.
8686
The ``AppKernel``
8787
=================
8888

89-
The Kernel object is the core of Symfony2. The Kernel is responsible for
90-
setting up all the bundles that make up your application and providing
91-
them with the application's configuration. It then creates the service
92-
container before serving requests in its
89+
The:class:`Symfony\\Component\\HttpKernel\\Kernel` is the core of
90+
Symfony2. It is responsible for setting up all the bundles that make up
91+
your application and providing them with the application's
92+
configuration. It then creates the service container before serving
93+
requests in its
9394
:method:`Symfony\\Component\\HttpKernel\\HttpKernelInterface::handle`
9495
method.
9596

96-
There are two`templatemethods`_ related to the first two of these
97-
steps which the
98-
:class:`base HttpKernel <Symfony\\Component\\HttpKernel\\HttpKernel>`
99-
does not implement:
97+
There are two methods declared in the
98+
:class:`Symfony\\Component\\HttpKernel\\KernelInterface` that are
99+
left unimplemented in:class:`Symfony\\Component\\HttpKernel\\Kernel`
100+
and thus serve as `template methods`_:
100101

101-
*:method:`Symfony\\Component\\HttpKernel\\HttpKernel::registerBundles`,
102-
which must return an array of all bundles needed to
103-
run theapplication;
102+
*:method:`Symfony\\Component\\HttpKernel\\KernelInterface::registerBundles`,
103+
which must return an array of all bundles needed to run the
104+
application;
104105

105106
*:method:`Symfony\\Component\\HttpKernel\\KernelInterface::registerContainerConfiguration`,
106107
which loads the application configuration.
@@ -115,10 +116,10 @@ Again, the Symfony2 Standard Edition provides an `AppKernel`_ in
115116
uses the name of the environment, which is passed to the Kernel's
116117
:method:`constructor<Symfony\\Component\\HttpKernel\\Kernel::__construct>`
117118
and is available via
118-
:method:`getEnvironment()<Symfony\\Component\\HttpKernel\\Kernel::getEnvironment>`,
119-
to decide which bundles to create in ``registerBundles()``. This method
120-
ismeant to be extended by you when you start adding bundles to your
121-
application.
119+
:method:`Symfony\\Component\\HttpKernel\\Kernel::getEnvironment`,
120+
to decide which bundles to create. The logic for that is in
121+
``registerBundles()``, a methodmeant to be extended by you when you
122+
start adding bundles to yourapplication.
122123

123124
You are, of course, free to create your own, alternative or additional
124125
``AppKernel`` variants. All you need is to adapt your (or add a new) front
@@ -182,5 +183,4 @@ are, of course, free to implement this method differently if you need
182183
.. _decorate:http://en.wikipedia.org/wiki/Decorator_pattern
183184
.. _Debug Component:https://github.com/symfony/symfony/pull/7441
184185
.. _RewriteRule shipped with the Standard Edition:https://github.com/symfony/symfony-standard/blob/master/web/.htaccess)
185-
.. _base HTTPKernel:https://github.com/symfony/symfony/blob/master/src/Symfony/Component/HttpKernel/HttpKernel.php
186186
.. _template methods:http://en.wikipedia.org/wiki/Template_method_pattern

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp