@@ 24-45 (lines=22) @@ | ||
21 | * |
|
22 | * @deprecated Use \Alchemy\Zippy\Resource\GenericTeleporter instead. This class will be removed in v0.5.x |
|
23 | */ |
|
24 | class GuzzleTeleporter extends GenericTeleporter |
|
25 | { |
|
26 | /** |
|
27 | * @param ResourceReaderFactory $readerFactory |
|
28 | * @param ResourceLocator $resourceLocator |
|
29 | */ |
|
30 | public function __construct(ResourceReaderFactory $readerFactory = null, ResourceLocator $resourceLocator = null) |
|
31 | { |
|
32 | parent::__construct($readerFactory ?: new GuzzleReaderFactory(), new FilesystemWriter(), $resourceLocator); |
|
33 | } |
|
34 | ||
35 | /** |
|
36 | * Creates the GuzzleTeleporter |
|
37 | * |
|
38 | * @deprecated This method will be removed in v0.5.x |
|
39 | * @return GuzzleTeleporter |
|
40 | */ |
|
41 | public static function create() |
|
42 | { |
|
43 | return new static(); |
|
44 | } |
|
45 | } |
|
46 |
@@ 25-51 (lines=27) @@ | ||
22 | * |
|
23 | * @deprecated Use \Alchemy\Zippy\Resource\GenericTeleporter instead. This class will be removed in v0.5.x |
|
24 | */ |
|
25 | class LegacyGuzzleTeleporter extends GenericTeleporter |
|
26 | { |
|
27 | /** |
|
28 | * @param Client $client |
|
29 | * @param ResourceReaderFactory $readerFactory |
|
30 | * @param ResourceLocator $resourceLocator |
|
31 | */ |
|
32 | public function __construct( |
|
33 | Client $client = null, |
|
34 | ResourceReaderFactory $readerFactory = null, |
|
35 | ResourceLocator $resourceLocator = null |
|
36 | ) { |
|
37 | parent::__construct($readerFactory ?: new LegacyGuzzleReaderFactory($client), new FilesystemWriter(), |
|
38 | $resourceLocator); |
|
39 | } |
|
40 | ||
41 | /** |
|
42 | * Creates the GuzzleTeleporter |
|
43 | * |
|
44 | * @deprecated |
|
45 | * @return LegacyGuzzleTeleporter |
|
46 | */ |
|
47 | public static function create() |
|
48 | { |
|
49 | return new static(); |
|
50 | } |
|
51 | } |
|
52 |