Class AbstractConfigFactory

package Default

 Methods

addPattern()

addPattern(string $pattern) : \Zend\Config\AbstractConfigFactory
fluent This method is part of a fluent interface and will return the same instance

Parameters

$pattern

string

Exceptions

\Zend\Config\Exception\InvalidArgumentException

Returns

\Zend\Config\AbstractConfigFactory

addPatterns()

addPatterns(array|\Traversable $patterns) : \Zend\Config\AbstractConfigFactory
fluent This method is part of a fluent interface and will return the same instance

Parameters

$patterns

array\Traversable

Exceptions

\Zend\Config\Exception\InvalidArgumentException

Returns

\Zend\Config\AbstractConfigFactory

Determine if we can create a service with name

canCreateServiceWithName(\Zend\ServiceManager\ServiceLocatorInterface $serviceLocator, string $name, string $requestedName) : boolean
inherited_from \Zend\ServiceManager\AbstractFactoryInterface::canCreateServiceWithName()

Parameters

$serviceLocator

\Zend\ServiceManager\ServiceLocatorInterface

$name

string

$requestedName

string

Returns

boolean

Create service with name

createServiceWithName(\Zend\ServiceManager\ServiceLocatorInterface $serviceLocator, string $name, string $requestedName) : string | mixed | array
inherited_from \Zend\ServiceManager\AbstractFactoryInterface::createServiceWithName()

Parameters

$serviceLocator

\Zend\ServiceManager\ServiceLocatorInterface

$name

string

$requestedName

string

Returns

stringmixedarray

getPatterns()

getPatterns() : array

Returns

array

setPatterns()

setPatterns(array|\Traversable $patterns) : \Zend\Config\AbstractConfigFactory
fluent This method is part of a fluent interface and will return the same instance

Parameters

$patterns

array\Traversable

Exceptions

\InvalidArgumentException

Returns

\Zend\Config\AbstractConfigFactory

match()

match(string $requestedName) : null | string

Parameters

$requestedName

string

Returns

nullstring

 Properties

 

$configs

$configs : array

Default

array()
 

$defaultPatterns

$defaultPatterns : array<mixed,string>

Default

array('#config[\._-](.*)$#i', '#^(.*)[\\\\\._-]config$#i')
 

$patterns

$patterns : array<mixed,string>

Default