UserBundle.php

Contains Drupal\user\UserBundle.

Namespace

Drupal\user

File

drupal/core/modules/user/lib/Drupal/user/UserBundle.php
View source
<?php

/**
 * @file
 * Contains Drupal\user\UserBundle.
 */
namespace Drupal\user;

use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Reference;
use Symfony\Component\HttpKernel\Bundle\Bundle;

/**
 * User dependency injection container.
 */
class UserBundle extends Bundle {

  /**
   * Overrides Symfony\Component\HttpKernel\Bundle\Bundle::build().
   */
  public function build(ContainerBuilder $container) {
    $container
      ->register('access_check.user.register', 'Drupal\\user\\Access\\RegisterAccessCheck')
      ->addTag('access_check');
    $container
      ->register('user.data', 'Drupal\\user\\UserData')
      ->addArgument(new Reference('database'));
  }

}

Classes

Namesort descending Description
UserBundle User dependency injection container.