Author: caefer
Date: 2010-03-24 06:40:17 +0100 (Wed, 24 Mar 2010)
New Revision: 28747
Removed:
plugins/sfImageTransformExtraPlugin/trunk/modules/sfImageTransformator/config/factories.yml
Modified:
plugins/sfImageTransformExtraPlugin/trunk/TODO
plugins/sfImageTransformExtraPlugin/trunk/config/settings.yml
plugins/sfImageTransformExtraPlugin/trunk/config/sfImageTransformExtraPluginConfiguration.class.php
Log:
* thumbnail cache class now configurable in settings.yml
* removed obsolete factories.yml
* updated todo
Modified: plugins/sfImageTransformExtraPlugin/trunk/TODO
===================================================================
--- plugins/sfImageTransformExtraPlugin/trunk/TODO 2010-03-24 01:13:32 UTC
(rev 28746)
+++ plugins/sfImageTransformExtraPlugin/trunk/TODO 2010-03-24 05:40:17 UTC
(rev 28747)
@@ -4,8 +4,5 @@
* write more tests to produce image urls
* remove or think over
modules/sfImageTransformator/config/factories.yml -> check if readable so
it can be set from plugin configuration class
- data/example-resources/overlays/wlcp.png -> replace with plugin logo!
- data/example-resources/fonts/accid___.ttf -> free font!
- data/example-resources/masks/pattern.gif ->
- data/example-resources/masks/frame.gif -> transparent caefer over text
- data/caefer.jpg -> caefer image
+ data/example-resources/masks/frame.gif
+ test/fixtures/project/web/uploads/daphne.jpg
Modified: plugins/sfImageTransformExtraPlugin/trunk/config/settings.yml
===================================================================
--- plugins/sfImageTransformExtraPlugin/trunk/config/settings.yml
2010-03-24 01:13:32 UTC (rev 28746)
+++ plugins/sfImageTransformExtraPlugin/trunk/config/settings.yml
2010-03-24 05:40:17 UTC (rev 28747)
@@ -1,3 +1,9 @@
all:
.settings:
- cache_namespace_callable:
sfImageTransformExtraPluginConfiguration::setCacheKey
+ cache_namespace_callable:
sfImageTransformExtraPluginConfiguration::setCacheKey
+
+ thumbnail_cache:
+ class: sfRawFileCache
+ param:
+ automatic_cleaning_factor: 0
+ cache_dir: %SF_WEB_DIR%
Modified:
plugins/sfImageTransformExtraPlugin/trunk/config/sfImageTransformExtraPluginConfiguration.class.php
===================================================================
---
plugins/sfImageTransformExtraPlugin/trunk/config/sfImageTransformExtraPluginConfiguration.class.php
2010-03-24 01:13:32 UTC (rev 28746)
+++
plugins/sfImageTransformExtraPlugin/trunk/config/sfImageTransformExtraPluginConfiguration.class.php
2010-03-24 05:40:17 UTC (rev 28747)
@@ -84,10 +84,8 @@
*/
static public function getCache()
{
- return new sfRawFileCache(array(
- 'automatic_cleaning_factor' => 0,
- 'cache_dir' => sfConfig::get('sf_web_dir')
- ));
+ extract(sfConfig::get('sf_thumbnail_cache'));
+ return new $class($param);
}
/**
Deleted:
plugins/sfImageTransformExtraPlugin/trunk/modules/sfImageTransformator/config/factories.yml
===================================================================
---
plugins/sfImageTransformExtraPlugin/trunk/modules/sfImageTransformator/config/factories.yml
2010-03-24 01:13:32 UTC (rev 28746)
+++
plugins/sfImageTransformExtraPlugin/trunk/modules/sfImageTransformator/config/factories.yml
2010-03-24 05:40:17 UTC (rev 28747)
@@ -1,11 +0,0 @@
-# You can find more information about this file on the symfony website:
-# http://www.symfony-project.org/reference/1_4/en/05-Factories
-
-all:
- view_cache:
- class: sfFileCache
- param:
- automatic_cleaning_factor: 0
- cache_dir: %SF_UPLOAD_DIR%/testing
- lifetime: 86400
- prefix: %SF_APP_DIR%/template
--
You received this message because you are subscribed to the Google Groups
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-svn?hl=en.