Documentation

CachedFormulaLoader
in package
implements FormulaLoaderInterface

Adds a caching layer to a loader.

A cached formula loader is a composition of a formula loader and a cache.

Tags
author

Kris Wallsmith kris.wallsmith@gmail.com

Interfaces, Classes and Traits

FormulaLoaderInterface
Loads formulae.

Table of Contents

$configCache  : mixed
$debug  : mixed
$loader  : mixed
__construct()  : mixed
Constructor.
load()  : array<string|int, mixed>
Loads formulae from a resource.

Properties

Methods

load()

Loads formulae from a resource.

public load(ResourceInterface $resources) : array<string|int, mixed>

Formulae should be loaded the same regardless of the current debug mode. Debug considerations should happen downstream.

Parameters
$resources : ResourceInterface
Return values
array<string|int, mixed>

An array of formulae

Search results