-
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated the Configuration and Extension in order to enable the creati…
…on of multiple cache services.
- Loading branch information
1 parent
03b846f
commit 363eece
Showing
6 changed files
with
264 additions
and
209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,15 @@ | ||
parameters: | ||
stash.class: Tedivm\StashBundle\Service\Cache | ||
stash_factory.class: Tedivm\StashBundle\Factory\HandlerFactory | ||
stash.cache.class: Tedivm\StashBundle\Service\Cache | ||
stash.handler.class: Tedivm\Stash\Handler\HandlerInterface | ||
stash.factory.class: Tedivm\StashBundle\Factory\HandlerFactory | ||
|
||
services: | ||
stash: | ||
arguments: [@stash_handler] | ||
class: %stash.class% | ||
stash_handler: | ||
class: %stash.class% | ||
factory_class: %stash_factory.class% | ||
stash.cache: | ||
class: %stash.cache.class% | ||
abstract: true | ||
stash.handler: | ||
class: %stash.handler.class% | ||
abstract: true | ||
synthetic: true | ||
factory_method: createHandler | ||
arguments: | ||
- %stash.handler.type% | ||
- %stash.handler.options% | ||
data_collector.stash: | ||
class: Tedivm\StashBundle\Collector\CacheDataCollector | ||
arguments: [ %stash.handler.type%, %stash.handler.options% ] | ||
tags: | ||
- | ||
name: data_collector | ||
template: "TedivmStashBundle:Profiler:layout" | ||
id: "stash" | ||
factory_class: %stash.factory.class% |
Oops, something went wrong.
This line is wrong, "cache" is also used by symfony, so this should be changed to something in stash namespace.
ref:
https://github.com/symfony/symfony/blob/master/src/Symfony/Bundle/FrameworkBundle/HttpCache/HttpCache.php#L57