class UltimateCronServiceProvider in Ultimate Cron 8.2
Defines service provider for ultimate cron.
Hierarchy
- class \Drupal\Core\DependencyInjection\ServiceProviderBase implements ServiceModifierInterface, ServiceProviderInterface
- class \Drupal\ultimate_cron\UltimateCronServiceProvider
Expanded class hierarchy of UltimateCronServiceProvider
File
- src/
UltimateCronServiceProvider.php, line 12
Namespace
Drupal\ultimate_cronView source
class UltimateCronServiceProvider extends ServiceProviderBase {
/**
* {@inheritdoc}
*/
public function alter(ContainerBuilder $container) {
// Overrides cron class to use our own cron manager.
$container
->getDefinition('cron')
->setClass('Drupal\\ultimate_cron\\UltimateCron')
->addMethodCall('setConfigFactory', [
new Reference('config.factory'),
]);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ServiceProviderBase:: |
public | function |
Registers services to the container. Overrides ServiceProviderInterface:: |
1 |
UltimateCronServiceProvider:: |
public | function |
Modifies existing service definitions. Overrides ServiceProviderBase:: |