Symfony2 捆绑包和 Travis-CI
Symfony2 bundle and Travis-CI
我将我的包添加到 travic-ci。但是我的项目失败并显示消息
The service "my.form_extension" has a dependency on a non-existent service "validator".
我不明白为什么会出现这个错误,在 composer.json 我有
"symfony/framework-bundle": "~2.3",
"symfony/twig-bundle": "~2.3",
"symfony/validator": "2.6.*@dev"
因此 framework-bundle
中存在验证器服务。我做错了什么?
P.S。 travis.yml
中的前脚本
before_script:
- composer self-update
- composer install
验证者是only registered if validation is enabled via the configuration. In your test configuration you need to enable validation under the framework section (just like in standard edition):
framework:
validation: ~
我将我的包添加到 travic-ci。但是我的项目失败并显示消息
The service "my.form_extension" has a dependency on a non-existent service "validator".
我不明白为什么会出现这个错误,在 composer.json 我有
"symfony/framework-bundle": "~2.3",
"symfony/twig-bundle": "~2.3",
"symfony/validator": "2.6.*@dev"
因此 framework-bundle
中存在验证器服务。我做错了什么?
P.S。 travis.yml
中的前脚本before_script:
- composer self-update
- composer install
验证者是only registered if validation is enabled via the configuration. In your test configuration you need to enable validation under the framework section (just like in standard edition):
framework:
validation: ~