mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/15287] Add is_available method
PHPBB3-15287
This commit is contained in:
@@ -30,4 +30,12 @@ class local implements provider_interface
|
||||
{
|
||||
return ['path'];
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function is_available()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@@ -28,4 +28,11 @@ interface provider_interface
|
||||
* @return array Configuration keys
|
||||
*/
|
||||
public function get_options();
|
||||
|
||||
/**
|
||||
* Return true if the adapter is available.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function is_available();
|
||||
}
|
||||
|
Reference in New Issue
Block a user