Skip to content

Commit

Permalink
Symfony recipe is live, update installation steps.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Jun 28, 2020
1 parent 3fb7d6a commit ed78d33
Showing 1 changed file with 4 additions and 33 deletions.
37 changes: 4 additions & 33 deletions docs/pages/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
Installation
============

This package does not yet have a Symfony Flex recipe. Installation steps must be done manually.
This package has `a Symfony Flex recipe`_ that will install configuration files for you.

Default configuration files will be copied in the `dev` environment except for the file defining
the services.
Default configuration files will be copied in the `dev` environment.

Step 1
~~~~~~
Expand All @@ -20,44 +19,16 @@ The easiest way to install it is through Composer_
Step 2
~~~~~~

Make sure that the bundle is enabled in `config/bundles.php`.

You should see a line that looks like the following:

.. code-block:: php
EcPhp\\EuLoginBundle\\EuLoginBundle::class => ['all' => true],
Step 3
~~~~~~

As this package depends on the package `ecphp/cas-bundle`, you will need to copy
some configuration files from that package first.

.. code-block:: bash
cp -ar vendor/ecphp/cas-bundle/Resources/config/* config/
Then, copy the configuration files from the bundle `ecphp/eu-login-bundle` in your application

.. code-block:: bash
cp -ar vendor/ecphp/eu-login-bundle/Resources/config/* config/
.. warning:: It is important to play those commands in the proper order.

Step 4
~~~~~~

Edit the configuration file `config/packages/dev/cas_bundle.yaml` and make the necessary changes to fit your needs.

See more on the dedicated :ref:`configuration` page.

Step 5
Step 3
~~~~~~

Read the `ecphp/cas-bundle documentation`_ to have more information on how to enable a firewall and protect your
application.

.. _a Symfony Flex recipe: https://github.com/symfony/recipes-contrib/blob/master/ecphp/eu-login-bundle/1.0/manifest.json
.. _Composer: https://getcomposer.org
.. _ecphp/cas-bundle documentation: https://cas-bundle.readthedocs.io/en/latest/pages/installation.html

0 comments on commit ed78d33

Please sign in to comment.