Overview

Namespaces

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

Traits

  • ClassTrait
  • CollectionTrait
  • ContainerTrait
  • EventsDispatcherTrait
  • OptionsTrait
  • Overview
  • Namespace
  • Class

Trait ContainerTrait

ContainerTrait

Direct Known Users

momentphp\App, momentphp\Bundle, momentphp\Provider, momentphp\Registry, momentphp\Template, momentphp\View, momentphp\CallableResolver, momentphp\Controller, momentphp\DebugInfo, momentphp\Error, momentphp\ExceptionHandler, momentphp\Helper, momentphp\Middleware, momentphp\Model

Indirect Known Users

momentphp\middlewares\AssetsMiddleware, momentphp\middlewares\NegotiationMiddleware, momentphp\providers\SmartyProvider, momentphp\providers\TwigProvider
Namespace: momentphp\traits
Located at traits/ContainerTrait.php
Methods summary
public ContainerInterface|object
# container( Interop\Container\ContainerInterface $container = null )

Container getter/setter

Container getter/setter

Parameters

$container

Returns

ContainerInterface|object
Properties summary
public momentphp\App $app

App

App

#
protected Interop\Container\ContainerInterface $container

Container

Container

#
MomentPHP API documentation generated by ApiGen