Beispiel #1
0
 public function __construct()
 {
     $this->container = Container::getInstance();
     $this->registerAlias();
     $this->loadConfig();
     $this->initException();
 }
Beispiel #2
0
 function ioc($build = null, $parameters = [])
 {
     if (is_null($build)) {
         return Container::getInstance();
     }
     return Container::getInstance()->make($build, $parameters);
 }