Fix unregister storage backend
This commit is contained in:
parent
f2b29f6591
commit
2f935a1fbf
1 changed files with 2 additions and 2 deletions
|
@ -95,7 +95,7 @@ class StorageManager
|
||||||
*
|
*
|
||||||
* @param string $name User readable backend name
|
* @param string $name User readable backend name
|
||||||
*/
|
*/
|
||||||
public static function unregister($class)
|
public static function unregister($name)
|
||||||
{
|
{
|
||||||
self::setup();
|
self::setup();
|
||||||
unset(self::$backends[$name]);
|
unset(self::$backends[$name]);
|
||||||
|
@ -114,7 +114,7 @@ class StorageManager
|
||||||
*
|
*
|
||||||
* @retur int Number of moved resources
|
* @retur int Number of moved resources
|
||||||
*/
|
*/
|
||||||
public static function move(string $dest, $tables = null)
|
public static function move($dest, $tables = null)
|
||||||
{
|
{
|
||||||
if (is_null($dest) || empty($dest)) {
|
if (is_null($dest) || empty($dest)) {
|
||||||
throw Exception('Can\'t move to NULL storage backend');
|
throw Exception('Can\'t move to NULL storage backend');
|
||||||
|
|
Loading…
Reference in a new issue