Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing imports in ApcLoader.

  • Loading branch information...
commit c3f93297609575d6979b10b07eb6b7cdbde081b5 1 parent 04614d8
@zyxist zyxist authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Opl/Autoloader/ApcLoader.php
View
4 src/Opl/Autoloader/ApcLoader.php
@@ -10,6 +10,8 @@
* and other contributors. See website for details.
*/
namespace Opl\Autoloader;
+use DomainException;
+use RuntimeException;
/**
* A modification of the <tt>ClassMapLoader</tt> which allows to use
@@ -24,7 +26,6 @@ class ApcLoader
{
/**
* The default autoloader path.
- * @static
* @var string
*/
private $defaultPath = '';
@@ -69,7 +70,6 @@ public function __construct($defaultPath, $classMapLocation, $apcKey)
throw new RuntimeException('Cannot find a class map under the specified location.');
}
$this->classMap = @unserialize(file_get_contents($this->classMapLocation));
-
if(!is_array($this->classMap))
{
throw new RuntimeException('The loaded file does not contain a valid class map.');
Please sign in to comment.
Something went wrong with that request. Please try again.