Метод | Описание | |
---|---|---|
__invoke ( Interop\Container\ContainerInterface $container, string $requestedName, array $options = null ) : ZF\Rest\Resource | Create and return the database-connected resource. | |
canCreate ( Interop\Container\ContainerInterface $container, string $requestedName ) : boolean | Can this factory create the requested service? | |
canCreateServiceWithName ( Zend\ServiceManager\ServiceLocatorInterface $container, string $name, string $requestedName ) : boolean | Can this factory create the requested service? (v2) | |
createServiceWithName ( Zend\ServiceManager\ServiceLocatorInterface $container, string $name, string $requestedName ) : ZF\Rest\Resource | Create and return the database-connected resource (v2). |
Метод | Описание | |
---|---|---|
getCollectionFromConfig ( array $config, string $requestedName ) : string | Retrieve the collection class based on the provided configuration. | |
getIdentifierFromConfig ( array $config ) : string | Retrieve the table identifier field from the provided configuration. | |
getResourceClassFromConfig ( array $config, string $requestedName ) : string | Retrieve the resource class based on the provided configuration. | |
getTableGatewayFromConfig ( array $config, string $requestedName, Interop\Container\ContainerInterface $container ) : Zend\Db\TableGateway\TableGatewayInterface | Retrieve a table gateway instance based on provided configuration. | |
isValidConfig ( array $config, string $requestedName, Interop\Container\ContainerInterface $container ) : boolean | Tests if the configuration is valid |
public createServiceWithName ( Zend\ServiceManager\ServiceLocatorInterface $container, string $name, string $requestedName ) : ZF\Rest\Resource | ||
$container | Zend\ServiceManager\ServiceLocatorInterface | |
$name | string | |
$requestedName | string | |
Результат | ZF\Rest\Resource |
protected getIdentifierFromConfig ( array $config ) : string | ||
$config | array | |
Результат | string |
protected getTableGatewayFromConfig ( array $config, string $requestedName, Interop\Container\ContainerInterface $container ) : Zend\Db\TableGateway\TableGatewayInterface | ||
$config | array | |
$requestedName | string | |
$container | Interop\Container\ContainerInterface | |
Результат | Zend\Db\TableGateway\TableGatewayInterface |