app/library/Services.php: database: no need for $di in closure.
This commit is contained in:
parent
f9050181d0
commit
b3254e1f6c
1 changed files with 1 additions and 1 deletions
|
|
@ -110,7 +110,7 @@ class Services extends DiDefault
|
|||
$db = new $class($dbConfig);
|
||||
|
||||
$eventsManager = new \Phalcon\Events\Manager();
|
||||
$eventsManager->attach('db', function ($event, $connection) use ($di, $logger) {
|
||||
$eventsManager->attach('db', function ($event, $connection) use ($logger) {
|
||||
|
||||
if ($event->getType() == 'beforeQuery') {
|
||||
$logger->log($connection->getRealSQLStatement(), Logger::INFO);
|
||||
|
|
|
|||
Reference in a new issue