public function provider($name, $object = null)
    {
        deprecationWarning(
            'Validator::provider() is deprecated. ' .
            'Use Validator::setProvider()/getProvider() instead.'
        );
        if ($object !== null) {
            return $this->setProvider($name, $object);
        }

        return $this->getProvider($name);
    }