[ticket/15287] Add is_available method

PHPBB3-15287
This commit is contained in:
Rubén Calvo 2017-07-24 01:33:07 +02:00
parent 23e67da331
commit ba8cda4d05
2 changed files with 15 additions and 0 deletions

View file

@ -30,4 +30,12 @@ class local implements provider_interface
{ {
return ['path']; return ['path'];
} }
/**
* {@inheritdoc}
*/
public function is_available()
{
return true;
}
} }

View file

@ -28,4 +28,11 @@ interface provider_interface
* @return array Configuration keys * @return array Configuration keys
*/ */
public function get_options(); public function get_options();
/**
* Return true if the adapter is available.
*
* @return bool
*/
public function is_available();
} }