Update PicoDb

This commit is contained in:
Frederic Guillot
2016-05-14 22:19:10 -04:00
parent e08b5efba9
commit 68c087e85c
4 changed files with 26 additions and 21 deletions

View File

@@ -20,8 +20,13 @@ class DatabaseProvider implements ServiceProviderInterface
public function register(Container $container)
{
$container['db'] = $this->getInstance();
$container['db']->stopwatch = DEBUG;
$container['db']->logQueries = DEBUG;
if (DEBUG) {
$container['db']->getStatementHandler()
->withLogging()
->withStopWatch()
;
}
return $container;
}