Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. SelfUpdateCommand.php

function SelfUpdateCommand::isWindowsNonAdminUser

Returns true if this is a non-admin Windows user account

1 call to SelfUpdateCommand::isWindowsNonAdminUser()
SelfUpdateCommand::setLocalPhar in vendor/composer/composer/src/Composer/Command/SelfUpdateCommand.php
Checks if the downloaded/rollback phar is valid then moves it

File

vendor/composer/composer/src/Composer/Command/SelfUpdateCommand.php, line 575

Class

SelfUpdateCommand
@author Igor Wiedler <igor@wiedler.ch> @author Kevin Ran <kran@adobe.com> @author Jordi Boggiano <j.boggiano@seld.be>

Namespace

Composer\Command

Code

protected function isWindowsNonAdminUser() : bool {
    if (!Platform::isWindows()) {
        return false;
    }
    // fltmc.exe manages filter drivers and errors without admin privileges
    exec('fltmc.exe filters', $output, $exitCode);
    return $exitCode !== 0;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal