예제 #1
0
 /**
  * Returns the "types" this adapter can handle.
  *
  * If no $providesBase is present, returns "basic" and/or "digest" in the
  * array, based on what resolvers are present in the adapter; if
  * $providesBase is present, the same strings are returned, only with the
  * $providesBase prefixed, along with a "-" separator.
  *
  * @return array Array of types this adapter can handle.
  */
 public function provides()
 {
     $providesBase = $this->providesBase ? $this->providesBase . '-' : '';
     $provides = [];
     if ($this->httpAuth->getBasicResolver()) {
         $provides[] = $providesBase . 'basic';
     }
     if ($this->httpAuth->getDigestResolver()) {
         $provides[] = $providesBase . 'digest';
     }
     return $provides;
 }