dev-master
9999999-dev https://github.com/20steps/drupal-bricks-bridgeDrupal 7.x module bridging to Bricks by 20steps including Symfony 3
GPL-2.0
The Requires
- php >=7.0
- composer/installers ~1.0
Drupal 7.x module bridging to Bricks by 20steps including Symfony 3
This Drupal 7.x module is a bridge to Bricks by 20steps including Symfony 3., (*1)
This module is used with the Bricks by 20steps Drupal 7.x edition., (*2)
See https://20steps.de for more information, (*3)
Edit the settings.php file and the following lines :, (*4)
$conf['bricks'] = array( 'root' => __DIR__.'/../..', // the project root path 'drush' => array( 'env' => 'app', 'debug' => true ) );
In the case you have a customized Symfony structure, you can add a kernel_factory
array key and create a custom closure
that will return the kernel class name:, (*5)
$conf['symfony2']['kernel_factory'] = function (array $conf) { $kernelName = 'PortalKernel'; require_once sprintf('%s/apps/bootstrap.php.cache', $conf['symfony2']['root']); require_once sprintf('%s/apps/BaseKernel.php', $conf['symfony2']['root']); require_once sprintf('%s/apps/portal/%s.php', $conf['symfony2']['root'], $kernelName); return $kernelName; };
Some drupal hooks are sent to the Symfony Event Dispatcher., (*6)
Registration : * drupal.user_login * drupal.user_logout, (*7)
User Entity event : * drupal.user_load * drupal.user_insert * drupal.user_update * drupal.user_presave, (*8)
Drupal 7.x module bridging to Bricks by 20steps including Symfony 3
GPL-2.0