class MysqlSessionInit implements EventSubscriber (View source)

deprecated Use "charset" option to PDO MySQL Connection instead.

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

Methods

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

Configure Charset and Collation options of MySQL Client for each Connection.

void
postConnect(ConnectionEventArgs $args)

No description

getSubscribedEvents()

{@inheritdoc}

Details

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

Configure Charset and Collation options of MySQL Client for each Connection.

Parameters

string $charset The charset.
string|bool $collation The collation, or FALSE if no collation.

void postConnect(ConnectionEventArgs $args)

Parameters

ConnectionEventArgs $args

Return Value

void

getSubscribedEvents()

{@inheritdoc}