Documentation

ValidatingArrayLoader
in package
implements LoaderInterface

Tags
author

Jordi Boggiano j.boggiano@seld.be

Interfaces, Classes and Traits

LoaderInterface
Defines a loader that takes an array to create package instances

Table of Contents

CHECK_ALL  = 3
CHECK_STRICT_CONSTRAINTS  = 2
CHECK_UNBOUND_CONSTRAINTS  = 1
$config  : mixed
$errors  : mixed
$flags  : mixed
$loader  : mixed
$strictName  : mixed
$versionParser  : mixed
$warnings  : mixed
__construct()  : mixed
getErrors()  : mixed
getWarnings()  : mixed
hasPackageNamingError()  : mixed
load()  : PackageInterface
Converts a package from an array to a real instance
filterUrl()  : mixed
validateArray()  : mixed
validateFlatArray()  : mixed
validateRegex()  : mixed
validateString()  : mixed
validateUrl()  : mixed

Constants

Properties

Methods

hasPackageNamingError()

public static hasPackageNamingError(mixed $name[, mixed $isLink = false ]) : mixed
Parameters
$name : mixed
$isLink : mixed = false
Return values
mixed

load()

Converts a package from an array to a real instance

public load(array<string|int, mixed> $config[, mixed $class = 'Composer\Package\CompletePackage' ]) : PackageInterface
Parameters
$config : array<string|int, mixed>
$class : mixed = 'Composer\Package\CompletePackage'

Package class to use

Return values
PackageInterface

filterUrl()

private filterUrl(mixed $value[, array<string|int, mixed> $schemes = array('http', 'https') ]) : mixed
Parameters
$value : mixed
$schemes : array<string|int, mixed> = array('http', 'https')
Return values
mixed

validateArray()

private validateArray(mixed $property[, mixed $mandatory = false ]) : mixed
Parameters
$property : mixed
$mandatory : mixed = false
Return values
mixed

validateFlatArray()

private validateFlatArray(mixed $property[, mixed $regex = null ][, mixed $mandatory = false ]) : mixed
Parameters
$property : mixed
$regex : mixed = null
$mandatory : mixed = false
Return values
mixed

validateRegex()

private validateRegex(mixed $property, mixed $regex[, mixed $mandatory = false ]) : mixed
Parameters
$property : mixed
$regex : mixed
$mandatory : mixed = false
Return values
mixed

validateString()

private validateString(mixed $property[, mixed $mandatory = false ]) : mixed
Parameters
$property : mixed
$mandatory : mixed = false
Return values
mixed

validateUrl()

private validateUrl(mixed $property[, mixed $mandatory = false ]) : mixed
Parameters
$property : mixed
$mandatory : mixed = false
Return values
mixed

Search results