Files
predis/tests/Predis
Daniele Alessandri 0efcbb7992 Add a way to get the default value of an option from options.
It is not possible to get the default value of a client option using
either its name or instance:

  $options = array(
    'profile' => function ($options, $option) {
      // instance of Predis\Option\OptionInterface
      $profile = $options->getDefault($option);

      // string representing an option handled by $options,
      // returns NULL if the specified name is not handled.
      $profile = $options->getDefault('profile');

      return $profile;
    },
  );

This addition makes it less awkward to get the default value of an
option, especially when not in the context of a callable option
initializer.
2013-02-02 10:30:53 +01:00
..
2012-07-26 16:31:09 +02:00
2012-07-27 12:23:25 +02:00
2012-07-27 12:23:25 +02:00
2012-07-27 12:23:25 +02:00
2012-07-25 21:18:58 +02:00