Permalink
Browse files

Auth.multi : merge sub-plugins registry contributions

  • Loading branch information...
1 parent 49551f9 commit eaad3c76e538dc35276b4ec846d4c1bd0d4fe2da @cdujeu cdujeu committed Sep 6, 2016
Showing with 7 additions and 1 deletion.
  1. +7 −1 core/src/plugins/auth.multi/MultiAuthDriver.php
@@ -100,7 +100,13 @@ public function init(ContextInterface $ctx, $options = [])
public function getRegistryContributions(\Pydio\Core\Model\ContextInterface $ctx, $extendedVersion = true)
{
$this->loadRegistryContributions($ctx);
- return parent::getRegistryContributions($ctx, $extendedVersion);
+ $contribs = parent::getRegistryContributions($ctx, $extendedVersion);
+ if(count($this->drivers)){
+ foreach($this->drivers as $dPlugin){
+ $contribs = array_merge($contribs, $dPlugin->getRegistryContributions($ctx));
+ }
+ }
+ return $contribs; // parent::getRegistryContributions($ctx, $extendedVersion);
}
private function detectCurrentDriver()

0 comments on commit eaad3c7

Please sign in to comment.