Permalink
Browse files

Fix unmount action

  • Loading branch information...
1 parent d9c54f0 commit 4cebf0a128cb0f951d3b97e5a89cff36e4204594 @cdujeu cdujeu committed Oct 17, 2016
Showing with 6 additions and 2 deletions.
  1. +6 −2 core/src/plugins/meta.mount/FilesystemMounter.php
@@ -20,6 +20,8 @@
*/
namespace Pydio\Access\Meta\Mount;
+use Psr\Http\Message\ResponseInterface;
+use Psr\Http\Message\ServerRequestInterface;
use Pydio\Access\Core\AbstractAccessDriver;
use Pydio\Auth\Core\MemorySafe;
use Pydio\Core\Model\ContextInterface;
@@ -205,12 +207,14 @@ public function mountFS(ContextInterface $ctx)
}
/**
- * @param ContextInterface $contextInterface
+ * @param ServerRequestInterface $requestInterface
+ * @param ResponseInterface $responseInterface
* @return bool
* @throws \Exception
*/
- public function umountFS(ContextInterface $contextInterface)
+ public function umountFS(ServerRequestInterface $requestInterface, ResponseInterface &$responseInterface)
{
+ $contextInterface = $requestInterface->getAttribute("ctx");
$this->logDebug("FSMounter::unmountFS");
list($user, $password) = $this->getCredentials();
$MOUNT_POINT = $this->getOption($contextInterface, "MOUNT_POINT", $user, $password);

0 comments on commit 4cebf0a

Please sign in to comment.