Skip to content

Commit

Permalink
array short syntax removed
Browse files Browse the repository at this point in the history
  • Loading branch information
helios-ag committed Apr 2, 2015
1 parent 8e93072 commit 3364d1d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Configuration/ElFinderConfigurationReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,20 +181,20 @@ private function configureFlysystem($opt, $adapter)
$filesystem = (!$opt['ftp']['sftp']) ? new Filesystem(new Ftp($settings)): new Filesystem(new SftpAdapter($settings));
break;
case 'aws_s3_v2':
$client = S3Client::factory([
$client = S3Client::factory(array(
'key' => $opt['aws_s3_v2']['key'],
'secret' => $opt['aws_s3_v2']['secret'],
'region' => $opt['aws_s3_v2']['region']
]);
));
$filesystem = new Filesystem(new AwsS3v2($client, $opt['aws_s3_v2']['bucket_name'], $opt['aws_s3_v2']['optional_prefix']));
break;
case 'aws_s3_v3':
$client = S3Client::factory([
$client = S3Client::factory(array(
'key' => $opt['aws_s3_v3']['key'],
'secret' => $opt['aws_s3_v3']['secret'],
'region' => $opt['aws_s3_v3']['region'],
'version' => $opt['aws_s3_v3']['version']
]);
));
$filesystem = new Filesystem(new AwsS3v3($client, $opt['aws_s3_v3']['bucket_name'], $opt['aws_s3_v3']['optional_prefix']));
break;
case 'copy_com':
Expand Down

0 comments on commit 3364d1d

Please sign in to comment.