heiseonline / shariff-backend-php

👮 PHP backend for Shariff. Shariff enables website users to share their favorite content without compromising their privacy.
http://ct.de/-2467514
133 stars 44 forks source link

Fix cacheClass in full example in README.md #165

Closed richard67 closed 4 years ago

richard67 commented 4 years ago

When using

use Heise\Shariff\LaminasCache;
/**
 * Sample configuration
 *
 * @var array
 */
private static $configuration = [
    'cacheClass' => LaminasCache::class,
...

like currently written in the full example in README.md, I get a PHP error about class not being found.

When using

use Heise\Shariff\LaminasCache;
/**
 * Sample configuration
 *
 * @var array
 */
private static $configuration = [
    'cacheClass' => 'Heise\\Shariff\\LaminasCache',
...

it works.

This PR corrects the full example in README.md to reflect this.

When not specifying the cache class in index.php, everything works, too, so nothing else to be changed, Backend.php is correct.

richard67 commented 4 years ago

Travis error seems not to be related to this PR.

richard67 commented 4 years ago

Ping @compeak @sehkunde .

compeak commented 4 years ago

Thanks.

richard67 commented 4 years ago

Thanks.