Commit 2b218010 authored by chr.fritsch's avatar chr.fritsch Committed by Berdir
Browse files

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

parent ba1f169c
<?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');
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment