Browse Source

Use new chullo static methods

pull/940/head
Jared Whiklo 1 year ago committed by Seth Shaw
parent
commit
97c3ddbdd1
  1. 2
      composer.json
  2. 6
      src/Flysystem/Fedora.php

2
composer.json

@ -27,7 +27,7 @@
"drupal/prepopulate" : "^2.2",
"drupal/search_api": "^1.8",
"drupal/token" : "^1.3",
"islandora/chullo": "^1.3",
"islandora/chullo": "dev-update-dependencies",
"islandora/fedora-entity-mapper": "1.x-dev",
"islandora/jsonld": "^2",
"stomp-php/stomp-php": "4.* || ^5"

6
src/Flysystem/Fedora.php

@ -88,11 +88,7 @@ class Fedora implements FlysystemPluginInterface, ContainerFactoryPluginInterfac
// Construct guzzle client to middleware that adds JWT.
$stack = HandlerStack::create();
$stack->push(static::addJwt($container->get('jwt.authentication.jwt')));
$client = new Client([
'handler' => $stack,
'base_uri' => $configuration['root'],
]);
$fedora = new FedoraApi($client);
$fedora = FedoraApi::createWithHandler($configuration['root'], $stack);
// Return it.
return new static(

Loading…
Cancel
Save