PHP Class ZF\OAuth2\Factory\AuthControllerFactory

Inheritance: implements Zend\ServiceManager\FactoryInterface
Show file Open project: zfcampus/zf-oauth2 Class Usage Examples

Public Methods

Method Description
__invoke ( Interop\Container\ContainerInterface $container, string $requestedName, array $options = null ) : AuthController
createService ( Zend\ServiceManager\ServiceLocatorInterface $controllers, null | string $name = null, null | string $requestedName = null ) : AuthController

Private Methods

Method Description
getOAuth2ServerFactory ( Interop\Container\ContainerInterface $container ) : callable Retrieve the OAuth2\Server factory.
marshalApiProblemErrorResponse ( Interop\Container\ContainerInterface $container ) : boolean Determine whether or not to render API Problem error responses.

Method Details

__invoke() public method

public __invoke ( Interop\Container\ContainerInterface $container, string $requestedName, array $options = null ) : AuthController
$container Interop\Container\ContainerInterface
$requestedName string
$options array
return ZF\OAuth2\Controller\AuthController

createService() public method

public createService ( Zend\ServiceManager\ServiceLocatorInterface $controllers, null | string $name = null, null | string $requestedName = null ) : AuthController
$controllers Zend\ServiceManager\ServiceLocatorInterface
$name null | string
$requestedName null | string
return ZF\OAuth2\Controller\AuthController