Skip to content
Snippets Groups Projects
Unverified Commit 103f08d9 authored by Jaime Pérez Crespo's avatar Jaime Pérez Crespo
Browse files

bugfix: "const" is a keyword, so we can't name classes like that. Also, the...

bugfix: "const" is a keyword, so we can't name classes like that. Also, the name of the class must be exactly the same as the name of the file, according to the PSR-4 standard.
parent 79ff6cd4
No related branches found
No related tags found
No related merge requests found
......@@ -3,12 +3,12 @@
namespace SimpleSAML\Module\adfs\SAML2\XML\fed;
/**
* Class representing fed Constants.
* Class holding constants relevant for ADFS.
*
* @package SimpleSAMLphp
*/
class FedConst
class Constants
{
/**
* The namespace for WS-FED protocol.
......
......@@ -15,7 +15,7 @@ class SecurityTokenServiceType extends \SAML2\XML\md\RoleDescriptor
*
* @var array
*/
public $protocolSupportEnumeration = [FedConst::NS_FED];
public $protocolSupportEnumeration = [Constants::NS_FED];
/**
* The Location of Services.
......@@ -48,7 +48,7 @@ class SecurityTokenServiceType extends \SAML2\XML\md\RoleDescriptor
assert(is_string($this->Location));
$e = parent::toXML($parent);
$e->setAttributeNS('http://www.w3.org/2000/xmlns/', 'xmlns:fed', FedConst::NS_FED);
$e->setAttributeNS('http://www.w3.org/2000/xmlns/', 'xmlns:fed', Constants::NS_FED);
$e->setAttributeNS(\SAML2\Constants::NS_XSI, 'xsi:type', 'fed:SecurityTokenServiceType');
TokenTypesOffered::appendXML($e);
Endpoint::appendXML($e, 'SecurityTokenServiceEndpoint', $this->Location);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment