Skip to content

Instantly share code, notes, and snippets.

@bulton-fr
Last active August 16, 2018 14:14
Show Gist options
  • Save bulton-fr/88cded4f084c1aba74f9fb00c8020f7b to your computer and use it in GitHub Desktop.
Save bulton-fr/88cded4f084c1aba74f9fb00c8020f7b to your computer and use it in GitHub Desktop.
BFW v3 config file without comments
<?php
/**
* Config file for errors system
*
* @author bulton-fr <[email protected]>
* @version 3.0.0
* @package bfw
*/
return [
'errorRenderFct' => [
'enabled' => false,
'default' => [
'class' => '\BFW\Core\ErrorsDisplay',
'method' => 'defaultErrorRender'
],
'cli' => [
'class' => '\BFW\Core\ErrorsDisplay',
'method' => 'defaultCliErrorRender'
]
],
'exceptionRenderFct' => [
'enabled' => false,
'default' => [
'class' => '\BFW\Core\ErrorsDisplay',
'method' => 'defaultErrorRender'
],
'cli' => [
'class' => '\BFW\Core\ErrorsDisplay',
'method' => 'defaultCliErrorRender'
]
]
];
<?php
/**
* Global config file
*
* @author bulton-fr <[email protected]>
* @version 3.0.0
* @package bfw
*/
return [
'debug' => false,
'sqlSecureMethod' => null
];
<?php
/**
* Config file for memcache(d) system
*
* @author bulton-fr <[email protected]>
* @version 3.0.0
* @package bfw
*/
return [
'memcached' => [
'enabled' => false,
'persistentId' => null,
'servers' => [
[
'host' => '',
'port' => 0,
'weight' => 0
]
]
]
];
<?php
/**
* Config file for modules to use
*
* @author bulton-fr <[email protected]>
* @version 3.0.0
* @package bfw
*/
return [
'modules' => [
'db' => [
'name' => '',
'enabled' => false
],
'controller' => [
'name' => '',
'enabled' => false
],
'router' => [
'name' => '',
'enabled' => false
],
'template' => [
'name' => '',
'enabled' => false
]
]
];
<?php
/**
* Config file for monolog
*
* @author bulton-fr <[email protected]>
* @version 3.0.0
* @package bfw
*/
use Monolog\Logger;
return [
'handlers' => [
[
'name' => '\Monolog\Handler\TestHandler',
'args' => []
]
]
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment