Commit 763ad748 authored by Adam G-H's avatar Adam G-H
Browse files

Issue #3303697 by phenaproxima: Deprecate the optional update system

parent c56a50ac
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -14,3 +14,4 @@ services:
      - '@lightning.update_manager'
    tags:
      - { name: drush.command }
    deprecated: The "%service_id% service is deprecated in lightning_core:6.0.0 and removed from lightning_core:7.0.0. There is no replacement. See https://www.drupal.org/node/3303698
+6 −0
Original line number Diff line number Diff line
@@ -20,6 +20,12 @@ function lightning_core_requirements() {
      'value' => $profile->info['base profile'],
    ];
  }
  if (class_exists('\phpDocumentor\Reflection\DocBlockFactory')) {
    $requirements['lightning_core_deprecated_dependency'] = [
      'title' => t('Deprecated dependency'),
      'value' => t('The <code>phpdocumentor/reflection-docblock</code> package is no longer used by Lightning Core, and will not be required by Lightning Core 7. If you are actively using this package, add it to your project\'s composer.json directly: <code>composer require phpdocumentor/reflection-docblock:^5</code>.'),
    ];
  }
  return $requirements;
}

+1 −0
Original line number Diff line number Diff line
@@ -29,3 +29,4 @@ services:
      - '@class_resolver'
      - '@config.factory'
      - '@extension.list.module'
    deprecated: The "%service_id% service is deprecated in lightning_core:6.0.0 and removed from lightning_core:7.0.0. There is no replacement. See https://www.drupal.org/node/3303698
+1 −0
Original line number Diff line number Diff line
@@ -37,6 +37,7 @@ class LightningCoreCommands extends DrushCommands {
   *   Runs all available configuration updates.
   */
  public function update() {
    @trigger_error('The update:lightning command is deprecated in lightning_core:6.0.0 and removed from lightning_core:7.0.0. There is no replacement. See https://www.drupal.org/node/3303698', E_USER_DEPRECATED);
    $io = new DrushStyle($this->input(), $this->output());
    $this->updateManager->executeAllInConsole($io);
  }
+1 −0
Original line number Diff line number Diff line
@@ -83,6 +83,7 @@ class UpdateManager {
   *   (optional) The doc block factory.
   */
  public function __construct(\Traversable $namespaces, ClassResolverInterface $class_resolver, ConfigFactoryInterface $config_factory, ModuleExtensionList $module_extension_list, DiscoveryInterface $discovery = NULL, DocBlockFactoryInterface $doc_block_factory = NULL) {
    @trigger_error(__CLASS__ . ' is deprecated in lightning_core:6.0.0 and will be removed in lightning_core:7.0.0. There is no replacement. See https://www.drupal.org/node/3303698.', E_USER_DEPRECATED);
    $this->classResolver = $class_resolver;
    $this->configFactory = $config_factory;
    $this->moduleExtensionList = $module_extension_list;
Loading