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 Mar 10, 2024
1 parent 7259d6e commit a116cb9
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 @@ -45,13 +45,5 @@ public function loadConfiguration(): void
$builder->addDefinition($this->prefix('storage'))
->setType(Nette\Caching\Storage::class)
->setFactory(Nette\Caching\Storages\FileStorage::class, [$this->tempDir]);

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 a116cb9

Please sign in to comment.