Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

Commit

Permalink
added exceptions when APC is not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed May 14, 2011
1 parent 5bd91e2 commit 86fed40
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ApcUniversalClassLoader.php
Expand Up @@ -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;
}

Expand Down

0 comments on commit 86fed40

Please sign in to comment.