-
Add MediaBundle to your src/Bundle dir
git submodule add git@github.com:sonata-project/MediaBundle.git src/Bundle/MediaBundle
-
add the Imagine bundle (image management) and follow ImagineBundle README
git submodule add git://github.com/avalanche123/Imagine.git src/vendor/imagine
-
Add EasyExtendsBundle to your application kernel
// app/AppKernel.php public function registerBundles() { return array( // ... new Bundle\MediaBundle\MediaBundle(), // ... ); }
-
Add this line into your config.yml file
media.config: class: Bundle\MediaBundle\Provider\Service settings: cdn_enabled: false cdn_path: http://media.sonata-project.org public_path: /uploads/media private_path: /web/uploads/media providers: image: class: Bundle\MediaBundle\Provider\Image formats: small: { width: 100 } big: { width: 500 } youtube: class: Bundle\MediaBundle\Provider\YouTube formats: small: { width: 100 } big: { width: 500 } dailymotion: class: Bundle\MediaBundle\Provider\DailyMotion formats: small: { width: 100 } big: { width: 500 }
forked from sonata-project/SonataMediaBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
Media management bundle on steroid for Symfony2
License
dramentol/SonataMediaBundle
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Media management bundle on steroid for Symfony2
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- PHP 96.8%
- JavaScript 3.2%