Slide 20
Slide 20 text
new PDO()を発見!
// vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php
protected function createPdoConnection($dsn, $username, $password, $options)
{
if (class_exists(PDOConnection::class) && ! $this->isPersistentConnection($options)) {
return new PDOConnection($dsn, $username, $password, $options);
}
return new PDO($dsn, $username, $password, $options);
}