Defines the Ban bundle.
Expanded class hierarchy of BanBundle
class BanBundle extends Bundle {
/**
* Overrides Symfony\Component\HttpKernel\Bundle\Bundle::build().
*/
public function build(ContainerBuilder $container) {
$container
->register('ban.ip_manager', 'Drupal\\ban\\BanIpManager')
->addArgument(new Reference('database'));
$container
->register('ban.subscriber', 'Drupal\\ban\\EventSubscriber\\BanSubscriber')
->addArgument(new Reference('ban.ip_manager'))
->addTag('event_subscriber');
}
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BanBundle:: |
public | function |
Overrides Symfony\Component\HttpKernel\Bundle\Bundle::build(). Overrides Bundle:: |
|
Bundle:: |
protected | property | ||
Bundle:: |
protected | property | ||
Bundle:: |
protected | property | ||
Bundle:: |
public | function |
Boots the Bundle. Overrides BundleInterface:: |
|
Bundle:: |
public | function |
Returns the bundle's container extension. Overrides BundleInterface:: |
|
Bundle:: |
final public | function |
Returns the bundle name (the class short name). Overrides BundleInterface:: |
|
Bundle:: |
public | function |
Gets the Bundle namespace. Overrides BundleInterface:: |
|
Bundle:: |
public | function |
Returns the bundle parent name. Overrides BundleInterface:: |
|
Bundle:: |
public | function |
Gets the Bundle directory path. Overrides BundleInterface:: |
|
Bundle:: |
public | function | Finds and registers Commands. | |
Bundle:: |
public | function |
Shutdowns the Bundle. Overrides BundleInterface:: |
|
ContainerAware:: |
protected | property | @api | |
ContainerAware:: |
public | function |
Sets the Container associated with this Controller. Overrides ContainerAwareInterface:: |