also looking at this
Fix Namespace SDK
#11
2 files
+8
-8
composer.lockmodified+5-5
| @@ -729,12 +729,12 @@ | ||
| 729 | 729 | "source": { |
| 730 | 730 | "type": "git", |
| 731 | 731 | "url": "https://github.com/meemalabs/meema-client-php.git", |
| 732 | "reference": "f4a5766ab9194e17e5524a269c7d3188a8385441" | |
| 732 | "reference": "1ccc4b8e9a225addde4ef089c873ad5bc470dbc9" | |
| 733 | 733 | }, |
| 734 | 734 | "dist": { |
| 735 | 735 | "type": "zip", |
| 736 | "url": "https://api.github.com/repos/meemalabs/meema-client-php/zipball/f4a5766ab9194e17e5524a269c7d3188a8385441", | |
| 737 | "reference": "f4a5766ab9194e17e5524a269c7d3188a8385441", | |
| 736 | "url": "https://api.github.com/repos/meemalabs/meema-client-php/zipball/1ccc4b8e9a225addde4ef089c873ad5bc470dbc9", | |
| 737 | "reference": "1ccc4b8e9a225addde4ef089c873ad5bc470dbc9", | |
| 738 | 738 | "shasum": "" |
| 739 | 739 | }, |
| 740 | 740 | "require": { |
| @@ -753,7 +753,7 @@ | ||
| 753 | 753 | "type": "library", |
| 754 | 754 | "autoload": { |
| 755 | 755 | "psr-4": { |
| 756 | "Meema\\MeemaApi\\": "src" | |
| 756 | "Meema\\MeemaClient\\": "src" | |
| 757 | 757 | } |
| 758 | 758 | }, |
| 759 | 759 | "notification-url": "https://packagist.org/downloads/", |
| @@ -779,7 +779,7 @@ | ||
| 779 | 779 | "video conversions", |
| 780 | 780 | "video converter" |
| 781 | 781 | ], |
| 782 | "time": "2021-04-22T05:21:14+00:00" | |
| 782 | "time": "2021-04-22T23:27:08+00:00" | |
| 783 | 783 | }, |
| 784 | 784 | { |
| 785 | 785 | "name": "nesbot/carbon", |
| @@ -4,7 +4,7 @@ namespace Meema\Flysystem; | ||
| 4 | 4 | |
| 5 | 5 | use League\Flysystem\Adapter\AbstractAdapter; |
| 6 | 6 | use League\Flysystem\Config; |
| 7 | use Meema\MeemaApi\Client; | |
| 7 | use Meema\MeemaClient\Client; | |
| 8 | 8 | |
| 9 | 9 | class MeemaAdapter extends AbstractAdapter |
| 10 | 10 | { |
| @@ -13,9 +13,9 @@ class MeemaAdapter extends AbstractAdapter | ||
| 13 | 13 | */ |
| 14 | 14 | protected $client; |
| 15 | 15 | |
| 16 | public function __construct($accessKey) | |
| 16 | public function __construct(Client $client) | |
| 17 | 17 | { |
| 18 | $this->client = new Client($accessKey); | |
| 18 | $this->client = $client; | |
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 21 | /** |