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

Breadcrumb

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

function FeatureSet::__construct

Parameters

bool $useGuids True build UUIDs using the GuidStringCodec:

bool $force32Bit True to force the use of 32-bit functionality: (primarily for testing purposes)

bool $forceNoBigNumber (obsolete):

bool $ignoreSystemNode True to disable attempts to check for the: system node ID (primarily for testing purposes)

bool $enablePecl True to enable the use of the PeclUuidTimeGenerator: to generate version 1 UUIDs

File

vendor/ramsey/uuid/src/FeatureSet.php, line 89

Class

FeatureSet
FeatureSet detects and exposes available features in the current environment

Namespace

Ramsey\Uuid

Code

public function __construct(bool $useGuids = false, bool $force32Bit = false, bool $forceNoBigNumber = false, bool $ignoreSystemNode = false, bool $enablePecl = false) {
    $this->randomGenerator = $this->buildRandomGenerator();
    $this->setCalculator(new BrickMathCalculator());
    $this->builder = $this->buildUuidBuilder($useGuids);
    $this->codec = $this->buildCodec($useGuids);
    $this->nodeProvider = $this->buildNodeProvider();
    $this->nameGenerator = $this->buildNameGenerator();
    $this->setTimeProvider(new SystemTimeProvider());
    $this->setDceSecurityProvider(new SystemDceSecurityProvider());
    $this->validator = new GenericValidator();
    assert($this->timeProvider !== null);
    $this->unixTimeGenerator = $this->buildUnixTimeGenerator();
}

API Navigation

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