Maybe its strange, but many time I see, its:
$di->set('db', function()
it means, it alway creates another connection whenever its getted. Shouldnt it be:
$di->setShared('db', function()
then? Or is there any pitfall?
Maybe its strange, but many time I see, its:
$di->set('db', function()
it means, it alway creates another connection whenever its getted. Shouldnt it be:
$di->setShared('db', function()
then? Or is there any pitfall?