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

Breadcrumb

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

function NoProxyPattern::makeData

Creates a rule data object

2 calls to NoProxyPattern::makeData()
NoProxyPattern::getRule in vendor/composer/composer/src/Composer/Util/NoProxyPattern.php
Finds or creates rule data for a hostname
NoProxyPattern::getUrlData in vendor/composer/composer/src/Composer/Util/NoProxyPattern.php
Returns false is the url cannot be parsed, otherwise a data object

File

vendor/composer/composer/src/Composer/Util/NoProxyPattern.php, line 326

Class

NoProxyPattern
Tests URLs against NO_PROXY patterns

Namespace

Composer\Util

Code

private function makeData(string $host, int $port, ?stdClass $ipdata) : stdClass {
    return (object) [
        'host' => $host,
        'name' => '.' . ltrim($host, '.'),
        'port' => $port,
        'ipdata' => $ipdata,
    ];
}

API Navigation

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