Container
Dependency injection container for use by ZBateson\MailMimeParser - because a more complex one seems like overkill.
Constructs objects and whatever dependencies they require.
Tags
Table of Contents
- $consumerService : ConsumerService
- $headerFactory : HeaderFactory
- $headerPartFactory : HeaderPartFactory
- $messageHelperService : MessageHelperService
- $mimeLiteralPartFactory : MimeLiteralPartFactory
- $partBuilderFactory : PartBuilderFactory
- $partFactoryService : PartFactoryService
- $partFilterFactory : PartFilterFactory
- $partStreamFilterManagerFactory : PartStreamFilterManagerFactory
- $streamFactory : StreamFactory
- __construct() : mixed
- Constructs a Container - call singleton() to invoke
- getCharsetConverter() : MbWrapper
- Returns a MbWrapper.
- getConsumerService() : ConsumerService
- Returns the header consumer service
- getHeaderFactory() : HeaderFactory
- Returns the header factory service instance.
- getHeaderPartFactory() : HeaderPartFactory
- Returns the part factory service
- getMessageHelperService() : MessageHelperService
- Returns a MessageHelperService instance.
- getMimeLiteralPartFactory() : MimeLiteralPartFactory
- Returns the MimeLiteralPartFactory service
- getPartBuilderFactory() : PartBuilderFactory
- Returns a PartBuilderFactory instance.
- getPartFactoryService() : PartFactoryService
- Returns a PartFactoryService singleton.
- getPartFilterFactory() : PartFilterFactory
- Returns a PartFilterFactory instance
- getPartStreamFilterManagerFactory() : PartStreamFilterManagerFactory
- Returns a PartStreamFilterManagerFactory.
- getStreamFactory() : StreamFactory
- Returns a StreamFactory.
- newMessageParser() : MessageParser
- Constructs and returns a new MessageParser object.
- getInstance() : mixed
- Returns a singleton 'service' instance for the given service named $var with a class type of $class.
Properties
$consumerService
protected
ConsumerService
$consumerService
$headerFactory
protected
HeaderFactory
$headerFactory
$headerPartFactory
protected
HeaderPartFactory
$headerPartFactory
$messageHelperService
protected
MessageHelperService
$messageHelperService
$mimeLiteralPartFactory
protected
MimeLiteralPartFactory
$mimeLiteralPartFactory
$partBuilderFactory
protected
PartBuilderFactory
$partBuilderFactory
$partFactoryService
protected
PartFactoryService
$partFactoryService
$partFilterFactory
protected
PartFilterFactory
$partFilterFactory
$partStreamFilterManagerFactory
protected
PartStreamFilterManagerFactory
$partStreamFilterManagerFactory
$streamFactory
protected
StreamFactory
$streamFactory
Methods
__construct()
Constructs a Container - call singleton() to invoke
public
__construct() : mixed
Return values
mixed —getCharsetConverter()
Returns a MbWrapper.
public
getCharsetConverter() : MbWrapper
Return values
MbWrapper —getConsumerService()
Returns the header consumer service
public
getConsumerService() : ConsumerService
Return values
ConsumerService —getHeaderFactory()
Returns the header factory service instance.
public
getHeaderFactory() : HeaderFactory
Return values
HeaderFactory —getHeaderPartFactory()
Returns the part factory service
public
getHeaderPartFactory() : HeaderPartFactory
Return values
HeaderPartFactory —getMessageHelperService()
Returns a MessageHelperService instance.
public
getMessageHelperService() : MessageHelperService
Return values
MessageHelperService —getMimeLiteralPartFactory()
Returns the MimeLiteralPartFactory service
public
getMimeLiteralPartFactory() : MimeLiteralPartFactory
Return values
MimeLiteralPartFactory —getPartBuilderFactory()
Returns a PartBuilderFactory instance.
public
getPartBuilderFactory() : PartBuilderFactory
Return values
PartBuilderFactory —getPartFactoryService()
Returns a PartFactoryService singleton.
public
getPartFactoryService() : PartFactoryService
Return values
PartFactoryService —getPartFilterFactory()
Returns a PartFilterFactory instance
public
getPartFilterFactory() : PartFilterFactory
Return values
PartFilterFactory —getPartStreamFilterManagerFactory()
Returns a PartStreamFilterManagerFactory.
public
getPartStreamFilterManagerFactory() : PartStreamFilterManagerFactory
Return values
PartStreamFilterManagerFactory —getStreamFactory()
Returns a StreamFactory.
public
getStreamFactory() : StreamFactory
Return values
StreamFactory —newMessageParser()
Constructs and returns a new MessageParser object.
public
newMessageParser() : MessageParser
Return values
MessageParser —getInstance()
Returns a singleton 'service' instance for the given service named $var with a class type of $class.
protected
getInstance(string $var, string $class) : mixed
Parameters
- $var : string
-
the name of the service
- $class : string
-
the name of the class
Return values
mixed —the service object