4 * This file is part of Zippy.
6 * (c) Alchemy <info@alchemy.fr>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Alchemy\Zippy\Resource\Teleporter;
14 use Alchemy\Zippy\Resource\Reader\Guzzle\GuzzleReaderFactory;
15 use Alchemy\Zippy\Resource\ResourceLocator;
16 use Alchemy\Zippy\Resource\ResourceReaderFactory;
17 use Alchemy\Zippy\Resource\Writer\FilesystemWriter;
20 * Guzzle Teleporter implementation for HTTP resources
22 * @deprecated Use \Alchemy\Zippy\Resource\GenericTeleporter instead. This class will be removed in v0.5.x
24 class GuzzleTeleporter extends GenericTeleporter
27 * @param ResourceReaderFactory $readerFactory
28 * @param ResourceLocator $resourceLocator
30 public function __construct(ResourceReaderFactory $readerFactory = null, ResourceLocator $resourceLocator = null)
32 parent::__construct($readerFactory ?: new GuzzleReaderFactory(), new FilesystemWriter(), $resourceLocator);
36 * Creates the GuzzleTeleporter
38 * @deprecated This method will be removed in v0.5.x
39 * @return GuzzleTeleporter
41 public static function create()