symfony - extend YouTubeProvider in SonataMedia -


i'm using sonatamedia, sonataadmin bundle , youtubeprovider upload videos media content.

part of sonata\mediabundle\provider\youtubeprovider.php file:

//... 'cc_load_policy' => 1, 'wmode' => 'window' //... 

i want change wmode opaque. can done extend youtubeprovider.php file.

what best way that?

as there no option specified in advanced configuration documentation page, need override youtube provider, , specify class in config.yml :

parameters:     sonata.media.provider.youtube: mybundle\myclass  sonata_media:     providers:         youtube:             service:    sonata.media.provider.youtube 

Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -