PHP Classes

File: src/settings.php

Recommend this page to a friend!
  Classes of uche   PHP Job Portal Project API   src/settings.php   Download  
File: src/settings.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP Job Portal Project API
API to post working jobs and let freelancers apply
Author: By
Last change:
Date: 2 years ago
Size: 769 bytes
 

Contents

Class file image Download
<?php
return [
   
'settings' => [
       
'displayErrorDetails' => true, // set to false in production
       
'addContentLengthHeader' => false, // Allow the web server to send the content-length header

        // Renderer settings
       
'renderer' => [
           
'template_path' => __DIR__ . '/../templates/',
        ],

       
// Monolog settings
       
'logger' => [
           
'name' => 'slim-app',
           
'path' => isset($_ENV['docker']) ? 'php://stdout' : __DIR__ . '/../logs/app.log',
           
'level' => \Monolog\Logger::DEBUG,
        ],
       
"db" => [
           
"host" => getenv('db_host'),
           
"dbname" => getenv('db_name'),
           
"user" => getenv('db_user'),
           
"pass" => getenv('db_pass')
        ]
    ],
];