/** * @param string $controller * * @return GenericController */ private function getControllerInstance(string $controller) { if ($this->container && $this->container->has($controller)) { $obj = $this->container->get($controller); } if (!isset($obj)) { $obj = new $controller(); if ($this->container) { $this->container->injectOn($obj); } } return $obj; }
public function offsetExists($id) { return parent::offsetExists($id) || $this->phpdi->has($id); }