Skip to content

Easy and automatic assets versioning for Symfony >= 2.8

License

Notifications You must be signed in to change notification settings

dlasserre/CacheCleaner

 
 

Repository files navigation

README

Warning!

This project is still under conceptualization / development. There is a lot of things to do and improve. Any contirbution (pull-request, issues...) will be much appreciated.

What is this repository for?

This Repository let you change the framework_assets_version to force client to reload assets. You can either define specific commands (like assets:install or assetic:dump) that will be overloaded or use the new commands to do so manually.

Installation

@todo: explain how to install package

Add the bundle to your AppKernel.php file:

$bundles = array(
    ...
    new LeooTeam\CacheCleanerBundle\LeooTeamCacheCleanerBundle(),
);

Requirements

This bundle requires Symfony >= 2.8

Configuration

Required : add the commands that will trigger the event.

#app/config/config.yml
imports:
    - { resource: "@LeooTeamCacheCleanerBundle/Resources/config/versions.yml", ignore_errors: true }

Optionnal : add the commands that will trigger the event.

leoo_team_cache_cleaner:
    commands: ['cache:clear', 'assets:install', 'assetic:dump']

About

Easy and automatic assets versioning for Symfony >= 2.8

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%