Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added exceptions when APC is not enabled

  • Loading branch information...
commit 86fed40f30a64d0726ed19060d4b872f2feaaf7d 1 parent 5bd91e2
@fabpot fabpot authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 ApcUniversalClassLoader.php
View
4 ApcUniversalClassLoader.php
@@ -73,6 +73,10 @@ class ApcUniversalClassLoader extends UniversalClassLoader
*/
public function __construct($prefix)
{
+ if (!extension_loaded('apc')) {
+ throw new \RuntimeException('Unable to use ApcUniversalClassLoader as APC is not enabled.');
+ }
+
$this->prefix = $prefix;
}
Please sign in to comment.
Something went wrong with that request. Please try again.