Skip to content

Commit

Permalink
use addDownloadStrategy instead of deprecated addDownloadSecurity (#1146
Browse files Browse the repository at this point in the history
)
  • Loading branch information
OskarStark authored and greg0ire committed Nov 23, 2016
1 parent 9d60ffb commit cc49dd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DependencyInjection/SonataMediaExtension.php
Expand Up @@ -138,7 +138,7 @@ public function load(array $configs, ContainerBuilder $container)
$strategies = array_unique($strategies);

foreach ($strategies as $strategyId) {
$pool->addMethodCall('addDownloadSecurity', array($strategyId, new Reference($strategyId)));
$pool->addMethodCall('addDownloadStrategy', array($strategyId, new Reference($strategyId)));
}

if ('doctrine_orm' == $config['db_driver']) {
Expand Down

0 comments on commit cc49dd2

Please sign in to comment.