public function registerMiddleware(string $name, string $middleware, ?int $priority = null): Dispatcher
	{
		$this->middleware[$name] = $middleware;

		if($priority !== null)
		{
			$this->middlewarePriority[$name] = $priority;
		}

		return $this;
	}