Heratio Framework API Reference

SfConfigCacheAdapter
in package

Minimal config cache adapter for standalone mode.

sfAction::initialize() calls $context->getConfigCache()->checkConfig() to load security.yml. In standalone mode, we skip this — AuthMiddleware handles authentication/authorization instead.

Table of Contents

Methods

checkConfig()  : mixed
Check if a config file needs reprocessing.
registerConfigHandler()  : void
Register a config handler.

Methods

checkConfig()

Check if a config file needs reprocessing.

public checkConfig(string $configPath[, bool $optional = false ]) : mixed

Returns false (no cached config file) so sfAction skips the require().

Parameters
$configPath : string
$optional : bool = false

registerConfigHandler()

Register a config handler.

public registerConfigHandler(string $pattern, string $class[, array<string|int, mixed> $params = [] ]) : void
Parameters
$pattern : string
$class : string
$params : array<string|int, mixed> = []

        
On this page

Search results