-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update flysystem usage after upgrade #2584
Conversation
Front-end summary Node 18
|
@@ -202,7 +202,7 @@ protected function isInstanceValid($item) | |||
{ | |||
try { | |||
$xml = Service::singleton()->getXmlByRdfItem($item); | |||
} catch (FileNotFoundException $e) { | |||
} catch (FilesystemException $e) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add some logging here as well?
foreach ($cssFiles as $key => $file) { | ||
$cssFiles[$key]['stream'] = $this->getFileSystem()->readStream( | ||
$stylesheetPath . DIRECTORY_SEPARATOR . $file['basename'] | ||
); | ||
} | ||
|
||
return $cssFiles; | ||
} catch (FileNotFoundException $exception) { | ||
} catch (FilesystemException $exception) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't really like that we bound to flysystem exception League\Flysystem\FilesystemException
inside tao here and in some other places. Maybe it makes sense to create an internal tao exception and catch all Filesystem exceptions here FileSystemWrapperTrait
and throw the tao exception instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, great suggestion, I've updated PRs to catch a filesystem exception defined in our application
…s or changing existing, updated our logic accordingly.
Version❕ Some commits are not using the conventional commits formats. They will be ignored in version management.
There are 0 BREAKING CHANGE, 1 feature, 4 fixes |
Related to https://oat-sa.atlassian.net/browse/REL-1729