Commit 164e728e authored by Fabien Potencier's avatar Fabien Potencier

removed obsolete code

parent d1bce59d
...@@ -18,7 +18,6 @@ use Silex\Api\EventListenerProviderInterface; ...@@ -18,7 +18,6 @@ use Silex\Api\EventListenerProviderInterface;
use Symfony\Component\EventDispatcher\EventDispatcherInterface; use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\HttpKernel\HttpCache\Esi; use Symfony\Component\HttpKernel\HttpCache\Esi;
use Symfony\Component\HttpKernel\HttpCache\Store; use Symfony\Component\HttpKernel\HttpCache\Store;
use Symfony\Component\HttpKernel\EventListener\EsiListener;
use Symfony\Component\HttpKernel\EventListener\SurrogateListener; use Symfony\Component\HttpKernel\EventListener\SurrogateListener;
/** /**
...@@ -49,11 +48,7 @@ class HttpCacheServiceProvider implements ServiceProviderInterface, EventListene ...@@ -49,11 +48,7 @@ class HttpCacheServiceProvider implements ServiceProviderInterface, EventListene
}; };
$app['http_cache.esi_listener'] = function ($app) { $app['http_cache.esi_listener'] = function ($app) {
if (class_exists('Symfony\Component\HttpKernel\EventListener\SurrogateListener')) {
return new SurrogateListener($app['http_cache.esi']); return new SurrogateListener($app['http_cache.esi']);
}
return new EsiListener($app['http_cache.esi']);
}; };
$app['http_cache.options'] = array(); $app['http_cache.options'] = array();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment