PHP Class Uecode\Bundle\QPushBundle\Provider\CustomProvider

Author: Keith Kirk ([email protected])
Inheritance: extends AbstractProvider
Exibir arquivo Open project: uecode/qpush-bundle

Public Methods

Method Description
__construct ( string $name, array $options, mixed $client, Doctrine\Common\Cache\Cache $cache, Logger $logger )
create ( ) Builds the configured queues
delete ( $id ) : boolean {@inheritDoc}
destroy ( ) : boolean
getProvider ( )
publish ( array $message, array $options = [] ) : string {@inheritDoc}
receive ( array $options = [] ) {@inheritDoc}
setClient ( Uecode\Bundle\QPushBundle\Provider\ProviderInterface $client ) : CustomProvider

Method Details

__construct() public method

public __construct ( string $name, array $options, mixed $client, Doctrine\Common\Cache\Cache $cache, Logger $logger )
$name string
$options array
$client mixed
$cache Doctrine\Common\Cache\Cache
$logger Monolog\Logger

create() public method

If a Queue name is passed and configured, this method will build only that Queue. All Create methods are idempotent, if the resource exists, the current ARN will be returned
public create ( )

delete() public method

{@inheritDoc}
public delete ( $id ) : boolean
return boolean

destroy() public method

public destroy ( ) : boolean
return boolean

getProvider() public method

public getProvider ( )

publish() public method

This method will either use a SNS Topic to publish a queued message or straight to SQS depending on the application configuration.
public publish ( array $message, array $options = [] ) : string
$message array
$options array
return string

receive() public method

{@inheritDoc}
public receive ( array $options = [] )
$options array

setClient() public method

public setClient ( Uecode\Bundle\QPushBundle\Provider\ProviderInterface $client ) : CustomProvider
$client Uecode\Bundle\QPushBundle\Provider\ProviderInterface
return CustomProvider