Skip to content

Commit 81eb48e

Browse files
committed
renamed some local vars
1 parent a6dce13 commit 81eb48e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Bridges/CacheDI/CacheExtension.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,23 +27,23 @@ public function __construct($tempDir)
2727

2828
public function loadConfiguration()
2929
{
30-
$container = $this->getContainerBuilder();
30+
$builder = $this->getContainerBuilder();
3131

3232
if (extension_loaded('pdo_sqlite')) {
33-
$container->addDefinition($this->prefix('journal'))
33+
$builder->addDefinition($this->prefix('journal'))
3434
->setClass(Nette\Caching\Storages\IJournal::class)
3535
->setFactory(Nette\Caching\Storages\SQLiteJournal::class, [$this->tempDir . '/cache/journal.s3db']);
3636
}
3737

38-
$container->addDefinition($this->prefix('storage'))
38+
$builder->addDefinition($this->prefix('storage'))
3939
->setClass(Nette\Caching\IStorage::class)
4040
->setFactory(Nette\Caching\Storages\FileStorage::class, [$this->tempDir . '/cache']);
4141

4242
if ($this->name === 'cache') {
4343
if (extension_loaded('pdo_sqlite')) {
44-
$container->addAlias('nette.cacheJournal', $this->prefix('journal'));
44+
$builder->addAlias('nette.cacheJournal', $this->prefix('journal'));
4545
}
46-
$container->addAlias('cacheStorage', $this->prefix('storage'));
46+
$builder->addAlias('cacheStorage', $this->prefix('storage'));
4747
}
4848
}
4949

0 commit comments

Comments
 (0)