File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -34,8 +34,8 @@ ApcClassLoader
34
34
// instance of a class that implements a findFile() method, like the ClassLoader
35
35
$loader = ...;
36
36
37
- // my_prefix is the APC namespace prefix to use
38
- $cachedLoader = new ApcClassLoader('my_prefix' , $loader);
37
+ // sha1(__FILE__) generates an APC namespace prefix
38
+ $cachedLoader = new ApcClassLoader(sha1(__FILE__) , $loader);
39
39
40
40
// register the cached class loader
41
41
$cachedLoader->register();
@@ -54,8 +54,8 @@ it is straightforward::
54
54
// instance of a class that implements a findFile() method, like the ClassLoader
55
55
$loader = ...;
56
56
57
- // my_prefix is the XCache namespace
58
- $cachedLoader = new XcacheClassLoader('my_prefix' , $loader);
57
+ // sha1(__FILE__) generates an XCache namespace prefix
58
+ $cachedLoader = new XcacheClassLoader(sha1(__FILE__) , $loader);
59
59
60
60
// register the cached class loader
61
61
$cachedLoader->register();
You can’t perform that action at this time.
0 commit comments