Skip to content

Commit 16333e1

Browse files
committed
Bugfixing a few typos; Adding install command for composer
1 parent 229dd4f commit 16333e1

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

book/from_flat_php_to_symfony2.rst

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -421,8 +421,8 @@ Add a Touch of Symfony2
421421
~~~~~~~~~~~~~~~~~~~~~~~
422422

423423
Symfony2 to the rescue. Before actually using Symfony2, you need to download
424-
it. This can be done by using composer, which takes care of downloading the
425-
correct version and all it's dependencies and provides an autoloader. An
424+
it. This can be done by using Composer, which takes care of downloading the
425+
correct version and all its dependencies and provides an autoloader. An
426426
autoloader is a tool that makes it possible to start using PHP classes
427427
without explicitly including the file containing the class.
428428

@@ -440,9 +440,16 @@ content:
440440
}
441441
}
442442
443-
After installing your dependencies, composer has generated ``vendor/autoload.php``,
444-
which takes care to include all files from the symfony framework as well as
445-
the files mentioned in the autoload section of your composer.json.
443+
Next, `download Composer`_ and then run the following command, which will download Symfony
444+
into a vendor/ directory:
445+
446+
.. code-block:: bash
447+
448+
$ php composer.phar install
449+
450+
Beside downloading your dependencies, Composer generates a ``vendor/autoload.php`` file,
451+
which takes care of autoloading for all the files in the Symfony Framework as well as
452+
the files mentioned in the autoload section of your `composer.json`.
446453

447454
Core to Symfony's philosophy is the idea that an application's main job is
448455
to interpret each request and return a response. To this end, Symfony2 provides
@@ -735,7 +742,7 @@ Learn more from the Cookbook
735742
* :doc:`/cookbook/controller/service`
736743

737744
.. _`Doctrine`: http://www.doctrine-project.org
738-
.. _`download Symfony`: http://symfony.com/download
745+
.. _`download Composer`: http://getcomposer.org/download/
739746
.. _`Routing`: https://github.com/symfony/Routing
740747
.. _`Templating`: https://github.com/symfony/Templating
741748
.. _`KnpBundles.com`: http://knpbundles.com/

0 commit comments

Comments
 (0)