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-bundleAlternatively, you can clone the https://github.com/harmonycms/admin-bundle repository.
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 %}