phpDocumentor

ConfigurationFactory
in package

The ConfigurationFactory converts the configuration xml from a Uri into an array.

Table of Contents

$defaultFiles  : array<string|int, string>
$middlewares  : list<string|int, MiddlewareInterface>
A series of callables that take the configuration array as parameter and should return that array or a modified version of it.
$symfonyConfigFactory  : SymfonyConfigFactory
__construct()  : mixed
Initializes the ConfigurationFactory.
addMiddleware()  : void
Adds a middleware callback that allows the consumer to alter the configuration array when it is constructed.
createDefault()  : Configuration
fromDefault()  : Configuration
fromDefaultLocations()  : Configuration
Attempts to load a configuration from the default locations for phpDocumentor
fromUri()  : Configuration
Converts the phpDocumentor configuration xml to an array.
applyMiddleware()  : array<string|int, mixed>
Applies all middleware callbacks onto the configuration.

Properties

$middlewares

A series of callables that take the configuration array as parameter and should return that array or a modified version of it.

private list<string|int, MiddlewareInterface> $middlewares = []

Methods

applyMiddleware()

Applies all middleware callbacks onto the configuration.

private applyMiddleware(array<string|int, mixed> $configuration, UriInterface|null $uri) : array<string|int, mixed>
Parameters
$configuration : array<string|int, mixed>
$uri : UriInterface|null
Return values
array<string|int, mixed>

Search results