-
Notifications
You must be signed in to change notification settings - Fork 82
IBX-9594: Describe creating a custom DAM connector #2642
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
Conversation
Co-authored-by: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com>
code_samples/back_office/images/templates/themes/standard/commons_asset_view.html.twig
Outdated
Show resolved
Hide resolved
@adriendupuis I think I won't be able to fix php code without your help. PHP Stan signals that in the handler, the fetchAsset() method must not return |
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.
See #2689
* DAM/Commons: Fix PHPStan * DAM/Commons: Fix services w/out constructor. * DAM/Commons: Fix service class names * DAM/Commons: Add commons search tab * DAM/Commons: Fix type hinting then simplify WikimediaCommonsHandler --------- Co-authored-by: Tomasz Dąbrowski <64841871+dabrt@users.noreply.github.com>
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.
@adriendupuis I think I won't be able to fix php code without your help. PHP Stan signals that in the handler, the fetchAsset() method must not return
null
, same for the transformation, build() must return a transformation object but notnull
.
All my changes have been applied.
- It works on 4.6.18 Commerce; Only the tab will have to wait for .20 to appear correctly (ibexa/connector-dam#72).
- PHPStan analysis succeeded.
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.
It works, thank you for preparing this! 🎉
A couple of suggestions from me - the AssetURI example and the translation filename are the most important ones to me
$identifier: 'commons' | ||
$source: 'commons' | ||
$name: 'Wikimedia Commons' | ||
$searchFormType: 'Ibexa\Platform\Connector\Dam\Form\Search\GenericSearchType' |
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.
$searchFormType: 'Ibexa\Platform\Connector\Dam\Form\Search\GenericSearchType' | |
$searchFormType: 'Ibexa\Connector\Dam\Form\Search\GenericSearchType' |
Same as above
Co-authored-by: Marek Nocoń <mnocon@users.noreply.github.com>
Co-authored-by: Marek Nocoń <mnocon@users.noreply.github.com>
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!
code_samples/ change report
|
* IBX-9594: Describe creating a custom DAM connector --------- Co-authored-by: dabrt <dabrt@users.noreply.github.com> Co-authored-by: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> Co-authored-by: Marek Nocoń <mnocon@users.noreply.github.com>
Describe creating a custom DAM connector based on an example from @adriendupuis :
https://github.com/adriendupuis/ezplatform-connector-commons
Checklist