resources = array_keys($resources); } /** * @return core_kernel_classes_Resource[] the key is a URI of a resource * * @throws common_exception_Error */ public function getInstances(): array { $result = []; foreach ($this->resources as $resource) { $result[$resource] = new core_kernel_classes_Resource($resource); } return $result; } }