‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Database\Middleware\UsableForConnectionInterface Interface Reference
Inheritance diagram for TYPO3\CMS\Core\Database\Middleware\UsableForConnectionInterface:
TYPO3\CMS\Core\Database\Middleware\CustomPdoDriverResultMiddleware TYPO3\CMS\Core\Tests\Functional\Database\Fixtures\DriverMiddlewares\DropForConnectionNamedSecondTestDriverMiddleware

Public Member Functions

 canBeUsedForConnection (string $identifier, array $connectionParams)

Detailed Description

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.

Definition at line 33 of file UsableForConnectionInterface.php.

Member Function Documentation

◆ canBeUsedForConnection()

TYPO3\CMS\Core\Database\Middleware\UsableForConnectionInterface::canBeUsedForConnection ( string  $identifier,
array  $connectionParams