Re: [symfony-users] [Symfony 2] Change Cache Log Directory

2011-06-15 Thread Christophe COEVOET

Le 15/06/2011 11:29, con a écrit :
I'm pretty sure it is somehow possible to change the location of the 
cache  log directory in sf2.. but I didn't find anything on the docs..

http://symfony.com/doc/current/book/http_cache.html#index-15 :/

btw, is it still possible to use php in yml files?
because I need to change the cache location to:

// just gessing:
framework:
  cache: ?php getenv('TMPDIR').'/cache ?
  logs: ?php getenv('TMPDIR').'/logs ?

would be great :)


The cache and logs directories are not configured through the 
configuration as they are needed before parsing it. They are configured 
in the kernel. To change them, just overwrite the /getCacheDir/ and 
/getLogDir/ methods


--
Christophe | Stof

--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Aw: Re: [symfony-users] [Symfony 2] Change Cache Log Directory

2011-06-15 Thread con
thank you :)

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en