nkt / silex-pdo-provider
Silex 的 PDO 提供器
v1.0
2014-04-20 22:59 UTC
Requires
- ext-pdo: *
- silex/silex: *
This package is auto-updated.
Last update: 2024-09-04 12:51:48 UTC
README
Silex 的 PDO 提供器
使用方法
$app->register(new \Silex\Provider\PDOServiceProvider, array( 'pdo.dsn' => 'mysql:host=localhost;dbname=foobar', // sqlite::memory: by default 'pdo.username' => 'nkt', // null by default 'pdo.password' => 'hello world', // null by default 'pdo.attributes' => array(), // empty array by default 'pdo.class_name' => 'MyCustomPDOClass' // PDO by default ));
许可协议
MIT