mirror of
https://github.com/bitinflow/expose.git
synced 2026-03-13 13:35:54 +00:00
Merge branch 'share-files' of github.com:beyondcode/phunnel into share-files
This commit is contained in:
@@ -7,15 +7,12 @@ use App\Http\QueryParameters;
|
||||
use GuzzleHttp\Psr7\ServerRequest;
|
||||
use Illuminate\Http\Request;
|
||||
use Psr\Http\Message\ServerRequestInterface;
|
||||
use Ratchet\ConnectionInterface;
|
||||
use React\EventLoop\LoopInterface;
|
||||
use React\Http\Response;
|
||||
use React\Stream\ReadableResourceStream;
|
||||
use Symfony\Bridge\PsrHttpMessage\Factory\HttpFoundationFactory;
|
||||
use Symfony\Component\Finder\Finder;
|
||||
use Symfony\Component\Finder\Glob;
|
||||
use Symfony\Component\Finder\Iterator\FilenameFilterIterator;
|
||||
use Symfony\Component\Finder\SplFileInfo;
|
||||
|
||||
class ConnectionHandler
|
||||
{
|
||||
@@ -70,7 +67,7 @@ class ConnectionHandler
|
||||
'currentPath' => $request->path(),
|
||||
'parentPath' => $parentPath,
|
||||
'directory' => $targetPath,
|
||||
'directoryContent' => $directoryContent
|
||||
'directoryContent' => $directoryContent,
|
||||
])
|
||||
);
|
||||
}
|
||||
@@ -108,6 +105,7 @@ class ConnectionHandler
|
||||
return $this->isAccepted($this->filename);
|
||||
}
|
||||
};
|
||||
|
||||
return $filter->accept();
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,6 @@ namespace App\Client\Fileserver;
|
||||
|
||||
use Psr\Http\Message\ServerRequestInterface;
|
||||
use React\EventLoop\LoopInterface;
|
||||
use React\Http\Response;
|
||||
use React\Http\Server;
|
||||
use React\Socket\Server as SocketServer;
|
||||
|
||||
|
||||
@@ -4,15 +4,8 @@ namespace Tests\Feature\Client;
|
||||
|
||||
use App\Client\Configuration;
|
||||
use App\Client\Factory;
|
||||
use App\Client\Http\HttpClient;
|
||||
use App\Logger\LoggedRequest;
|
||||
use App\Logger\RequestLogger;
|
||||
use Clue\React\Buzz\Browser;
|
||||
use Clue\React\Buzz\Message\ResponseException;
|
||||
use GuzzleHttp\Psr7\Request;
|
||||
use function GuzzleHttp\Psr7\str;
|
||||
use Mockery as m;
|
||||
use Psr\Http\Message\RequestInterface;
|
||||
use Psr\Http\Message\ResponseInterface;
|
||||
use Tests\Feature\TestCase;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user