Overview

Namespaces

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

Classes

  • ConfigProvider
  • FileStore
  • LoaderFactory

Interfaces

  • ConfigInterface
  • LoaderInterface

Exceptions

  • LoadException
  • Overview
  • Namespace
  • Class

Class LoaderFactory

Factory for file-based loaders.

Keeps an array of extension => class, where the class is lazily resolved out of the framework's service container when needed.

Namespace: Autarky\Config
Located at Config/LoaderFactory.php
Methods summary
public
# __construct( Autarky\Container\ClassResolverInterface $container )

Parameters

$container
public
# addLoader( string $extensions, string|Autarky\Config\LoaderInterface $loaderClass )

Add a loader.

Add a loader.

Parameters

$extensions
$loaderClass
public array
# getExtensions( )

Get the available extensions.

Get the available extensions.

Returns

array
public Autarky\Config\LoaderInterface
# getForPath( string $path )

Get the loader for a given path.

Get the loader for a given path.

Parameters

$path

Returns

Autarky\Config\LoaderInterface
protected
# resolveLoader( $extension )
protected
# getExtension( $path )
Properties summary
protected Autarky\Container\ClassResolverInterface $container

The container instance.

The container instance.

#
protected string[] $loaderClasses

The loader classes.

The loader classes.

# []
protected Autarky\Config\LoaderInterface[] $loaders

The loader class instances.

The loader class instances.

# []
protected string[] $extensions

The registered extensions.

The registered extensions.

# []
Autarky Framework API documentation generated by ApiGen