Documentation

TomlFileLoader extends FileLoader
in package

TomlFileLoader loads configuration parameters from toml file.

Tags
author

Cristiano Cinotti

Table of Contents

Methods

load()  : array<int|string, mixed>
Loads a Toml file.
supports()  : bool
Returns true if this class supports the given resource.

Methods

load()

Loads a Toml file.

public load(mixed $resource[, string|null $type = null ]) : array<int|string, mixed>
Parameters
$resource : mixed

The resource to load.

$type : string|null = null

The resource type.

Return values
array<int|string, mixed>

supports()

Returns true if this class supports the given resource.

public supports(mixed $resource[, string|null $type = null ]) : bool
Parameters
$resource : mixed

A resource.

$type : string|null = null

The resource type.

Return values
bool —

true If this class supports the given resource, false otherwise.

On this page

Search results