docdigital/cdn-bundle

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

Installs: 61

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:symfony-bundle

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

This package is not auto-updated.

Last update: 2024-12-21 17:01:53 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.