MailMimeParser 1.1

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
author

Zaahid Bateson

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

$partFilterFactory

protected PartFilterFactory $partFilterFactory

$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

getPartFilterFactory()

Returns a PartFilterFactory instance

public getPartFilterFactory() : PartFilterFactory
Return values
PartFilterFactory

getStreamFactory()

Returns a StreamFactory.

public getStreamFactory() : StreamFactory
Return values
StreamFactory

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

Search results