Skip to content

Commit

Permalink
Merge pull request #131 from helios-ag/syntax_fix
Browse files Browse the repository at this point in the history
array short syntax removed
  • Loading branch information
helios-ag committed Apr 2, 2015
2 parents 8e93072 + 3364d1d commit 1a50fd2
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 1a50fd2

Please sign in to comment.