Nextras\Orm\Bridges\NetteDI\OrmExtension::setupCache PHP Method

setupCache() protected method

protected setupCache ( )
    protected function setupCache()
    {
        $builder = $this->getContainerBuilder();
        $providerName = $this->prefix('cache');
        if (!$builder->hasDefinition($providerName)) {
            $builder->addDefinition($providerName)->setClass(Cache::class)->setArguments(['namespace' => $this->name])->setAutowired(false);
        }
    }