PHP Class Bolt\EventListener\DoctrineListener

Author: Carson Full ([email protected])
Author: Gawain Lynch ([email protected])
Inheritance: implements Doctrine\Common\EventSubscriber, use trait Psr\Log\LoggerAwareTrait
Show file Open project: bolt/bolt

Public Methods

Method Description
__construct ( Psr\Log\LoggerInterface $logger, Exception $exceptionController )
failConnect ( Bolt\Events\FailedConnectionEvent $args ) Event fired on database connection failure.
getSubscribedEvents ( )
postConnect ( Doctrine\DBAL\Event\ConnectionEventArgs $args ) After connecting, update this connection's database settings.

Method Details

__construct() public method

public __construct ( Psr\Log\LoggerInterface $logger, Exception $exceptionController )
$logger Psr\Log\LoggerInterface
$exceptionController Bolt\Controller\Exception

failConnect() public method

Event fired on database connection failure.
public failConnect ( Bolt\Events\FailedConnectionEvent $args )
$args Bolt\Events\FailedConnectionEvent

getSubscribedEvents() public method

public getSubscribedEvents ( )

postConnect() public method

Note: Doctrine expects this method to be called postConnect
public postConnect ( Doctrine\DBAL\Event\ConnectionEventArgs $args )
$args Doctrine\DBAL\Event\ConnectionEventArgs