mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 23:07:39 +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'];
|
return ['path'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*/
|
||||||
|
public function is_available()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@@ -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();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user