You are here

DrupalCodeBuilderDevel.php in Module Builder 8.3

File

module_builder_devel/src/DrupalCodeBuilderDevel.php
View source
<?php

namespace Drupal\module_builder_devel;

use Drupal\module_builder\DrupalCodeBuilder;
use Drupal\module_builder_devel\Environment\ModuleBuilderDevel;

/**
 * Replacement library wrapper service, to switch the environment.
 *
 * The replacement environment switches the storage so that analysis data is
 * human-readable.
 */
class DrupalCodeBuilderDevel extends DrupalCodeBuilder {

  /**
   * {@inheritdoc}
   */
  protected function doLoadLibrary() {
    $environment = new ModuleBuilderDevel();
    \DrupalCodeBuilder\Factory::setEnvironment($environment)
      ->setCoreVersionNumber(\Drupal::VERSION);
  }

}

Classes

Namesort descending Description
DrupalCodeBuilderDevel Replacement library wrapper service, to switch the environment.