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

Breadcrumb

  1. Drupal Core 11.1.x

Environment.php

Same filename in this branch
  1. 11.1.x vendor/open-telemetry/sdk/Resource/Detectors/Environment.php
  2. 11.1.x vendor/twig/twig/src/Environment.php
  3. 11.1.x core/lib/Drupal/Component/Utility/Environment.php

Namespace

PhpTuf\ComposerStager\Internal\Environment\Service

File

vendor/php-tuf/composer-stager/src/Internal/Environment/Service/Environment.php

View source
<?php

declare (strict_types=1);
namespace PhpTuf\ComposerStager\Internal\Environment\Service;

use PhpTuf\ComposerStager\API\Environment\Service\EnvironmentInterface;

/**
 * @package Environment
 *
 * @internal Don't depend directly on this class. It may be changed or removed at any time without notice.
 */
final class Environment implements EnvironmentInterface {
    public function isWindows() : bool {
        return PHP_OS_FAMILY === 'Windows';
    }
    public function setTimeLimit(int $seconds) : bool {
        if (!function_exists('set_time_limit')) {
            return false;
        }
        return set_time_limit($seconds);
    }

}

Classes

Title Deprecated Summary
Environment @package Environment
RSS feed
Powered by Drupal