我想提供一個使用FOSOAuthServerBundle與OAuth2進行安全保護的RESTful API,我不確定我必須做什麼。 我遵循的基本步驟from the documentation但有些東西不見了,我無法找到我所需要的一個完整的例子。 所以,我試圖理解盡我所能this example of implementation(唯一一個我發現),但仍然有一些事情我不明白。 首先,爲什麼我們需要
加載類型我使用FOSOAuthServerBundle和Symfony,我收到錯誤以下錯誤: Could not load type "travel_oauth_server_auth"
500 Internal Server Error - Exception
這裏是我的service.xml文件,因爲我是新來的Symfony,所以我不知道爲什麼我我得到這個錯誤。 <?xml versio