Welcome To Our Shell

Mister Spy & Souheyl Bypass Shell

Current Path : /var/www/html/vendor/drush/drush/src/Commands/core/

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/drush/drush/src/Commands/core/BrowseCommands.php

<?php

namespace Drush\Commands\core;

use Drupal\Core\Url;
use Drush\Commands\DrushCommands;
use Drush\Drush;
use Drush\Exec\ExecTrait;
use Consolidation\SiteAlias\SiteAliasManagerAwareInterface;
use Consolidation\SiteAlias\SiteAliasManagerAwareTrait;

class BrowseCommands extends DrushCommands implements SiteAliasManagerAwareInterface
{
    use ExecTrait;
    use SiteAliasManagerAwareTrait;

    /**
     * Display a link to a given path or open link in a browser.
     *
     * @command browse
     *
     * @param string|null $path Path to open. If omitted, the site front page will be opened.
     * @param array $options An associative array of options whose values come from cli, aliases, config, etc.
     * @option browser Open the URL in the default browser. Use --no-browser to avoid opening a browser.
     * @option integer $redirect-port The port that the web server is redirected to (e.g. when running within a Vagrant environment).
     * @usage drush browse
     *   Open default web browser (if configured or detected) to the site front page.
     * @usage drush browse node/1
     *   Open web browser to the path node/1.
     * @usage drush @example.prod browse
     *   Open a browser to the web site specified in a site alias.
     * @handle-remote-commands true
     */
    public function browse($path = '', array $options = ['browser' => true, 'redirect-port' => self::REQ])
    {
        $aliasRecord = $this->siteAliasManager()->getSelf();
        // Redispatch if called against a remote-host so a browser is started on the
        // the *local* machine.
        if ($this->processManager()->hasTransport($aliasRecord)) {
            $process = $this->processManager()->drush($aliasRecord, 'browse', [$path], Drush::redispatchOptions());
            $process->mustRun();
            $link = $process->getOutput();
        } else {
            if (!Drush::bootstrapManager()->doBootstrap(DRUSH_BOOTSTRAP_DRUPAL_FULL)) {
                // Fail gracefully if unable to bootstrap Drupal. drush_bootstrap() has
                // already logged an error.
                return false;
            }
            $link = Url::fromUserInput('/' . $path, ['absolute' => true])->toString();
        }

        $this->startBrowser($link, false, $options['redirect-port']);
        return $link;
    }
}

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