removed all files that are in the .gitignore

This commit is contained in:
Exodus4D
2015-08-25 23:20:43 +02:00
parent 39d0d19108
commit 64c71b6d42
105 changed files with 1674 additions and 4327 deletions

View File

@@ -0,0 +1,39 @@
<?php
/**
* Created by PhpStorm.
* User: exodus4d
* Date: 14.06.2015
* Time: 15:24
*/
namespace controller;
class LogController extends Controller {
/**
* get an singleton instance for a logger instance
* @param $logFileName
* @return mixed
*/
public static function getLogger($logFileName){
$f3 = \Base::instance();
$hiveKey = 'LOGGER' . $logFileName;
// check if log controller already exists
if( !$f3->exists($hiveKey) ){
// create new logger instance
$logFile = $logFileName . '.log';
$f3->set($hiveKey, new \Log($logFile));
}
return $f3->get($hiveKey);
}
}