Welcome To Our Shell

Mister Spy & Souheyl Bypass Shell

Current Path : /var/www/html/rocksensor/web/core/modules/update/src/Routing/

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/rocksensor/web/core/modules/update/src/Routing/UpdateRouteSubscriber.php

<?php

declare(strict_types=1);

namespace Drupal\update\Routing;

use Drupal\Core\Routing\RouteSubscriberBase;
use Drupal\Core\Site\Settings;
use Symfony\Component\Routing\RouteCollection;

/**
 * Route subscriber for Update module routes.
 */
class UpdateRouteSubscriber extends RouteSubscriberBase {

  /**
   * Constructs a new UpdateRouteSubscriber.
   */
  public function __construct(
    protected Settings $settings,
  ) {
  }

  /**
   * {@inheritdoc}
   */
  protected function alterRoutes(RouteCollection $collection) {
    if ($this->settings->get('allow_authorize_operations', TRUE)) {
      return;
    }
    $routes = [
      'update.report_update',
      'update.module_update',
      'update.theme_update',
      'update.confirmation_page',
    ];
    foreach ($routes as $route) {
      $route = $collection->get($route);
      $route->setRequirement('_access', 'FALSE');
    }
  }

}

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