Skip to content

Commit

Permalink
Revert adding leading slash to S3 class names
Browse files Browse the repository at this point in the history
Closes: #892
  • Loading branch information
cedricziel committed Mar 2, 2017
1 parent f0be5f9 commit ef0fae8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions DependencyInjection/Factory/Resolver/AwsS3ResolverFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ class AwsS3ResolverFactory implements ResolverFactoryInterface
public function create(ContainerBuilder $container, $resolverName, array $config)
{
$awsS3ClientId = 'liip_imagine.cache.resolver.'.$resolverName.'.client';
$awsS3ClientDefinition = new Definition('\Aws\S3\S3Client');
$awsS3ClientDefinition = new Definition('Aws\S3\S3Client');
if (method_exists($awsS3ClientDefinition, 'setFactory')) {
$awsS3ClientDefinition->setFactory(array('\Aws\S3\S3Client', 'factory'));
$awsS3ClientDefinition->setFactory(array('Aws\S3\S3Client', 'factory'));
} else {
// to be removed when dependency on Symfony DependencyInjection is bumped to 2.6
$awsS3ClientDefinition->setFactoryClass('\Aws\S3\S3Client');
$awsS3ClientDefinition->setFactoryClass('Aws\S3\S3Client');
$awsS3ClientDefinition->setFactoryMethod('factory');
}
$awsS3ClientDefinition->addArgument($config['client_config']);
Expand Down

0 comments on commit ef0fae8

Please sign in to comment.