Overview

Namespaces

  • Autarky
    • Config
      • Loaders
    • Console
    • Container
      • Exception
      • Factory
      • Proxy
    • Database
    • Errors
    • Events
    • Files
    • Http
    • Logging
    • Providers
    • Routing
      • Events
    • Testing
    • TwigTemplating
      • Extensions
    • Utils

Classes

  • CachingYamlFileLoader
  • PhpFileLoader
  • YamlFileLoader
  • Overview
  • Namespace
  • Class

Class CachingYamlFileLoader

Caching wrapper for the YAML/YML config file loader.

Autarky\Config\Loaders\YamlFileLoader implements Autarky\Config\LoaderInterface
Extended by Autarky\Config\Loaders\CachingYamlFileLoader
Namespace: Autarky\Config\Loaders
Located at Config/Loaders/CachingYamlFileLoader.php
Methods summary
public
# __construct( Symfony\Component\Yaml\Parser $parser, string $cacheDir, boolean $stat = true )

Constructor.

Constructor.

Parameters

$parser
$cacheDir
$stat

Overrides

Autarky\Config\Loaders\YamlFileLoader::__construct()
public array
# load( string $path )

Load a config resource.

Load a config resource.

Parameters

$path
$location

Returns

array

Throws

RuntimeException
If location does not contain valid data

Overrides

Autarky\Config\Loaders\YamlFileLoader::load()
protected
# shouldLoadCache( $path, $cachePath )
Properties summary
protected string $cacheDir

The directory in which to look for cached files.

The directory in which to look for cached files.

#
protected boolean $stat

Whether or not to check if cache files are outdated.

Whether or not to check if cache files are outdated.

#
Properties inherited from Autarky\Config\Loaders\YamlFileLoader
$filesys, $parser
Autarky Framework API documentation generated by ApiGen