mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/15287] Add is_available method
PHPBB3-15287
This commit is contained in:
parent
23e67da331
commit
ba8cda4d05
2 changed files with 15 additions and 0 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue