Lines Matching refs:available
18 * Given an array of mechanism names, choose the best one available.
53 * supported and available mechanisms to the client via some facility
57 * So basically we are on our own in determining the best available mechanism from a list. This really seems like
61 * @param MechanismInterface[] $available
65 protected function selectMech(array $available): MechanismInterface
73 usort($available, function (MechanismInterface $mechA, MechanismInterface $mechB) {
84 $first = array_shift($available);
101 $available = $this->filterFromChoices($choices);
102 if (count($available) === 0) {
106 $available = $this->filterOptions($available, $options);
107 if (count($available) === 0) {
111 return $available;
135 * @param MechanismInterface[] $available
139 protected function filterOptions(array $available, array $options): array
146 return $available;
153 $supportsInt = array_filter($available, function (MechanismInterface $mech) use ($useIntegrity) {
159 $supportsPriv = array_filter($available, function (MechanismInterface $mech) use ($usePrivacy) {