2017 © Pedro Peláez
 

drupal-module drupal-bricks-bridge

Drupal 7.x module bridging to Bricks by 20steps including Symfony 3

image

20steps/drupal-bricks-bridge

Drupal 7.x module bridging to Bricks by 20steps including Symfony 3

  • Sunday, April 9, 2017
  • by helmuthva
  • Repository
  • 4 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

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)

Configuration

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; };

Hooks

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)

The Versions

09/04 2017

dev-master

9999999-dev https://github.com/20steps/drupal-bricks-bridge

Drupal 7.x module bridging to Bricks by 20steps including Symfony 3

  Sources   Download

GPL-2.0

The Requires