That should probably be injectable with something like $esi = null in the constructor as the third param, and $esi = $esi ?: new Esi(); in the body. Could you make a PR for that and see what feedback comes?
Drak On 12 April 2012 14:27, Dattaya <[email protected]> wrote: > There is 'esi' service available. Is it possible to get Esi from SC > instead of hardcoding it in HttpCache/HttpCache?: > > public function __construct(HttpKernelInterface $kernel) > { > $store = new Store($kernel->getCacheDir().'/http_cache'); > $esi = new Esi(); > > > https://github.com/symfony/symfony/blob/master/src/Symfony/Bundle/FrameworkBundle/HttpCache/HttpCache.php#L37 > > > -- > 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 developers" 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-devs?hl=en > -- 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 developers" 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-devs?hl=en
