public function configureOptions(OptionsResolver $resolver): void
    {
        $resolver
            ->setRequired([
                'user',
            ])
            ->setDefaults([
                'exception_handler' => static function (RunetIdException $exception) {
                    throw $exception;
                },
                'item' => null,
                'product' => null,
                'recover_item' => true,
            ])
            ->setAllowedTypes('exception_handler', 'callable')
            ->setAllowedTypes('item', ['null', ItemResult::class])
            ->setAllowedTypes('product', ['null', 'int', 'object'])
            ->setNormalizer('product', NormalizerFactory::createProductNormalizer())
            ->setAllowedTypes('recover_item', 'bool')
            ->setAllowedTypes('user', ['int', 'object'])
            ->setNormalizer('user', NormalizerFactory::createUserNormalizer());
    }
public function configureOptions(OptionsResolver $resolver): void
    {
        $resolver
            ->setRequired([
                'user',
            ])
            ->setDefaults([
                'exception_handler' => static function (RunetIdException $exception) {
                    throw $exception;
                },
                'item' => null,
                'product' => null,
                'recover_item' => true,
            ])
            ->setAllowedTypes('exception_handler', 'callable')
            ->setAllowedTypes('item', ['null', ItemResult::class])
            ->setAllowedTypes('product', ['null', 'int', 'object'])
            ->setNormalizer('product', NormalizerFactory::createProductNormalizer())
            ->setAllowedTypes('recover_item', 'bool')
            ->setAllowedTypes('user', ['int', 'object'])
            ->setNormalizer('user', NormalizerFactory::createUserNormalizer());
    }
{@inheritdoc}