Welcome To Our Shell

Mister Spy & Souheyl Bypass Shell

Current Path : /var/www/html1/web/core/modules/simpletest/src/

Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
Upload File :
Current File : /var/www/html1/web/core/modules/simpletest/src/EnvironmentCleanerFactory.php

<?php

namespace Drupal\simpletest;

use Drupal\Core\DependencyInjection\Container;
use Drupal\Core\Test\TestDatabase;
use Drupal\Core\Database\Database;

/**
 * Test environment cleaner factory.
 *
 * We use a factory pattern here so that we can inject the test results database
 * which is not a service (and should not be).
 */
class EnvironmentCleanerFactory {

  /**
   * The container.
   *
   * @var \Drupal\Core\DependencyInjection\Container
   */
  protected $container;

  /**
   * Construct an environment cleaner factory.
   *
   * @param \Drupal\Core\DependencyInjection\Container $container
   *   The container.
   */
  public function __construct(Container $container) {
    $this->container = $container;
  }

  /**
   * Factory method to create the environment cleaner service.
   *
   * @return \Drupal\simpletest\EnvironmentCleanerService
   *   The environment cleaner service.
   */
  public function createCleaner() {
    $cleaner = new EnvironmentCleanerService(
      $this->container->get('app.root'),
      Database::getConnection(),
      TestDatabase::getConnection(),
      $this->container->get('messenger'),
      $this->container->get('string_translation'),
      $this->container->get('config.factory'),
      $this->container->get('cache.default'),
      $this->container->get('file_system')
    );

    return $cleaner;
  }

}

bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped)
Email: contact@elmoujehidin.net bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped) Email: contact@elmoujehidin.net