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];
    }
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];
    }
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 ] ; }
Resolve a callback from a class and method pair.

@param string $callback

@return array<object, string>
Resolve a callback from a class and method pair .