class RestrictIpServiceProvider in Restrict IP 8.2
Same name and namespace in other branches
- 3.x src/RestrictIpServiceProvider.php \Drupal\restrict_ip\RestrictIpServiceProvider
Hierarchy
- class \Drupal\restrict_ip\RestrictIpServiceProvider implements ServiceProviderInterface
Expanded class hierarchy of RestrictIpServiceProvider
File
- src/
RestrictIpServiceProvider.php, line 9
Namespace
Drupal\restrict_ipView source
class RestrictIpServiceProvider implements ServiceProviderInterface {
/**
* {@inheritdoc}
*/
public function register(ContainerBuilder $container) {
$modules = $container
->getParameter('container.modules');
if (isset($modules['ip2country'])) {
$definition = $container
->getDefinition('restrict_ip.service');
$definition
->addArgument(new Reference('user.data'));
}
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
RestrictIpServiceProvider:: |
public | function |
* Overrides ServiceProviderInterface:: |