PHP Classes

File: app/settings.php

Recommend this page to a friend!
  Classes of Till Wehowski   PHP RDAP Server   app/settings.php   Download  
File: app/settings.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP RDAP Server
Process RDAP queries about an IP address or domain
Author: By
Last change: build commit
RDAP Server Bootstrap ....
Date: 12 days ago
Size: 555 bytes
 

Contents

Class file image Download
<?php
declare(strict_types=1);

use
DI\ContainerBuilder;
use
Monolog\Logger;

return function (
ContainerBuilder $containerBuilder) {
   
// Global Settings Object
   
$containerBuilder->addDefinitions([
       
'settings' => [
           
'displayErrorDetails' => false, // Should be set to false in production
           
'logger' => [
               
'name' => 'rdap-server',
               
'path' => isset($_ENV['docker']) ? 'php://stdout' : __DIR__ . '/../logs/app.log',
               
'level' => Logger::ERROR,
            ],
        ],
    ]);
};