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 PhpFileLoader

PHP file config loader.

Works with PHP files which declare a file-wide "return" statement which returns an associative array.

Autarky\Config\Loaders\PhpFileLoader implements Autarky\Config\LoaderInterface
Namespace: Autarky\Config\Loaders
Located at Config/Loaders/PhpFileLoader.php
Methods summary
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

Implementation of

Autarky\Config\LoaderInterface::load()
protected static mixed
# requireFile( string $_path )

Require a file and return the result.

Require a file and return the result.

Static method to make it impossible to reference $this in the file.

Parameters

$_path

Returns

mixed
Autarky Framework API documentation generated by ApiGen