Skip to content

DefaultMiddlewares


  • Full name: \Codefy\Framework\Support\DefaultMiddlewares
  • This class is marked as final and can't be subclassed
  • This class is a Final class

Methods

__construct

public __construct(array<string,\Psr\Http\Server\MiddlewareInterface> $collection = []): mixed

Parameters:

Parameter Type Description
$collection array

Inherited methods

merge

Merge the given collection into another collection.

public merge(array $collection): static

Parameters:

Parameter Type Description
$collection array

replace

Replace the given collection with other collections.

public replace(array $replacements): static

Parameters:

Parameter Type Description
$replacements array

except

Disable the given collection.

public except(array $collection): static

Parameters:

Parameter Type Description
$collection array

toArray

Convert the collection to an array.

public toArray(): array