StudioBonito\SilverStripe\Queue\QueueManager
Synopsis
class QueueManager
{
- // members
- protected Config_ForClass $config;
- protected array $connectors = ;
- protected array $connections = ;
- // methods
- public static QueueManager inst()
- public void __construct()
- public bool connected()
- public QueueInterface connection()
- protected QueueInterface resolve()
- protected ConnectorInterface getConnector()
- public void addConnector()
- public void setConfig()
- public Config_ForClass getConfig()
- public string getDefaultDriver()
- public void setDefaultDriver()
- public string getName()
- public mixed __call()
Members
protected
- $config
—
\Config_ForClass
The config instance. - $connections
—
array
The array of resolved queue connections. - $connectors
—
array
The array of resolved queue connections.
Methods
protected
- getConnector() — Get the connector for a given driver.
- resolve() — Resolve a queue connection.
public
- __construct() — Use DI to pass in the connectors
- __call() — Dynamically pass calls to the default connection.
- addConnector() — Add a queue connection resolver.
- connected() — Determine if the driver is connected.
- connection() — Resolve a queue connection instance.
- getConfig() — Get the config instance.
- getDefaultDriver() — Get the name of the default queue connection.
- getName() — Get the full name for the given connection.
- inst() — Fetch the current instance of the queue manager.
- setConfig() — Set the config instance.
- setDefaultDriver() — Set the name of the default queue connection.