Ejemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 protected static function configureOptionResolver(OptionsResolver $resolver)
 {
     parent::configureOptionResolver($resolver);
     $resolver->setDefaults(['host' => '127.0.0.1', 'port' => '6379']);
     $resolver->setAllowedTypes('host', ['string']);
     $resolver->setAllowedTypes('port', ['string', 'int']);
 }
Ejemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 protected static function configureOptionResolver(OptionsResolver $resolver)
 {
     parent::configureOptionResolver($resolver);
     $resolver->setDefaults(['host' => '127.0.0.1', 'port' => '6379', 'scheme' => 'tcp', 'pool_namespace' => null]);
     $resolver->setAllowedTypes('host', ['string']);
     $resolver->setAllowedTypes('port', ['string', 'int']);
     $resolver->setAllowedTypes('scheme', ['string']);
     $resolver->setAllowedTypes('pool_namespace', ['string', 'null']);
 }