Browse Source

check for fedora key in flysystem

d9_islandora
ezoller 4 years ago
parent
commit
3c3262bd68
  1. 6
      src/EventGenerator/EventGenerator.php

6
src/EventGenerator/EventGenerator.php

@ -92,8 +92,10 @@ class EventGenerator implements EventGeneratorInterface {
]; ];
$flysystem_config = Settings::get('flysystem'); $flysystem_config = Settings::get('flysystem');
$fedora_url = $flysystem_config['fedora']['config']['root']; if (array_key_exists('fedora', $flysystem_config)) {
$event["target"] = $fedora_url; $fedora_url = $flysystem_config['fedora']['config']['root'];
$event["target"] = $fedora_url;
}
$entity_type = $entity->getEntityTypeId(); $entity_type = $entity->getEntityTypeId();
if ($data["event"] == "Generate Derivative") { if ($data["event"] == "Generate Derivative") {

Loading…
Cancel
Save