Skip to content

Commit

Permalink
Merge branch 'release-9.0' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
demiankatz committed Jul 12, 2023
2 parents 9284a8a + e356ea6 commit ea553ae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions module/VuFind/src/VuFind/Controller/ChannelsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

namespace VuFind\Controller;

use Laminas\ServiceManager\ServiceLocatorInterface;
use VuFind\ChannelProvider\ChannelLoader;

/**
Expand All @@ -54,11 +55,14 @@ class ChannelsController extends AbstractBase
/**
* Constructor
*
* @param ChannelLoader $loader Channel loader
* @param ChannelLoader $loader Channel loader
* @param ServiceLocatorInterface $sm Top-level service manager (needed for
* some AbstractBase behavior)
*/
public function __construct(ChannelLoader $loader)
public function __construct(ChannelLoader $loader, ServiceLocatorInterface $sm)
{
$this->loader = $loader;
parent::__construct($sm);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,6 @@ public function __invoke(
throw new \Exception('Unexpected options sent to factory.');
}
$loader = $container->get(\VuFind\ChannelProvider\ChannelLoader::class);
return $this->applyPermissions($container, new $requestedName($loader));
return $this->applyPermissions($container, new $requestedName($loader, $container));
}
}

0 comments on commit ea553ae

Please sign in to comment.