Skip to content

Commit

Permalink
Fix Flysystem deprecations (#1522)
Browse files Browse the repository at this point in the history
  • Loading branch information
jderusse authored Jul 17, 2023
1 parent 44d5484 commit 24c9b24
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions src/Integration/Flysystem/S3/src/AsyncAwsS3Adapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ public function getBucket(): string

/**
* {@inheritdoc}
*
* @return array|false
*/
public function write($path, $contents, Config $config)
{
Expand All @@ -104,6 +106,8 @@ public function write($path, $contents, Config $config)

/**
* {@inheritdoc}
*
* @return array|false
*/
public function update($path, $contents, Config $config)
{
Expand All @@ -112,6 +116,8 @@ public function update($path, $contents, Config $config)

/**
* {@inheritdoc}
*
* @return bool
*/
public function rename($path, $newpath)
{
Expand All @@ -124,6 +130,8 @@ public function rename($path, $newpath)

/**
* {@inheritdoc}
*
* @return bool
*/
public function delete($path)
{
Expand All @@ -143,6 +151,8 @@ public function delete($path)

/**
* {@inheritdoc}
*
* @return bool
*/
public function deleteDir($dirname)
{
Expand Down Expand Up @@ -170,6 +180,8 @@ public function deleteDir($dirname)

/**
* {@inheritdoc}
*
* @return array|false
*/
public function createDir($dirname, Config $config)
{
Expand All @@ -178,6 +190,8 @@ public function createDir($dirname, Config $config)

/**
* {@inheritdoc}
*
* @return array|bool|null
*/
public function has($path)
{
Expand All @@ -193,6 +207,8 @@ public function has($path)

/**
* {@inheritdoc}
*
* @return array|false
*/
public function read($path)
{
Expand All @@ -207,6 +223,8 @@ public function read($path)

/**
* {@inheritdoc}
*
* @return array
*/
public function listContents($directory = '', $recursive = false)
{
Expand All @@ -226,6 +244,8 @@ public function listContents($directory = '', $recursive = false)

/**
* {@inheritdoc}
*
* @return array|false
*/
public function getMetadata($path)
{
Expand All @@ -250,6 +270,8 @@ public function getMetadata($path)

/**
* {@inheritdoc}
*
* @return array|false
*/
public function getSize($path)
{
Expand All @@ -258,6 +280,8 @@ public function getSize($path)

/**
* {@inheritdoc}
*
* @return array|false
*/
public function getMimetype($path)
{
Expand All @@ -266,6 +290,8 @@ public function getMimetype($path)

/**
* {@inheritdoc}
*
* @return array|false
*/
public function getTimestamp($path)
{
Expand All @@ -274,6 +300,8 @@ public function getTimestamp($path)

/**
* {@inheritdoc}
*
* @return array|false
*/
public function writeStream($path, $resource, Config $config)
{
Expand All @@ -282,6 +310,8 @@ public function writeStream($path, $resource, Config $config)

/**
* {@inheritdoc}
*
* @return array|false
*/
public function updateStream($path, $resource, Config $config)
{
Expand All @@ -290,6 +320,8 @@ public function updateStream($path, $resource, Config $config)

/**
* {@inheritdoc}
*
* @return bool
*/
public function copy($path, $newpath)
{
Expand All @@ -312,6 +344,8 @@ public function copy($path, $newpath)

/**
* {@inheritdoc}
*
* @return array|false
*/
public function readStream($path)
{
Expand All @@ -327,6 +361,8 @@ public function readStream($path)

/**
* {@inheritdoc}
*
* @return array|false
*/
public function setVisibility($path, $visibility)
{
Expand All @@ -347,6 +383,8 @@ public function setVisibility($path, $visibility)

/**
* {@inheritdoc}
*
* @return array|false
*/
public function getVisibility($path)
{
Expand All @@ -357,6 +395,8 @@ public function getVisibility($path)

/**
* {@inheritdoc}
*
* @return string
*/
public function applyPathPrefix($path)
{
Expand Down

0 comments on commit 24c9b24

Please sign in to comment.