Skip to content

Commit

Permalink
5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ngodfraind committed Apr 29, 2015
1 parent 0683dcf commit 98dbbca
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions DependencyInjection/Compiler/DynamicConfigPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@ public function process(ContainerBuilder $container)
{
//facebook
$facebook = new Definition();
$facebook->setFactoryService('claroline.hwi.facebook_owner_factory');
$facebook->setFactoryMethod('getFacebookResourceOwner');
$facebook->setClass('FacebookResourceOwner');
$facebook->setFactory(array(
new Reference('claroline.hwi.facebook_owner_factory'),
'getFacebookResourceOwner'
));
$container->removeDefinition('hwi_oauth.resource_owner.facebook');
$container->setDefinition('hwi_oauth.resource_owner.facebook', $facebook);
}
Expand Down

0 comments on commit 98dbbca

Please sign in to comment.