forked from zendframework/zendframework
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ZF2-11, ZF2-91 - Remove loadClass in InfoCard
- Loading branch information
Showing
6 changed files
with
45 additions
and
42 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
namespace ZendTest\Infocard\TestAsset; | ||
use Zend\InfoCard\XML\Security\Transform\TransformChain; | ||
|
||
class UserTransformChain extends TransformChain | ||
{ | ||
protected function _findClassbyURI($uri) | ||
{ | ||
switch($uri) { | ||
case 'http://www.w3.org/2000/09/xmldsig#enveloped-signature': | ||
return 'ZendTest\InfoCard\XML\Security\Transform\EnvelopedSignatureUsersNotExists'; | ||
case 'http://www.w3.org/2001/10/xml-exc-c14n#': | ||
return 'ZendTest\InfoCard\XML\Security\Transform\XMLExcC14NUsersNotExists'; | ||
default: | ||
throw new Security\Exception\InvalidArgumentException("Unknown or Unsupported Transformation Requested"); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters