Skip to content

A Drupal module which bridges to Bricks by 20steps including Symfony 3

License

Notifications You must be signed in to change notification settings

20steps/twentysteps_bricks_bridge

 
 

Repository files navigation

This Drupal 7.x module is a bridge to Bricks by 20steps including Symfony 3.

This module is used with the Bricks by 20steps Drupal 7.x edition.

See https://20steps.de for more information

Configuration

Edit the settings.php file and the following lines :

    $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:

$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.

Registration :

  • drupal.user_login
  • drupal.user_logout

User Entity event :

  • drupal.user_load
  • drupal.user_insert
  • drupal.user_update
  • drupal.user_presave

About

A Drupal module which bridges to Bricks by 20steps including Symfony 3

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%