Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed the indentation of two code blocks #3925

Merged
merged 1 commit into from
Jun 10, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 19 additions & 19 deletions components/using_components.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,42 +48,42 @@ the ``vendor/autoload.php`` file that was generated by Composer. This file
takes care of autoloading all of the libraries so that you can use them
immediately::

// File: src/script.php
// File: src/script.php

// update this to the path to the "vendor/" directory, relative to this file
require_once '../vendor/autoload.php';
// update this to the path to the "vendor/" directory, relative to this file
require_once '../vendor/autoload.php';

use Symfony\Component\Finder\Finder;
use Symfony\Component\Finder\Finder;

$finder = new Finder();
$finder->in('../data/');
$finder = new Finder();
$finder->in('../data/');

// ...
// ...

.. tip::

If you want to use all of the Symfony2 Components, then instead of adding
them one by one:

.. code-block:: json
.. code-block:: json

{
"require": {
"symfony/finder": "2.3.*",
"symfony/dom-crawler": "2.3.*",
"symfony/css-selector": "2.3.*"
}
{
"require": {
"symfony/finder": "2.3.*",
"symfony/dom-crawler": "2.3.*",
"symfony/css-selector": "2.3.*"
}
}

you can use:

.. code-block:: json
.. code-block:: json

{
"require": {
"symfony/symfony": "2.3.*"
}
{
"require": {
"symfony/symfony": "2.3.*"
}
}

This will include the Bundle and Bridge libraries, which you may not
actually need.
Expand Down