PHP Класс Bolt\EventListener\DoctrineListener

Автор: Carson Full ([email protected])
Автор: Gawain Lynch ([email protected])
Наследование: implements Doctrine\Common\EventSubscriber, use trait Psr\Log\LoggerAwareTrait
Показать файл Открыть проект

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный Метод

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

failConnect() публичный Метод

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

getSubscribedEvents() публичный Метод

public getSubscribedEvents ( )

postConnect() публичный Метод

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