private function resolveCallback(string $callback): array
    {
        $segments = explode('@', $callback);
        $method = \count($segments) === 2 ? $segments[1] : 'sanitize';

        // Return the constructed callback.
        return [$this->container->get($segments[0]), $method];
    }