Dependency injection container for use by ZBateson\MailMimeParser - because a more complex one seems like overkill.

Constructs objects and whatever dependencies they require.

author Zaahid Bateson
package MailMimeParser

 Methods

Constructs a Container - call singleton() to invoke

__construct() 

Returns a CharsetConverter.

getCharsetConverter() : \ZBateson\StreamDecorators\Util\CharsetConverter

Returns

\ZBateson\StreamDecorators\Util\CharsetConverter

Returns the header consumer service

getConsumerService() : \ZBateson\MailMimeParser\Header\Consumer\ConsumerService

Returns

\ZBateson\MailMimeParser\Header\Consumer\ConsumerService

Returns the header factory service instance.

getHeaderFactory() : \ZBateson\MailMimeParser\Header\HeaderFactory

Returns

\ZBateson\MailMimeParser\Header\HeaderFactory

Returns the part factory service

getHeaderPartFactory() : \ZBateson\MailMimeParser\Header\Part\HeaderPartFactory

Returns

\ZBateson\MailMimeParser\Header\Part\HeaderPartFactory

Returns a MessageHelperService instance.

getMessageHelperService() : \ZBateson\MailMimeParser\Message\Helper\MessageHelperService

Returns

\ZBateson\MailMimeParser\Message\Helper\MessageHelperService

Returns the MimeLiteralPartFactory service

getMimeLiteralPartFactory() : \ZBateson\MailMimeParser\Header\Part\MimeLiteralPartFactory

Returns

\ZBateson\MailMimeParser\Header\Part\MimeLiteralPartFactory

Returns a PartBuilderFactory instance.

getPartBuilderFactory() : \ZBateson\MailMimeParser\Message\Part\Factory\PartBuilderFactory

Returns

\ZBateson\MailMimeParser\Message\Part\Factory\PartBuilderFactory

Returns a PartFactoryService singleton.

getPartFactoryService() : \ZBateson\MailMimeParser\Message\Part\Factory\PartFactoryService

Returns

\ZBateson\MailMimeParser\Message\Part\Factory\PartFactoryService

Returns a PartFilterFactory instance

getPartFilterFactory() : \ZBateson\MailMimeParser\PartFilterFactory

Returns

\ZBateson\MailMimeParser\PartFilterFactory

Returns a PartStreamFilterManagerFactory.

getPartStreamFilterManagerFactory() : \ZBateson\MailMimeParser\Message\Part\Factory\PartStreamFilterManagerFactory

Returns

\ZBateson\MailMimeParser\Message\Part\Factory\PartStreamFilterManagerFactory

Returns a StreamFactory.

getStreamFactory() : \ZBateson\MailMimeParser\StreamFactory

Returns

\ZBateson\MailMimeParser\StreamFactory

Constructs and returns a new MessageParser object.

newMessageParser() : \ZBateson\MailMimeParser\Message\MessageParser

Returns

\ZBateson\MailMimeParser\Message\MessageParser

Returns a singleton 'service' instance for the given service named $var with a class type of $class.

getInstance(string $var, string $class) : mixed

Parameters

$var

string

the name of the service

$class

string

the name of the class

Returns

mixedthe service object

 Properties

 

singleton 'service' instance

$consumerService : \ZBateson\MailMimeParser\Header\Consumer\ConsumerService

Default

 

singleton 'service' instance

$headerFactory : \ZBateson\MailMimeParser\Header\HeaderFactory

Default

 

singleton 'service' instance

$headerPartFactory : \ZBateson\MailMimeParser\Header\Part\HeaderPartFactory

Default

 

Used to get MessageHelper singletons

$messageHelperService : \ZBateson\MailMimeParser\Message\Helper\MessageHelperService

Default

 

singleton 'service' instance

$mimeLiteralPartFactory : \ZBateson\MailMimeParser\Header\Part\MimeLiteralPartFactory

Default

 

The PartBuilderFactory instance

$partBuilderFactory : \ZBateson\MailMimeParser\Message\Part\Factory\PartBuilderFactory

Default

 

The PartFactoryService instance

$partFactoryService : \ZBateson\MailMimeParser\Message\Part\Factory\PartFactoryService

Default

 

The PartFilterFactory instance

$partFilterFactory : \ZBateson\MailMimeParser\PartFilterFactory

Default

 

The PartStreamFilterManagerFactory instance

$partStreamFilterManagerFactory : \ZBateson\MailMimeParser\Message\Part\Factory\PartStreamFilterManagerFactory

Default

 

$streamFactory

$streamFactory : \ZBateson\MailMimeParser\StreamFactory

Default