Skip to content
This repository was archived by the owner on Jun 6, 2020. It is now read-only.

Latest commit

 

History

History
26 lines (18 loc) · 871 Bytes

File metadata and controls

26 lines (18 loc) · 871 Bytes

Chapter 1. Installation

Install bundle

We assume you’re familiar with Composer, a dependency manager for PHP. Use the following command to add the bundle to your composer.json and download the package.

composer require harmony/admin-bundle

Alternatively, you can clone the https://github.com/harmonycms/admin-bundle repository.

Configure security layer

To secure the admin interface, you will need to update your security layer and restrict his access for administrators only. Edit the config/packages/security.yaml file and add the next configuration:

{% code-tabs %} {% code-tabs-item title="config/packages/security.yaml" %}

security:
    access_control:
        - { path: ^/admin, roles: ROLE_ADMIN }

{% endcode-tabs-item %} {% endcode-tabs %}