8000 [quick_tour] second pass to "the architecture" chapter · symfony/symfony-docs@50e136c · GitHub
[go: up one dir, main page]

Skip to content

Commit 50e136c

Browse files
javiereguiluzweaverryan
authored andcommitted
[quick_tour] second pass to "the architecture" chapter
1 parent cdb7064 commit 50e136c

File tree

1 file changed

+18
-17
lines changed

1 file changed

+18
-17
lines changed

quick_tour/the_architecture.rst

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,10 @@ lives::
3333
$kernel->loadClassCache();
3434
$kernel->handle(Request::createFromGlobals())->send();
3535

36-
The controller first requires the ``bootstrap.php.cache`` file, which bootstraps
37-
the framework and registers the autoloader (see below). Then, it uses a kernel
38-
class, ``AppKernel`` in this case, to bootstrap the application.
36+
The controller first bootstraps the application using a kernel class (``AppKernel``
37+
in this case). Then, it creates the ``Request`` object using the PHP's global
38+
variables and passes it to the kernel. The last step is to send back to the user
39+
the response contents returned by the kernel.
3940

4041
.. _the-app-dir:
4142

@@ -54,8 +55,7 @@ This class must implement two methods:
5455
(more on this later).
5556

5657
Autoloading is handled automatically via `Composer`_, which means that you
57-
can use any PHP classes without doing anything at all! If you need more flexibility,
58-
you can extend the autoloader in the ``app/autoload.php`` file. All dependencies
58+
can use any PHP classes without doing anything at all! All dependencies
5959
are stored under the ``vendor/`` directory, but this is just a convention.
6060
You can store them wherever you want, globally on your server or locally
6161
in your projects.
@@ -69,12 +69,13 @@ Symfony2, the :term:`bundle` system.
6969
A bundle is kind of like a plugin in other software. So why is it called a
7070
*bundle* and not a *plugin*? This is because *everything* is a bundle in
7171
Symfony2, from the core framework features to the code you write for your
72-
application. Bundles are first-class citizens in Symfony2. This gives you
73-
the flexibility to use pre-built features packaged in third-party bundles
74-
or to distribute your own bundles. It makes it easy to pick and choose which
75-
features to enable in your application and optimize them the way you want.
76-
And at the end of the day, your application code is just as *important* as
77-
the core framework itself.
72+
application.
73+
74+
Bundles are first-class citizens in Symfony2. This gives you the flexibility
75+
to use pre-built features packaged in third-party bundles or to distribute your
76+
own bundles. It makes it easy to pick and choose which features to enable in
77+
your application and optimize them the way you want. And at the end of the day,
78+
your application code is just as *important* as the core framework itself.
7879

7980
Registering a Bundle
8081
~~~~~~~~~~~~~~~~~~~~
@@ -109,14 +110,14 @@ a single ``Bundle`` class that describes it::
109110

110111
In addition to the AcmeDemoBundle that was already talked about, notice
111112
that the kernel also enables other bundles such as the FrameworkBundle,
112-
DoctrineBundle, SwiftmailerBundle, and AsseticBundle bundle.
113-
They are all part of the core framework.
113+
DoctrineBundle, SwiftmailerBundle, and AsseticBundle bundle. They are all part
114+
of the core framework.
114115

115116
Configuring a Bundle
116117
~~~~~~~~~~~~~~~~~~~~
117118

118119
Each bundle can be customized via configuration files written in YAML, XML, or
119-
PHP. Have a look at the default configuration:
120+
PHP. Have a look at the default Symfony configuration:
120121

121122
.. code-block:: yaml
122123
@@ -181,9 +182,9 @@ PHP. Have a look at the default configuration:
181182
password: "%mailer_password%"
182183
spool: { type: memory }
183184
184-
Each entry like ``framework`` defines the configuration for a specific bundle.
185-
For example, ``framework`` configures the FrameworkBundle while ``swiftmailer``
186-
configures the SwiftmailerBundle.
185+
Each first level entry like ``framework``, ``twig`` or ``doctrine`` defines the
186+
configuration for a specific bundle. For example, ``framework`` configures the
187+
FrameworkBundle while ``swiftmailer`` configures the SwiftmailerBundle.
187188

188189
Each :term:`environment` can override the default configuration by providing a
189190
specific configuration file. For example, the ``dev`` environment loads the

0 commit comments

Comments
 (0)
0