Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
[Filter] Remove dependency with legacy Zend\Loader
Browse files Browse the repository at this point in the history
  • Loading branch information
Maks3w committed May 31, 2012
3 parents cccfba9 + 2717653 + b4dd364 commit c63c74c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Encrypt.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

use Traversable;
use Zend\Stdlib\ArrayUtils;
use Zend\Loader;

/**
* Encrypts a given string
Expand Down Expand Up @@ -84,7 +83,7 @@ public function setAdapter($options = null)
$options = array();
}

if (Loader::isReadable('Zend/Filter/Encrypt/' . ucfirst($adapter). '.php')) {
if (stream_resolve_include_path('Zend/Filter/Encrypt/' . ucfirst($adapter). '.php')) {
$adapter = 'Zend\\Filter\\Encrypt\\' . ucfirst($adapter);
}

Expand Down

0 comments on commit c63c74c

Please sign in to comment.