Browse Source

Use new chullo static methods

pull/940/head
Jared Whiklo 2 years 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/prepopulate" : "^2.2",
"drupal/search_api": "^1.8", "drupal/search_api": "^1.8",
"drupal/token" : "^1.3", "drupal/token" : "^1.3",
"islandora/chullo": "^1.3", "islandora/chullo": "dev-update-dependencies",
"islandora/fedora-entity-mapper": "1.x-dev", "islandora/fedora-entity-mapper": "1.x-dev",
"islandora/jsonld": "^2", "islandora/jsonld": "^2",
"stomp-php/stomp-php": "4.* || ^5" "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. // Construct guzzle client to middleware that adds JWT.
$stack = HandlerStack::create(); $stack = HandlerStack::create();
$stack->push(static::addJwt($container->get('jwt.authentication.jwt'))); $stack->push(static::addJwt($container->get('jwt.authentication.jwt')));
$client = new Client([ $fedora = FedoraApi::createWithHandler($configuration['root'], $stack);
'handler' => $stack,
'base_uri' => $configuration['root'],
]);
$fedora = new FedoraApi($client);
// Return it. // Return it.
return new static( return new static(

Loading…
Cancel
Save