-
Notifications
You must be signed in to change notification settings - Fork 7
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
[bug] Viewhelper for getting image dimension #14
base: master
Are you sure you want to change the base?
Conversation
refs bug-64
$dimension = $processedImage->getProperty($dimensionType); | ||
|
||
} catch (ResourceDoesNotExistException $e) { | ||
// thrown if file does not exist |
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.
Why are the exception not thrown? It is just suppressed.
} catch (ResourceDoesNotExistException $e) { | ||
// thrown if file does not exist | ||
} catch (\UnexpectedValueException $e) { | ||
// thrown if a file has been replaced with a folder |
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.
Why are the exception not thrown? It is just suppressed.
} catch (\UnexpectedValueException $e) { | ||
// thrown if a file has been replaced with a folder | ||
} catch (\RuntimeException $e) { | ||
// RuntimeException thrown if a file is outside of a storage |
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.
Why are the exception not thrown? It is just suppressed.
} catch (\RuntimeException $e) { | ||
// RuntimeException thrown if a file is outside of a storage | ||
} catch (\InvalidArgumentException $e) { | ||
// thrown if file storage does not exist |
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.
Why are the exception not thrown? It is just suppressed.
use TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper; | ||
use TYPO3\CMS\Fluid\Core\ViewHelper\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.
Add an example in the Class DOC on how to use the viewhelper.
Hello @jozefspisiak
Please review the code.
And here id the link for the News list that use this viewhelper: t3kit/theme_t3kit#118
Waiting for your feedback!
Thanks