Skip to content

Unknown driver path reference (phpFastCache\Drivers\Setup\Driver) #460

@jackie-d

Description

@jackie-d

###Configuration:

PhpFastCache version: 1.2.5 (got from Api.php)
PHP version: 5.6.30
Operating system: Mac OSX

####Issue description:

Fresh install, cloned the whole dir on my virtualhost, and setupping it without composer as follow:

    use phpFastCache\CacheManager;

    require __DIR__ . '/libs/PhpFastCache/src/autoload.php';

    CacheManager::setup(array(
        "path" => $_SERVER['DOCUMENT_ROOT']."cache",
    ));
    $InstanceCache = CacheManager::getInstance('files');

and I get the following error:

Fatal error: Class 'phpFastCache\Drivers\Setup\Driver' not found in /Users/Jack/Documents/VirtualHosts/xxx/inc/libs/PhpFastCache/src/phpFastCache/CacheManager.php on line 198

How could I make it work without composer?

Thanks.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions