Matthias\SymfonyConsoleForm\Console\Input\CachedInputDefinitionFactory::configCacheFor PHP Méthode

configCacheFor() protected méthode

protected configCacheFor ( string | Symfony\Component\Form\FormTypeInterface $formType ) : Symfony\Component\Config\ConfigCache
$formType string | Symfony\Component\Form\FormTypeInterface
Résultat Symfony\Component\Config\ConfigCache
    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);
    }