-
Notifications
You must be signed in to change notification settings - Fork 18
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
fix ARI default image #317
base: master
Are you sure you want to change the base?
Conversation
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.
On parse déjà le assets.json
dans le service Assets
. Pour moi, ce serait plus intéressant de déplacer ces modifications à cet endroit.
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.
Merci pour la modification.
Il faudrait faire une autre modification pour travailler directement avec l'instance du container pour récupérer le service Assets
et l'utiliser dans les méthodes.
break; | ||
case 'js': | ||
$file = $assets['app.js']; | ||
$file = $assets['app.js'] ?? ''; | ||
break; | ||
default: | ||
$file = null; |
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.
Plutôt que d'avoir le code pour le custom type après, je l'aurais déplacé ici :
$file = null; | |
$file = $assets[ $type ] ?? ''; |
Et supprimer la partie après :
// Custom type
if ( ! empty( $assets[ $type ] ) ) {
$file = $assets[ $type ];
}
No description provided.