Skip to content

Commit cbfb4fb

Browse files
committed
formatting
1 parent 66eae04 commit cbfb4fb

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

src/Illuminate/Filesystem/FilesystemManager.php

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -325,19 +325,6 @@ public function set($name, $disk)
325325
$this->disks[$name] = $disk;
326326
}
327327

328-
/**
329-
* Unset the given disks instances.
330-
*
331-
* @param array $names
332-
* @return void
333-
*/
334-
public function unset($names)
335-
{
336-
foreach ($names as $name) {
337-
unset($this->disks[$name]);
338-
}
339-
}
340-
341328
/**
342329
* Get the filesystem connection configuration.
343330
*
@@ -369,6 +356,21 @@ public function getDefaultCloudDriver()
369356
return $this->app['config']['filesystems.cloud'];
370357
}
371358

359+
/**
360+
* Unset the given disk instances.
361+
*
362+
* @param array|string $disk
363+
* @return $this
364+
*/
365+
public function forgetDisk($disk)
366+
{
367+
foreach ((array) $disk as $diskName) {
368+
unset($this->disks[$diskName]);
369+
}
370+
371+
return $this;
372+
}
373+
372374
/**
373375
* Register a custom driver creator Closure.
374376
*

0 commit comments

Comments
 (0)