You are here

class PathautoServiceProvider in Pathauto 8

Remove the drush commands until path_alias module is enabled.

Hierarchy

Expanded class hierarchy of PathautoServiceProvider

File

src/PathautoServiceProvider.php, line 11

Namespace

Drupal\pathauto
View 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

Namesort descending Modifiers Type Description Overrides
PathautoServiceProvider::register public function Registers services to the container. Overrides ServiceProviderBase::register
ServiceProviderBase::alter public function Modifies existing service definitions. Overrides ServiceModifierInterface::alter 5