UsableForConnectionInterface extends Middleware
Custom driver middleware can implement this interface to decide per connection and connection configuration if it should be used or not. For example, registering a global driver middleware which only takes affect on connections using a specific driver like `pdo_sqlite`.
Usually this should be a rare case and mostly a driver middleware can be simply configured as a connection middleware directly, which leaves this more or less a special implementation detail for the TYPO3 core.
Table of Contents
Methods
- canBeUsedForConnection() : bool
 - Return true if the driver middleware should be used for the concrete connection.
 
Methods
canBeUsedForConnection()
Return true if the driver middleware should be used for the concrete connection.
    public
                    canBeUsedForConnection(string $identifier, array<string|int, mixed> $connectionParams) : bool
    Parameters
- $identifier : string
 - $connectionParams : array<string|int, mixed>