From 31a5a6228ff568c7bb070546ef2d19436dcb091e Mon Sep 17 00:00:00 2001 From: Sebastian Goettschkes Date: Sat, 1 Dec 2012 17:31:04 +0100 Subject: [PATCH 1/2] Adding a link to composer and mentioning the installation of it. --- components/using_components.rst | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/components/using_components.rst b/components/using_components.rst index ad333f1f62c..e7f2a9e2eae 100644 --- a/components/using_components.rst +++ b/components/using_components.rst @@ -6,7 +6,7 @@ How to Install and Use the Symfony2 Components ============================================== If you're starting a new project (or already have a project) that will use -one or more components, the easiest way to integrate everything is with Composer. +one or more components, the easiest way to integrate everything is with `Composer`_. Composer is smart enough to download the component(s) that you need and take care of autoloading so that you can begin using the libraries immediately. @@ -33,13 +33,15 @@ may also need to adjust the version (e.g. ``2.1.1`` or ``2.2.*``). You can research the component names and versions at `packagist.org`_. -**3.** Download the vendor libraries and generate the ``vendor/autoload.php`` file: +**3.** `Install composer`_ if you don't already have it present on your sysmte: + +**4.** Download the vendor libraries and generate the ``vendor/autoload.php`` file: .. code-block:: bash $ php composer.phar install -**4.** Write your code: +**5.** Write your code: Once Composer has downloaded the component(s), all you need to do is include the ``vendor/autoload.php`` file that was generated by Composer. This file @@ -93,4 +95,6 @@ documentation to find out more about how to use it. And have fun! +.. _Composer: http://getcomposer.org +.. _Install composer: http://getcomposer.org/download/ .. _packagist.org: https://packagist.org/ \ No newline at end of file From fd43e3364635ba3f6b2af00f3069d63bf8028454 Mon Sep 17 00:00:00 2001 From: Sebastian Goettschkes Date: Tue, 4 Dec 2012 10:49:47 +0100 Subject: [PATCH 2/2] Fixing sysmte => system typo --- components/using_components.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/using_components.rst b/components/using_components.rst index e7f2a9e2eae..e2cd8975fc4 100644 --- a/components/using_components.rst +++ b/components/using_components.rst @@ -33,7 +33,7 @@ may also need to adjust the version (e.g. ``2.1.1`` or ``2.2.*``). You can research the component names and versions at `packagist.org`_. -**3.** `Install composer`_ if you don't already have it present on your sysmte: +**3.** `Install composer`_ if you don't already have it present on your system: **4.** Download the vendor libraries and generate the ``vendor/autoload.php`` file: