Name: eu_login
Owner: OpenEuropa
Description: null
Created: 2018-05-08 07:40:51.0
Updated: 2018-05-21 16:00:21.0
Pushed: 2018-05-21 16:00:19.0
Homepage: null
Size: 15
Language: PHP
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
The EU Login module allows to authenticate against the EU Login service.
Table of contents:
The recommended way of installing the EU Login module is via a Composer-based workflow.
In your Drupal project's main composer.json
add the following dependency:
"require": {
"openeuropa/eu_login": "dev-master"
}
And run:
mposer update
In order to enable the module in your project run:
vendor/bin/drush en eu_login
The EU Login project contains all the necessary code and tools for an effective development process, such as:
Download all required PHP code by running:
mposer install
This will build a fully functional Drupal test site in the ./build
directory that can be used to develop and showcase
the module's functionality.
Before setting up and installing the site make sure to customize default configuration values by copying runner.yml.dist
to ./runner.yml
and overriding relevant properties.
To set up the project run:
vendor/bin/run drupal:site-setup
This will:
./build/modules/custom/eu_login
so that it's available for the test site./runner.yml.dist
./runner.yml.dist
After a successful setup install the site by running:
vendor/bin/run drupal:site-install
This will:
The setup procedure described above can be sensitively simplified by using Docker Compose.
Requirements:
Run:
cker-compose up -d
Then:
cker-compose exec -u web web composer install
cker-compose exec -u web web ./vendor/bin/run drupal:site-setup
cker-compose exec -u web web ./vendor/bin/run drupal:site-install
Your test site will be available at http://localhost:8080/build.
Run tests as follows:
cker-compose exec -u web web ./vendor/bin/phpunit
cker-compose exec -u web web ./vendor/bin/behat
Manually disabling Drupal 8 caching is a laborious process that is well described here.
Alternatively you can use the following Drupal Console commands to disable/enable Drupal 8 caching:
vendor/bin/drupal site:mode dev # Disable all caches.
vendor/bin/drupal site:mode prod # Enable all caches.
Note: to fully disable Twig caching the following additional manual steps are required:
./build/sites/default/services.yml
cache: false
in twig.config:
property. E.g.:meters:
.config:
e: false
./vendor/bin/drush cr
This is due to the following Drupal Console issue.