2014-09-23 149 views
-1

我想通过使用这个命令在我的项目文件夹中安装Symfony:composer create-project symfony/framework-standard-edition path/ "2.5.*"Symfony项目安装

在建立我得到提示一个问题,如果我想安装爱司米演示包,我用肯定的答复,安装继续,但我得到这些问题“看图像”再次提示:

enter image description here

正如你可以看到我填写了所有的细节,但是,这将引发一系列的错误:

[Symfony\Component\Debug\Exception\ContextErrorException]                  

Warning: date_default_timezone_get(): 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 the timezone 'UTC' for now, but please set date.timezone 
to select your timezone. in 
/Applications/MAMP/htdocs/Symfony/Project1/vendor/monolog/monolog/src/Monolog/Logger.php line 233 

脚本Sensio公司\包\ DistributionBundle \作曲\ ScriptHandler :: clearCache处理后安装厘米d事件终止例外

[RuntimeException]               
An error occurred when executing the "'cache:clear --no-warmup'" command. ` 

我在做什么错在这里?

+3

它作为错误说,设置你的'date.timezone'值在'php.ini' – sjagr 2014-09-23 13:11:37

+0

什么是你的PHP版本? – Cerad 2014-09-23 13:44:08

回答

0

我的date.timezone值发现为什么错误被抛出的xD

这是因为我在我的Mac安装我的PHP版本的问题(5.3) Symfony的requiers 5.5

由于我更新了我的版本,我不再看到这个错误。

感谢您的帮助球员:)

+0

不是...... Symfony 2.5的'composer.json'注意到了“”php“的要求:”> = 5.3.3“'。它可能只是为你升级你的PHP时设置'date.timezone'值。请尝试了解您的问题并尝试解决它们。 – sjagr 2014-09-23 14:18:47

+0

,但它声明它是php5.0是优选的 – Tomazi 2014-09-23 14:27:54

+0

请注意,使用小于5.3.8或等于5.3.16的PHP版本时,Symfony有一些已知的限制。欲了解更多信息,请参阅自述文件的需求部分。 – Tomazi 2014-09-23 14:34:21