2016-01-05 52 views
0

我使用mpadf &使用symfony的2.7版本如何使用AuthorizationChecker類代替SecurityContext的在Symfony2中

但這個錯誤拋出

symfony的\分量\安全\核心\的SecurityContext類是 自2.6版開始棄用,並將在3.0中刪除。改爲使用Symfony \ Component \ Security \ Core \ Authentication \ Token \ Storage \ TokenStorage 或Symfony \ Component \ Security \ Core \ Authorization \ AuthorizationChecker 。

任何人有想法嗎?

+0

你真的得到了嗎?一個錯誤或只是一個折舊通知。 – Cerad

回答