Skip to content

Instantly share code, notes, and snippets.


Gilles Mergoil gmergoil

View GitHub Profile
gmergoil / MySqlConnector.php
Created Jun 2, 2013
A revised version of the Illuminate\Database\Connectors\MySqlConnector of the Laravel 4 framework. It fixes a bug when using the unix_socket option in the database configuration.
View MySqlConnector.php
<?php namespace Illuminate\Database\Connectors;
class MySqlConnector extends Connector implements ConnectorInterface {
* Establish a database connection.
* @param array $options
* @return PDO