public function getTypes() { $types = []; foreach ($this->types as $id => $service) { $types[$id] = $this->container->get($service); } return $types; }