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

Breadcrumb

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

function Factory::__construct

Same name in this branch
  1. 11.1.x vendor/sebastian/comparator/src/Factory.php \SebastianBergmann\Comparator\Factory::__construct()
  2. 11.1.x vendor/phpspec/prophecy/src/Prophecy/Comparator/Factory.php \Prophecy\Comparator\Factory::__construct()

Parameters

SchemaStorage $schemaStorage:

UriRetrieverInterface $uriRetriever:

int $checkMode:

File

vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Factory.php, line 76

Class

Factory
Factory for centralize constraint initialization.

Namespace

JsonSchema\Constraints

Code

public function __construct(?SchemaStorageInterface $schemaStorage = null, ?UriRetrieverInterface $uriRetriever = null, $checkMode = Constraint::CHECK_MODE_NORMAL) {
    // set provided config options
    $this->setConfig($checkMode);
    $this->uriRetriever = $uriRetriever ?: new UriRetriever();
    $this->schemaStorage = $schemaStorage ?: new SchemaStorage($this->uriRetriever);
}

API Navigation

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