ArgumentParserFactory

Implements \Kocuj\Di\ArgumentParser\ArgumentParserFactoryInterface

Service argument parser factory

package

Kocuj\Di\ArgumentParser

Methods

Create object with parser for service argument

create(\Kocuj\Di\Container\ContainerInterface $container, string $id, array $argument) : \Kocuj\Di\ArgumentParser\ArgumentParserInterface
see \Kocuj\Di\ArgumentParser\ArgumentParserInterface::create()
codeCoverageIgnore
Throws
\Kocuj\Di\ArgumentParser\Exception

Arguments

$container

\Kocuj\Di\Container\ContainerInterface

Dependency injection container for services

$id

string

Service identifier

$argument

array

Service argument to parse

Response

\Kocuj\Di\ArgumentParser\ArgumentParserInterface

Object with service argument parser