for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of Compressy.
*
* (c) Alchemy <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Gocobachi\Compressy\Resource\Teleporter;
use Gocobachi\Compressy\Resource\Reader\Guzzle\GuzzleReaderFactory;
use Gocobachi\Compressy\Resource\ResourceLocator;
use Gocobachi\Compressy\Resource\ResourceReaderFactory;
use Gocobachi\Compressy\Resource\Writer\FilesystemWriter;
/**
* Guzzle Teleporter implementation for HTTP resources
* @deprecated Use \Alchemy\Compressy\Resource\GenericTeleporter instead. This class will be removed in v0.5.x
class GuzzleTeleporter extends GenericTeleporter
{
* @param ResourceReaderFactory $readerFactory
* @param ResourceLocator $resourceLocator
public function __construct(ResourceReaderFactory $readerFactory = null, ResourceLocator $resourceLocator = null)
parent::__construct($readerFactory ?: new GuzzleReaderFactory(), new FilesystemWriter(), $resourceLocator);
}
* Creates the GuzzleTeleporter
* @deprecated This method will be removed in v0.5.x
* @return GuzzleTeleporter
public static function create()
return new static();