Welcome To Our Shell

Mister Spy & Souheyl Bypass Shell

Current Path : /var/www/html/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/vendor/chi-teck/drupal-code-generator/src/Command/Template.php

<?php declare(strict_types=1);

namespace DrupalCodeGenerator\Command;

use DrupalCodeGenerator\Application;

/**
 * Implements template command.
 */
final class Template extends ModuleGenerator {

  protected string $name = 'template';
  protected string $description = 'Generates a template';
  protected string $alias = 'template';
  protected string $templatePath = Application::TEMPLATE_PATH . '/template';

  /**
   * {@inheritdoc}
   */
  protected function generate(array &$vars): void {
    $this->collectDefault($vars);

    $vars['template_name'] = $this->ask('Template name', 'example');
    $vars['create_theme'] = $this->confirm('Create theme hook?');
    $vars['create_preprocess'] = $this->confirm('Create preprocess hook?');

    $this->addFile('templates/{template_name}.html.twig', 'template');

    if ($vars['create_theme'] || $vars['create_preprocess']) {
      $this->addFile('{machine_name}.module')
        ->template('module')
        ->appendIfExists()
        ->headerSize(7);
    }
  }

}

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