2015-06-18 31 views
0

我使用symfony book http://symfony.com/doc/current/cookbook/security/custom_authentication_provider.html的自定義身份驗證提供程序,並且正在測試我的代碼。如果有什麼在書中說的是正確的,那麼在WSSE認證應能正常工作,但我得到一個陌生的錯誤:wsse認證中的編譯錯誤

Compile Error: Declaration of Wsse UserToken::getCredentials() must be compatible with Symfony\Component\Security\Core\Authentication\Token\TokenInterface::getCredentials()

我知道我搞砸了某個地方......

回答

0

檢查方法參數並且它們的類型和默認值(又名'方法簽名')與TokenInterface中的相同。