Overview

Namespaces

  • momentphp
    • exceptions
    • interfaces
    • middlewares
    • providers
    • traits
  • None

Classes

  • App
  • Bundle
  • Cache
  • CallableResolver
  • Config
  • Controller
  • Database
  • DebugInfo
  • Error
  • ExceptionHandler
  • FlashMessages
  • Helper
  • Log
  • Middleware
  • Model
  • ObjectCache
  • Provider
  • Registry
  • Router
  • Settings
  • SmartyViewEngine
  • Template
  • TwigViewEngine
  • View
  • Overview
  • Namespace
  • Class

Class Registry

Registry

momentphp\Registry uses momentphp\traits\ContainerTrait, momentphp\traits\CollectionTrait
Namespace: momentphp
Located at Registry.php
Methods summary
public
# __construct( Interop\Container\ContainerInterface $container )

Constructor

Constructor

Parameters

$container
public object
# load( string $name )

Loads/constructs an object instance

Loads/constructs an object instance

Parameters

$name

Returns

object
public object
# factory( string $name, array $options = [] )

Return new instance

Return new instance

Parameters

$name
$options

Returns

object
public
# factoryCallback( null|callable $callback = null )

Factory callback getter/setter

Factory callback getter/setter

Parameters

$callback

Returns


$this|\Closure
public array
# options( string $name )

Return options from configuration

Return options from configuration

Parameters

$name

Returns

array
protected string
# prefix( string $name )

Add prefix

Add prefix

'PostModel' -> 'models\PostModel'

Parameters

$name

Returns

string
public object|momentphp\Registry
# __get( string $name )

Loads/constructs an object instance

Loads/constructs an object instance

Parameters

$name

Returns

object|momentphp\Registry
$this
public boolean
# __isset( string $name )

Dynamic properties inside Twig templates

Dynamic properties inside Twig templates

Parameters

$name

Returns

boolean

Link

http://twig.sensiolabs.org/doc/recipes.html#using-dynamic-object-properties
Methods used from momentphp\traits\ContainerTrait
container()
Methods used from momentphp\traits\CollectionTrait
collection()
Properties summary
protected array $path

Path

Path

# []
protected callable $factoryCallback

Factory callback

Factory callback

#
Properties used from momentphp\traits\ContainerTrait
$app, $container
Properties used from momentphp\traits\CollectionTrait
$collection
MomentPHP API documentation generated by ApiGen