protected function createServicesFromArray(
        array $services,
        string $path
    ) : void {
        if (!isset($services["services"])) {
            throw new Exception("The configuration array is missing the key 'services' in file '$path'.");
        }

        foreach ($services["services"] as $name => $service) {
            try {
                $this->createService($name, $service);
            } catch (Exception $e) {
                throw new Exception($e->getMessage() . " In configuration file '$path'.");
            }
        }
    }