Skip to content

Commit

Permalink
add comment about DI fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
adam187 committed Jun 3, 2015
1 parent 2c2e235 commit bcc0356
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public function create(ContainerBuilder $container, $resolverName, array $config
if (method_exists($awsS3ClientDefinition, 'setFactory')) {
$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->setFactoryMethod('factory');
}
Expand Down
1 change: 1 addition & 0 deletions DependencyInjection/LiipImagineExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ private function setFactories($container)
if (method_exists($definition, 'setFactory')) {
$definition->setFactory($factory);
} else {
// to be removed when dependency on Symfony DependencyInjection is bumped to 2.6
$definition->setFactoryClass($factory[0]);
$definition->setFactoryMethod($factory[1]);
}
Expand Down

0 comments on commit bcc0356

Please sign in to comment.