smile / ez-cdn-bundle
CDN post replace for EZPublish 5.x
Installs: 23
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 5
Forks: 4
Open Issues: 0
Type:ezplatform-bundle
Requires
- php: ~5.6|~7.0
- ezsystems/ezpublish-kernel: ~6.7
README
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