<?php
namespace Gm\Config;
use Gm\Controller\User;
use Gm\Controller\Lamp;

class ClassMapDef {
    public function getClassObj($class): object {
        $dir = 'Gm\\' . 'Controller\\' . $class;
        $map = [
            'User' => $dir,
            'Log' => $dir,
            'Server' => $dir,
            'Gm' => $dir,
            'Xhprof' => $dir,
            'Lamp' => $dir,
            'Notice' => $dir,
            'Operate' => $dir,
        ];
        return new $map[$class];
    }
}