2017 © Pedro Peláez
 

library cache-cleaner-bundle

Easy and automatic assets versioning for Symfony

image

leooteam/cache-cleaner-bundle

Easy and automatic assets versioning for Symfony

  • Thursday, December 22, 2016
  • by adaniloff
  • Repository
  • 2 Watchers
  • 2 Stars
  • 1,855 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 11 % Grown

The README.md

README

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., (*1)

Installation

Add to your composer.json file:, (*2)

"require": {
    "leooteam/cache-cleaner-bundle": "dev-master@dev"
},
````

Then, run `composer update leooteam/cache-cleaner-bundle`

Add the bundle to your AppKernel.php file:

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


### Requirements ### This bundle requires Symfony >= 2.8 ### Configuration ### **Required** : import the configuration file (warning: it might be missing so you must add "ignore_errors").

app/config/config.yml

imports:
- { resource: "@LeooTeamCacheCleanerBundle/Resources/config/versions.yml", ignore_errors: true }, (*4)


**Optional** : add some commands that will trigger the event.

leoo_team_cache_cleaner: commands: ['assets:install', 'assetic:dump'] ```, (*5)

Usages

If you have done the second step from configuration part, each time you'll call a command which is declared in leoo_team_cache_cleaner.commands, the version will be updated automatically. You can also use the ccleaner commands:, (*6)

  • ccleaner:show --> display current version, and previous ones.
  • ccleaner:update [-c=VERSION_NUMBER] --> update the version, parameter is optional
  • ccleaner:rollback [-c=ROLLBACK_COUNT] --> rollback the version, parameter is optional
  • ccleaner:restore -c=VERSION_NUMBER --> restore the specified version, parameter is required

The Versions

22/12 2016

dev-master

9999999-dev

Easy and automatic assets versioning for Symfony

  Sources   Download

MIT License

The Requires

 

by Aleksandr Daniloff

22/12 2016

1.0

1.0.0.0

Easy and automatic assets versioning for Symfony

  Sources   Download

MIT License

The Requires

 

by Aleksandr Daniloff