smile/ez-cdn-bundle

CDN post replace for EZPublish 5.x

Installs: 25

Dependents: 0

Suggesters: 0

Security: 0

Stars: 4

Watchers: 5

Forks: 4

Open Issues: 0

Type:ezplatform-bundle

1.0.8 2017-02-05 19:01 UTC

This package is auto-updated.

Last update: 2024-12-17 09:56:06 UTC


README

SensioLabsInsight

This bundle aims to replace or add CDN domain to specific resource provided by web page

Installation

Get the bundle using composer

Add SmileEzCDNBundle by running this command from the terminal at the root of your eZPlatform project:

composer require smile/ez-cdn-bundle

Enable the bundle

To start using the bundle, register the bundle in your application's kernel class:

// ezpublish/EzPublishKernel.php
public function registerBundles()
{
    $bundles = array(
        // ...
        new Smile\EzCDNBundle\SmileEzCDNBundle(),
        // ...
    );
}

Care about Apache configuration when fonts (eot, woff ...) served by css, or ajax/cookie manipulation with javascript. Refer to : http://www.w3.org/TR/cors/

Configure bundle

# ezpublish/config/config.yml
smile_ez_cdn:
    system:
        acme_group: #for each siteaccess
            domain: domain.tld #required, delare your CDN domain
            extensions: [png, css] # list of resource extension that would be serve by your CDN