我想在我的Symfony2项目中使用一些API,例如foursquare.问题是,不是关于Twitter/Facebook的两个伟大的FOS捆绑,我没有在OAuth上找到任何东西(我尝试了EtcPasswdOAuthBundle,但由于我猜错了文件而无法使其工作).
此外,我想使它与FOSUserBundle一起使用.
所以,如果你能给我一些帮助,我不明白如何用Symfony管理OAuth ......
谢谢 !
我遇到了Symfony 2的一些麻烦,试图通过以下方式生成模式:
php console/app generate:schema:create
Run Code Online (Sandbox Code Playgroud)
我有一个很好的错误:
[Exception]
DateTime::__construct(): It is not safe to rely on the system's
timezone settings. You are *required* to use the date.timezone
setting or the date_default_timezone_set() function.
In case you used any of those methods and you are still
getting this warning, you most likely misspelled the timezone
identifier.
We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead
Run Code Online (Sandbox Code Playgroud)
因此,我正在尝试用我的php.ini更改时区
date.timezone = 'Europe/Paris'
Run Code Online (Sandbox Code Playgroud)
但即使我正在重装我的阿帕奇,我仍然会得到
date.timezone Europe/Zurich Europe/Zurich
Run Code Online (Sandbox Code Playgroud)
如果我看着我phpinfo(),所以我真的不知道接下来应该尝试什么......而且我甚至不确定我是不是很好.
谢谢你的帮助