fix settings object
This commit is contained in:
parent
8fd40d3814
commit
62055021cb
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
class DB{
|
class DB{
|
||||||
private $pdo;
|
private $pdo=null;
|
||||||
|
|
||||||
public function __construct($dbpdo){
|
public function __construct($dbpdo){
|
||||||
|
|
||||||
|
@ -5,6 +5,7 @@ use Slim\Flash\Messages;
|
|||||||
|
|
||||||
$container = new Container();
|
$container = new Container();
|
||||||
// $container = $app->getContainer();
|
// $container = $app->getContainer();
|
||||||
|
|
||||||
$container->set('settings', function(){
|
$container->set('settings', function(){
|
||||||
return [
|
return [
|
||||||
'displayErrorDetails' => true, // set to false in production
|
'displayErrorDetails' => true, // set to false in production
|
||||||
@ -22,7 +23,6 @@ $container->set('settings', function(){
|
|||||||
'debug' => true
|
'debug' => true
|
||||||
],
|
],
|
||||||
|
|
||||||
// Monolog settings
|
|
||||||
|
|
||||||
'db' => [
|
'db' => [
|
||||||
'path' => __DIR__."/../db/surfaces2018.db",
|
'path' => __DIR__."/../db/surfaces2018.db",
|
||||||
|
Loading…
Reference in New Issue
Block a user