diff --git a/drush.services.yml b/drush.services.yml index 0cfb0ef..cd6acfb 100644 --- a/drush.services.yml +++ b/drush.services.yml @@ -1,6 +1,6 @@ -services: - path_redirect_import.commands: - class: \Drupal\path_redirect_import\Commands\PathRedirectImportCommands - arguments: [ '@plugin.manager.migration', '@date.formatter', '@entity_type.manager', '@keyvalue', '@file_system', '@path_redirect_import.redirect_export' ] - tags: - - { name: drush.command } +#services: +# path_redirect_import.commands: +# class: \Drupal\path_redirect_import\Commands\PathRedirectImportCommands +# arguments: [ '@plugin.manager.migration', '@date.formatter', '@entity_type.manager', '@keyvalue', #'@file_system', '@path_redirect_import.redirect_export' ] +# tags: +# - { name: drush.command } diff --git a/path_redirect_import.services.yml b/path_redirect_import.services.yml index b414bf8..8040f20 100644 --- a/path_redirect_import.services.yml +++ b/path_redirect_import.services.yml @@ -2,3 +2,5 @@ services: path_redirect_import.redirect_export: class: Drupal\path_redirect_import\RedirectExport arguments: ['@file_system', '@entity_type.manager', '@plugin.manager.migration', '@file.repository'] +# path_redirect_import.commands: +# class: Drupal\path_redirect_import\Commands diff --git a/src/Commands.php b/src/Commands.php new file mode 100644 index 0000000..b2be97e --- /dev/null +++ b/src/Commands.php @@ -0,0 +1,16 @@ +getParameter('container.modules'); - if (!isset($modules['migrate_tools'])) { + //$modules = $container->getParameter('container.modules'); + //if (!isset($modules['migrate_tools'])) { $container->removeDefinition('path_redirect_import.commands'); $container->removeDefinition('path_redirect_import.redirect_export'); - } + //} } }