Пример #1
0
#!/usr/bin/env php
<?php 
$autoloader_use_console = true;
require_once 'autoloader.php';
use NigeLib\Console;
use NigeLib\ConfigFacade as Config;
use NigeLib\DatabaseConnectionManagerFacade as DB;
Config::init('localconfig', null, 'config');
Console::info(DB::get('temp'));
Пример #2
0
#!/usr/bin/env php
<?php 
$autoloader_use_console = true;
require_once 'autoloader.php';
use NigeLib\ConfigFacade as Config;
use NigeLib\DatabaseConnectionManagerFacade as DB;
use NigeLib\Console;
use NigeLib\Environment;
Console::important('Test script for NigeLib.');
Config::init('localconfig', Environment::getEnvironmentName('envmap.php'), 'config');
Config::reload();
Config::dump();
Console::debug(DB::get('temp'));
// Invoke style...
$cfg = NigeLib\Config::getSingleton();
Console::info($cfg('app.logfile'));
Console::info(Config::get('app.logfile'));