Create H5P programmatically from existing file
Submitted by erwannig on Wed, 03/20/2019 - 16:04
Forums:
Hello !
I've installed the symfony H5P bundle : https://packagist.org/packages/emmedy/h5p-bundle
This works fine ! I have a lot of existing .h5p files and wanted to import them programmatically in my website, during the fixtures creation process.
I've got a "Ressource" entity that contains an h5p Content. When i create an Ressource i create a new entity "Content" that is connected to the Ressource, but now i don't understand which way to use in order to link my .h5p file to the Content...
Does anybody have an idea about my issue ?
Thanks !