Overview

Namespaces

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

Classes

  • AbstractArgument
  • ClassArgument
  • Definition
  • Factory
  • ScalarArgument

Interfaces

  • ArgumentInterface
  • FactoryInterface
  • Overview
  • Namespace
  • Class

Class Factory

A factory.

Autarky\Container\Factory\Factory implements Autarky\Container\Factory\FactoryInterface
Namespace: Autarky\Container\Factory
Located at Factory/Factory.php
Methods summary
public
# __construct( Autarky\Container\Factory\Definition $definition, array $params = array() )

Constructor.

Constructor.

Parameters

$definition
$params
public static
# getFactory( array $params = array() )

Get a new instance of the factory.

Get a new instance of the factory.

Parameters

$params

Returns

static

Implementation of

Autarky\Container\Factory\FactoryInterface::getFactory()
public mixed
# invoke( Autarky\Container\ContainerInterface $container, array $params = array() )

Invoke the factory.

Invoke the factory.

Parameters

$container
$params

Returns

mixed

Implementation of

Autarky\Container\Factory\FactoryInterface::invoke()
protected
# resolveClassArg( Autarky\Container\ContainerInterface $container, Autarky\Container\Factory\ClassArgument $arg, array $params )
protected
# resolveScalarArg( Autarky\Container\ContainerInterface $container, Autarky\Container\Factory\ScalarArgument $arg, array $params )
public mixed
# __invoke( Autarky\Container\ContainerInterface $container, array $params = array() )

Proxy for the invoke method. Makes the factory class callable.

Proxy for the invoke method. Makes the factory class callable.

Parameters

$container
$params

Returns

mixed
Properties summary
protected Autarky\Container\Factory\Definition $definition

The factory's definition.

The factory's definition.

#
protected array $params

The factory's default parameters.

The factory's default parameters.

#
Autarky Framework API documentation generated by ApiGen