Class ResourceControllerFactory

package PhlyRestfully\Factory

 Methods

Determine if we can create a service with name

canCreateServiceWithName(\Laminas\ServiceManager\ServiceLocatorInterface $controllers, string $name, string $requestedName) : bool

Parameters

$controllers

\Laminas\ServiceManager\ServiceLocatorInterface

$name

string

$requestedName

string

Returns

bool

Create service with name

createServiceWithName(\Laminas\ServiceManager\ServiceLocatorInterface $controllers, string $name, string $requestedName) : \PhlyRestfully\ResourceController

Parameters

$controllers

\Laminas\ServiceManager\ServiceLocatorInterface

$name

string

$requestedName

string

Exceptions

\Laminas\ServiceManager\Exception\ServiceNotCreatedException if listener specified is not a ListenerAggregate

Returns