File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
namespace Scriptotek \Alma \Laravel ;
4
4
5
+ use Psr \Http \Client \ClientInterface as HttpClientInterface ;
6
+ use Psr \Http \Message \RequestFactoryInterface ;
7
+ use Psr \Http \Message \UriFactoryInterface ;
5
8
use Scriptotek \Alma \Client as AlmaClient ;
6
9
use Scriptotek \Sru \Client as SruClient ;
7
10
@@ -43,7 +46,11 @@ public function register()
43
46
// Create Alma client
44
47
$ alma = new AlmaClient (
45
48
$ app ['config ' ]->get ('alma.iz.key ' ),
46
- $ app ['config ' ]->get ('alma.region ' )
49
+ $ app ['config ' ]->get ('alma.region ' ),
50
+ Zones::INSTITUTION ,
51
+ isset ($ app [HttpClientInterface::class]) ? $ app [HttpClientInterface::class] : null ,
52
+ isset ($ app [RequestFactoryInterface::class]) ? $ app [RequestFactoryInterface::class] : null ,
53
+ isset ($ app [UriFactoryInterface::class]) ? $ app [UriFactoryInterface::class] : null
47
54
);
48
55
49
56
// Set network zone key, if any
You can’t perform that action at this time.
0 commit comments