We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c691a4e + 2a9fd90 commit e8d6894Copy full SHA for e8d6894
src/autoload.php
@@ -13,7 +13,7 @@
13
*/
14
15
define('PFC_PHP_EXT', 'php');
16
-define('PFC_BIN_DIR', __DIR__ . '../bin/legacy/');
+define('PFC_BIN_DIR', __DIR__ . '/../bin/');
17
18
/**
19
* Register Autoload
@@ -27,15 +27,14 @@
27
28
return;
29
} else if (strpos($entity, 'Psr\Cache') === 0) {
30
- $entity = str_replace('\\', '/', $entity);
31
- $path = PFC_BIN_DIR . $entity . '.' . PFC_PHP_EXT;
+ $path = PFC_BIN_DIR . 'legacy/Psr/Cache/src/' . substr(strrchr($entity, '\\'), 1) . '.' . PFC_PHP_EXT;
32
33
if (is_readable($path)) {
34
require_once $path;
35
}else{
36
trigger_error('Cannot locate the Psr/Cache files', E_USER_ERROR);
37
- return;
38
}
+ return;
39
40
41
$entity = str_replace('\\', '/', $entity);
0 commit comments