Remove uses of Loader:loadClass() #1184

Merged
merged 1 commit into from May 9, 2012

Conversation

Projects
None yet
2 participants
Member

Maks3w commented May 9, 2012

Not necessary with PHP 5.3 and Autoload.

Build Status

Remove uses of Loader:loadClass()
Not necessary with PHP 5.3 and Autoload.
@@ -42,7 +45,7 @@ class Encrypt extends AbstractFilter
*/
public function __construct($options = null)
{
- if ($options instanceof \Zend\Config\Config) {
+ if ($options instanceof Config\Config) {
$options = $options->toArray();
@weierophinney

weierophinney May 9, 2012

Owner

Actually, we should test for Traversable, and, if it is, use Zend\Stdlib\ArrayUtils::iteratorToArray() to cast $options to an array.

Member

Maks3w commented May 9, 2012

I will check for uses of Zend\Config in another different iteration.

@weierophinney weierophinney merged commit 6d6cce3 into zendframework:master May 9, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment