Skip to content

moving MonologBundle docs to bundle repo #124

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

Merged
merged 4 commits into from
Jun 1, 2015
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
45 changes: 45 additions & 0 deletions Resources/doc/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
Installation
============

Step 1: Download the Bundle
---------------------------

Open a command console, enter your project directory and execute the
following command to download the latest stable version of this bundle:

.. code-block:: bash

$ composer require symfony/monolog-bundle "~2.7"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer to not specify the version only composer require symfony/monolog-bundle is enough.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It isn't, as it means the 2.7 docs would make people install 3.0 (if that version is released) as it would just take the latest stable version if you don't specify a version. This could lead to much confusion.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ahh ok ;)


This command requires you to have Composer installed globally, as explained
in the `installation chapter`_ of the Composer documentation.

Step 2: Enable the Bundle
-------------------------

Then, enable the bundle by adding it to the list of registered bundles
in the ``app/AppKernel.php`` file of your project:

.. code-block:: php

<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
// ...

new Symfony\Bundle\MonologBundle\MonologBundle(),
);

// ...
}

// ...
}

.. _`installation chapter`: https://getcomposer.org/doc/00-intro.md