This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Bundle/FrameworkBundle
Fabien Potencier 05285e429c merged branch dustin10/cache-clearers (PR #2857)
Commits
-------

3ae976c fixed CS
84ad40d added cache clear hook

Discussion
----------

[Cache][2.1] Added cache clear hook

Allows bundles to hook into the `cache:clear` command by using the `kernel.cache_clearer` tag instead of using the `event_dispatcher` service.

See #1884

Bug fix: No
Feature addition: Yes
Backwards compatibility break: No
Symfony2 tests pass: Yes
Fixes the following tickets: #1884
References the following tickets: #1884

---------------------------------------------------------------------------

by dustin10 at 2011/12/16 11:03:54 -0800

Rebased to squash all commits into one.

---------------------------------------------------------------------------

by lsmith77 at 2011/12/17 05:27:29 -0800

@fabpot: we figured that priorities wouldn't be needed for cleaning .. haven't tested the PR, but conceptually it looks good to me and aside from the priority stuff its modeled after the cache warners.

---------------------------------------------------------------------------

by dustin10 at 2011/12/19 09:46:26 -0800

@fabpot Updated to pass cache dir to `clear` method.

---------------------------------------------------------------------------

by dustin10 at 2011/12/19 10:02:21 -0800

@stof and @fabpot Another thought I just had. Should the `$this->getContainer()->get('cache_clearer')->clear($realCacheDir);` call in the `CacheClearCommand` be done before the warming?

---------------------------------------------------------------------------

by stof at 2011/12/19 10:03:59 -0800

indeed. the clearing should be done before the warming.

---------------------------------------------------------------------------

by dustin10 at 2011/12/19 10:19:28 -0800

Squashed all commits into one. Let me know if there is anything else.

---------------------------------------------------------------------------

by dustin10 at 2011/12/19 10:31:50 -0800

Fixed extra lines.
2011-12-19 19:52:15 +01:00
..
CacheWarmer moved WarmableInterface to the HttpKernel component 2011-10-23 09:47:17 +02:00
Command merged branch dustin10/cache-clearers (PR #2857) 2011-12-19 19:52:15 +01:00
Console To avoid having 2 different default values for env. 2011-11-20 12:56:56 +01:00
Controller merged 2.0 2011-12-14 19:13:35 +01:00
DataCollector [FrameworkBundle] added a command to help debugging route matching problems 2011-10-24 09:08:38 +02:00
Debug [FrameworkBundle] make the code more generic 2011-12-01 08:44:53 +01:00
DependencyInjection merged branch dustin10/cache-clearers (PR #2857) 2011-12-19 19:52:15 +01:00
EventListener merged 2.0 2011-11-24 07:16:52 +01:00
HttpCache [DoctrineBridge] fixed some CS 2011-12-13 10:22:12 +01:00
Resources merged branch dustin10/cache-clearers (PR #2857) 2011-12-19 19:52:15 +01:00
Routing moved WarmableInterface to the HttpKernel component 2011-10-23 09:47:17 +02:00
Templating merged 2.0 2011-12-18 14:48:17 +01:00
Test merged 2.0 2011-12-13 16:12:53 +01:00
Tests fixed CS 2011-12-18 14:42:59 +01:00
Translation [FrameworkBundle] fixed previous commit 2011-12-08 08:13:12 +01:00
Validator removed unused use statements 2011-10-29 11:56:30 +02:00
Client.php added missing ' escaping 2011-07-22 13:37:23 +02:00
composer.json Adjust doctrine requirements 2011-12-08 15:17:20 +01:00
ContainerAwareEventDispatcher.php added Stopwatch support in debug mode, added a timeline representing the stopwatch events in the web profiler 2011-10-21 07:45:12 +02:00
FrameworkBundle.php added cache clear hook 2011-12-19 12:17:48 -06:00
HttpKernel.php Merge branch '2.0' 2011-11-12 09:18:01 +01:00