class PathautoServiceProvider in Pathauto 8
Remove the drush commands until path_alias module is enabled.
Hierarchy
- class \Drupal\Core\DependencyInjection\ServiceProviderBase implements ServiceModifierInterface, ServiceProviderInterface
- class \Drupal\pathauto\PathautoServiceProvider
Expanded class hierarchy of PathautoServiceProvider
File
- src/
PathautoServiceProvider.php, line 11
Namespace
Drupal\pathautoView source
class PathautoServiceProvider extends ServiceProviderBase {
/**
* {@inheritdoc}
*/
public function register(ContainerBuilder $container) {
$definitions = array_keys($container
->getDefinitions());
if (!in_array('path_alias.repository', $definitions)) {
$container
->removeDefinition('pathauto.commands');
}
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PathautoServiceProvider:: |
public | function |
Registers services to the container. Overrides ServiceProviderBase:: |
|
ServiceProviderBase:: |
public | function |
Modifies existing service definitions. Overrides ServiceModifierInterface:: |
5 |