protected function configCacheFor($formType) { if ($formType instanceof FormTypeInterface) { $filename = get_class($formType); } elseif (is_string($formType)) { $filename = $formType; } else { throw new \LogicException('Unexpected type'); } return new ConfigCache($this->cacheDirectory . '/' . $filename, $this->debug); }