/** * {@inheritdoc} */ public function isEnabled() { /* @var $app SilexApplication */ $app = $this->getSilexApplication(); if (!$app->offsetExists('routes') || !$app['routes'] instanceof RouteCollection || $app['routes']->count() === 0) { return false; } return parent::isEnabled(); }
/** * {@inheritdoc} */ public function isEnabled() { /* @var $app SilexApplication */ $app = $this->getSilexApplication(); if (!$app->offsetExists('cache_dir') || !is_dir($app['cache_dir'])) { return false; } return parent::isEnabled(); }