Skip to content

Commit

Permalink
removed legacy services names
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Dec 14, 2023
1 parent 5080f06 commit 0c542ec
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
8 changes: 0 additions & 8 deletions src/Bridges/CacheDI/CacheExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,5 @@ public function loadConfiguration(): void
$builder->addDefinition($this->prefix('storage'))
->setType(Nette\Caching\Storage::class)
->setFactory(Nette\Caching\Storages\FileStorage::class, [$dir]);

if ($this->name === 'cache') {
if (extension_loaded('pdo_sqlite')) {
$builder->addAlias('nette.cacheJournal', $this->prefix('journal'));
}

$builder->addAlias('cacheStorage', $this->prefix('storage'));
}
}
}
4 changes: 0 additions & 4 deletions tests/Bridges.DI/CacheExtension.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,4 @@ test('', function () {

$storage = $container->getService('cache.storage');
Assert::type(Nette\Caching\Storages\FileStorage::class, $storage);

// aliases
Assert::same($journal, $container->getService('nette.cacheJournal'));
Assert::same($storage, $container->getService('cacheStorage'));
});

0 comments on commit 0c542ec

Please sign in to comment.