Symfony 2在运行Generate:Bundle时无法运行
我正在尝试使用控制台添加一个新的包,代码如下Symfony 2在运行Generate:Bundle时无法运行,symfony,Symfony,我正在尝试使用控制台添加一个新的包,代码如下 php app/console generate:bundle 它到底给了我以下的错误 [Symfony\Component\Debug\Exception\ContextErrorException] Warning: date_default_timezone_get(): It is not safe to rely on the system' s timezone settings. Y
php app/console generate:bundle
它到底给了我以下的错误
[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 me
thods and you are still getting this warning, you most likely misspelled th
e timezone identifier. We selected the timezone 'UTC' for now, but please s
et date.timezone to select your timezone. in /Users/Phil/Sites/SoccerTips24
/vendor/monolog/monolog/src/Monolog/Logger.php line 233
generate:bundle [--namespace="..."] [--dir="..."] [--bundle-name="..."] [--format="..."] [--structure]
我知道第一个与时间设置有关,但是bundle不会添加到我的src文件夹中。。。
有没有办法解决这个问题 一旦你转到php.ini并设置时区,它应该工作。一旦你转到php.ini并设置时区,它应该工作。一旦你转到php.ini并设置时区,它应该工作。一旦你转到php.ini并设置时区,它应该工作。在php.ini中设置时区
php -i |grep php.ini
取消对时区记录的注释,并设置时区:
date.timezone = "Europe/Paris"
在php.ini中设置时区
php -i |grep php.ini
取消对时区记录的注释,并设置时区:
date.timezone = "Europe/Paris"
在php.ini中设置时区
php -i |grep php.ini
取消对时区记录的注释,并设置时区:
date.timezone = "Europe/Paris"
在php.ini中设置时区
php -i |grep php.ini
取消对时区记录的注释,并设置时区:
date.timezone = "Europe/Paris"