-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add createXmlSecurityDSig() method #10
Conversation
allowing to create it with optional properties
What do you think of this implementation ? |
XmlDsig is stateful so its not safe reuse the same instance |
Ok, so i did as you ask for. Does it fits you ? |
/** | ||
* Create the XLMSecurityDSign class | ||
* | ||
* @return new XMLSecurityDSig() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does not follow phpdoc syntax. Should be @return XMLSecurityDSig
* | ||
* @return new XMLSecurityDSig() | ||
*/ | ||
protected function createXmlSecurityDSig($options = array()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The argument $options is not used. Please remove.
Also move the protected method after public methods.
Watch this other CS violations https://travis-ci.org/Maks3w/xmldsig/jobs/105999819#L245 |
allowing to create it with optional properties
Not used to Travis-ci and php-cs i had some trouble validating the build... But it should be OK now |
Looks good. Could you do a last thing? Please squash your commits in a single one |
Opening a new PR. |
allowing to create it with optional properties