docdigital/cdn-bundle

manages file uploads and downloads at Resources\media\%s

Installs: 29

Dependents: 0

Watchers: 1

Language: PHP

v1.0.0 2014-07-24 17:34 UTC

README

cli@host # php composer.phar require "docdigital/cdn-bundle:dev-master"

Configuration

Enable CdnBundle in AppKernel

class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            ::
            new DocDigital\Bundle\CdnBundle\DdCdnBundle(),
        );
        ::
        return $bundles;
    }
  ::
}

Add dd_cdn.upload.dir: parameter to parameters.yml

# app/config/parameters.yml

parameters:
    dd_cdn.upload.dir: "%kernel.root_dir%/../media/" # or any directory with 
                                                     # write permissions for www-data (apache) user.