<?php
class Theme { static protected $instance; static public function getInstance() { if (!static::$instance) { $class = "\\Themes\\".THEME."\\Theme"; if (!$class) { throw new \Exception("Default Logger not configured"); } static::$instance = new $class(); } return static::$instance; } } 