在Sylius中安装灯具-Symfony2 [英] Install Fixtures in Sylius - Symfony2

查看:70
本文介绍了在Sylius中安装灯具-Symfony2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在成功安装并更新了 Sylius 的项目文件夹中的所有供应商之后,我尝试运行以下代码:

After having successfully installed and updated all vendors in my project folder for Sylius i tried running this code :


应用程序/控制台sylius:install --fixtures

app/console sylius:install --fixtures

我收到此错误:



PHP致命错误:在C中找不到类'ResourceBundle' :wamp\www\sylius\vendor\
symfony\symfony\src\Symfony\Component\Locale\Locale.php,第51行

PHP Fatal error: Class 'ResourceBundle' not found in C:\wamp\www\sylius\vendor\ symfony\symfony\src\Symfony\Component\Locale\Locale.php on line 51


然后我尝试了此处提供的所有可能的解决方案

在php中安装了intl扩展名(成功运行)。然后运行了该命令

Installed intl extension in php (working successfully).Then ran this command


php build-data.php'您的ICU版本'

php build-data.php 'your ICU version'

正在运行上面的命令我得到这个:

On running the above command i get this:


,它不被视为内部或外部命令,
可操作程序或批处理文件。
未安装命令 svn

'which' is not recognized as an internal or external command, operable program or batch file. The command "svn" is not installed

我想知道是否存在解决此问题的另一种方法。
请先帮助和感谢。

I want to know if there is another workaround to this issue. Please help and thanks in advance.

P.S。 -我的系统上没有运行SVN。而且我正在使用icu * 46.dll

P.S. - No SVN runs on my system. And i'm using icu*46.dll

有人遇到过这个吗?

推荐答案

此错误与PHP intl-extension有关。确保已启用它并具有最新版本。

This error relates to be PHP intl-extension. Make sure it is enabled and you have the LATEST version.

快速测试:

<?php
    var_dump(extension_loaded('intl'));

请确保您的PHP文件夹已正确注册到%PATH%环境变量中。

Make sure your PHP folder is correctly registered in your %PATH% environment variable.

Control Panel - System - Advanced - ...

否则,PHP不会将ICU dll作为Apache模块加载-没有显示错误消息,但未启用扩展名。

Without that, the ICU dlls are not loaded by PHP as Apache module - no error message is displayed, but the extension is not enabled.

还从 phpinfo()检查! ...

php -m

...或(Windows = findstr,linux / cygwin = grep)

... or ( windows = findstr, linux/cygwin = grep )

php -i | findstr intl

检查是否在您的php.ini中启用了扩展名(不知道WAMP的扩展路径,因此请进行调整

check that the extension is enabled in your php.ini ( dont know WAMP's extenion path so adjust it please )

extension=php_intl.dll

如我所见,您正在Windows上并使用WAMP,则必须获得扩展的预编译版本。

As i can see you are on Windows and using WAMP you will have to get a precompiled version of the extension.

http://windows.php.net/download/ 上的软件包都包含php_intl.dll。

The packages on http://windows.php.net/download/ all contain the php_intl.dll in the ext folder.

请确保ICU使用与PHP相同版本的MSVC编译。

Make sure that the ICU is compiled with the same version of MSVC that PHP is.

如果ICU是使用 VC10 编译的,而PHP是使用 VC9 编译的,则会遇到问题。

You run into problems if the ICU was compiled with VC10 and PHP was with VC9.

尽管php -m和php -i会检测到不会显示在phpinfo()中的INTL。

Although php -m and php -i detect the INTL it wouldn't show up in phpinfo().

这篇关于在Sylius中安装灯具-Symfony2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆