From d70399b25f41afd8277335cedc3c9b3acdc3759d Mon Sep 17 00:00:00 2001 From: Ener-Getick Date: Wed, 3 Feb 2016 16:29:16 +0100 Subject: [PATCH] JMSDiExtraBundle doesn't need the Kernel anymore --- Resources/doc/installation.rst | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/Resources/doc/installation.rst b/Resources/doc/installation.rst index 47eaec9..9749e9d 100644 --- a/Resources/doc/installation.rst +++ b/Resources/doc/installation.rst @@ -17,19 +17,19 @@ To install JMSSecurityExtraBundle with Composer just add the following to your "jms/security-extra-bundle": "dev-master" } } - + .. note :: Please replace `dev-master` in the snippet above with the latest stable branch, for example ``1.0.*``. - + Then, you can install the new dependencies by running Composer's ``update`` command from the directory where your ``composer.json`` file is located: .. code-block :: bash php composer.phar update jms/security-extra-bundle - + Now, Composer will automatically download all required files, and install them for you. All that is left to do is to update your ``AppKernel.php`` file, and register the new bundle: @@ -43,14 +43,14 @@ register the new bundle: // ... new JMS\AopBundle\JMSAopBundle(), new JMS\SecurityExtraBundle\JMSSecurityExtraBundle(), - new JMS\DiExtraBundle\JMSDiExtraBundle($this), + new JMS\DiExtraBundle\JMSDiExtraBundle(), // ... ); 2. Using the ``deps`` file (Symfony 2.0.x) ------------------------------------------ -First, checkout a copy of the code. Just add the following to the ``deps`` +First, checkout a copy of the code. Just add the following to the ``deps`` file of your Symfony Standard Distribution: .. code-block :: ini @@ -58,28 +58,28 @@ file of your Symfony Standard Distribution: [JMSSecurityExtraBundle] git=https://github.com/schmittjoh/JMSSecurityExtraBundle.git target=/bundles/JMS/SecurityExtraBundle - + ; Dependencies: ;-------------- [metadata] git=https://github.com/schmittjoh/metadata.git version=1.1.0 ; <- make sure to get 1.1, not 1.0 - - ; see https://github.com/schmittjoh/JMSAopBundle/blob/master/Resources/doc/index.rst + + ; see https://github.com/schmittjoh/JMSAopBundle/blob/master/Resources/doc/index.rst [JMSAopBundle] git=https://github.com/schmittjoh/JMSAopBundle.git target=/bundles/JMS/AopBundle - + [cg-library] git=https://github.com/schmittjoh/cg-library.git - + ; This dependency is optional (you need it if you are using non-service controllers): ; see https://github.com/schmittjoh/JMSDiExtraBundle/blob/master/Resources/doc/index.rst [JMSDiExtraBundle] git=https://github.com/schmittjoh/JMSDiExtraBundle.git target=/bundles/JMS/DiExtraBundle - - + + Then register the bundle with your kernel: .. code-block :: php @@ -91,7 +91,7 @@ Then register the bundle with your kernel: // ... new JMS\AopBundle\JMSAopBundle(), new JMS\SecurityExtraBundle\JMSSecurityExtraBundle(), - new JMS\DiExtraBundle\JMSDiExtraBundle($this), + new JMS\DiExtraBundle\JMSDiExtraBundle(), // ... ); @@ -111,7 +111,7 @@ Make sure that you also register the namespaces with the autoloader: // ... )); -Now use the ``vendors`` script to clone the newly added repositories +Now use the ``vendors`` script to clone the newly added repositories into your project: .. code-block :: bash