Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ If you are using `Loader`, pass it an `ApcuCacheFactory` _before_ getting the tr

```php
PhpMyAdmin\MoTranslator\Loader::setCacheFactory(
new PhpMyAdmin\MoTranslator\Cache\AcpuCacheFactory()
new PhpMyAdmin\MoTranslator\Cache\ApcuCacheFactory()
);
$loader = new PhpMyAdmin\MoTranslator\Loader();

Expand All @@ -160,7 +160,7 @@ to the `ApcuCacheFactory` or when instantiating `ApcuCache`:

```php
PhpMyAdmin\MoTranslator\Loader::setCacheFactory(
new PhpMyAdmin\MoTranslator\Cache\AcpuCacheFactory(
new PhpMyAdmin\MoTranslator\Cache\ApcuCacheFactory(
3600, // cache for 1 hour
true, // reload on cache miss
'custom_' // custom prefix for cache entries
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"vimeo/psalm": "^6.8"
},
"suggest": {
"ext-apcu": "Needed for ACPu-backed translation cache"
"ext-apcu": "Needed for APCu-backed translation cache"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion src/Cache/ApcuCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function __construct(
private string $prefix = 'mo_',
) {
if (! (function_exists('apcu_enabled') && apcu_enabled())) {
throw new CacheException('ACPu extension must be installed and enabled');
throw new CacheException('APCu extension must be installed and enabled');
}

$this->ensureTranslationsLoaded();
Expand Down
2 changes: 1 addition & 1 deletion tests/Cache/ApcuCacheFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ protected function setUp(): void
return;
}

$this->markTestSkipped('ACPu extension is not installed and enabled for CLI');
$this->markTestSkipped('APCu extension is not installed and enabled for CLI');
}

protected function tearDown(): void
Expand Down
2 changes: 1 addition & 1 deletion tests/Cache/ApcuCacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ protected function setUp(): void
return;
}

$this->markTestSkipped('ACPu extension is not installed and enabled for CLI');
$this->markTestSkipped('APCu extension is not installed and enabled for CLI');
}

protected function tearDown(): void
Expand Down
2 changes: 1 addition & 1 deletion tests/Cache/ApcuDisabledTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function testConstructorApcuNotEnabledThrowsException(): void
}

$this->expectException(CacheException::class);
$this->expectExceptionMessage('ACPu extension must be installed and enabled');
$this->expectExceptionMessage('APCu extension must be installed and enabled');
new ApcuCache(new MoParser(null), 'foo', 'bar');
}
}
Loading