Manages file uploads and downloads ar Resources\media\%s through an API
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Controller
DependencyInjection
Event
Form
ImageProcessor
Pdf
Resources
Tests/Controller
Upload
DdCdnBundle.php
README.md
composer.json

README.md

Installation

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.