Skip to content
Snippets Groups Projects
Commit 2b218010 authored by Christian Fritsch's avatar Christian Fritsch Committed by Sascha Grossenbacher
Browse files

Issue #3131286 by chr.fritsch: Updating core 8.7 -> 8.8 with pathauto not possible

parent ba1f169c
Branches
Tags
No related merge requests found
<?php
namespace Drupal\pathauto;
use Drupal\Core\DependencyInjection\ContainerBuilder;
use Drupal\Core\DependencyInjection\ServiceProviderBase;
/**
* Remove the drush commands until path_alias module is enabled.
*/
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');
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment