class MysqlSessionInit implements EventSubscriber (View source)

MySQL Session Init Event Subscriber which allows to set the Client Encoding of the Connection

Methods

__construct(string $charset = 'utf8', string $collation = false)

Configure Charset and Collation options of MySQL Client for each Connection

void
postConnect(ConnectionEventArgs $args)

No description

getSubscribedEvents()

No description

Details

__construct(string $charset = 'utf8', string $collation = false)

Configure Charset and Collation options of MySQL Client for each Connection

Parameters

string $charset
string $collation

void postConnect(ConnectionEventArgs $args)

Parameters

ConnectionEventArgs $args

Return Value

void

getSubscribedEvents()