public function set(string $name, Closure $definition)
    {
        if ($this->has($name)) {
            throw new DefinitionAlreadyExistsException(
                "Breadcrumbs have already been defined for route [{$name}]."
            );
        }

        $this->definitions[$name] = $definition;
    }