我的本地环境和DEV之间的FosBundle视图实现之间存在一些奇怪的不匹配。两个系统共享完全相同的配置文件和环境变量,并使用相同的分支。一切都被拉和推两者和.gitignore
内容是一样的。FOSBundle视图不会被Symfony 2.5中的自定义视图所覆盖
Composer.json(在两个相同):
"require": {
"php": ">=5.3.3",
"symfony/symfony": "2.5.*",
"doctrine/orm": "~2.2,>=2.2.3",
"doctrine/doctrine-bundle": "~1.2",
"twig/extensions": "^1.3",
"symfony/assetic-bundle": "^2.7",
"symfony/swiftmailer-bundle": "~2.3",
"symfony/monolog-bundle": "~2.4",
"sensio/distribution-bundle": "~3.0",
"sensio/framework-extra-bundle": "~3.0",
"incenteev/composer-parameter-handler": "~2.0",
"friendsofsymfony/user-bundle": "[email protected]",
"simplesamlphp/simplesamlphp": "^1.14",
"white-october/pagerfanta-bundle": "~1.0",
"antimattr/google-bundle": "[email protected]",
"symfony/property-access": "^2.7",
"leafo/scssphp": "^0.3.2",
"patchwork/jsqueeze": "~1.0",
"phpunit/phpunit": "4.8.*",
"mockery/mockery": "^0.9.4",
"farmatholin/segment-io-bundle": "dev-master"
},
应用/配置/ parameters.yml(在两个相同的,不同分贝用户/密码):
parameters:
database_driver: pdo_mysql
database_host: 127.0.0.1
database_port: null
database_name: dbname
database_user: root
database_password: 'pass'
locale: en
secret: 'bla'
debug_toolbar: true
debug_redirects: false
use_assetic_controller: true
google_analytics_name: domain_google_analytics
google_analytics_account_id: bla
google_analytics_domain: .domain.com
mailer_port: 587
mailer_encryption: tls
mailer_transport: smtp
mailer_host: email-smtp.host.com
mailer_user: user
mailer_password: blabla
mailer_auth_mode: login
set_cli_mailer_host: 'http://domain.com'
set_use_mailer: swiftmailer
set_internal_mails_only: false
segment_write_key:
我也可以提供config.yml
内容,但在两种环境中都是一样的。我们已经覆盖了原FOSBundle意见进行重置密码,注册等,并放置新的模板在我们自己的包:src/UserBundle/Resources/views/Resetting/checkEmail.html.twig
:
{% extends "FOSUserBundle::layout.html.twig" %}
{% trans_default_domain 'FOSUserBundle' %}
{% block fos_user_content %}
<section>.....</section>
{% endblock %}
在DEV环境这一切按预期工作,但本地漠视被覆盖的模板只是用在/vendor/friendsofsymfony/user-bundle/Resources/views/Resettin/
我真的被卡住了。试过这两个:
- 作曲家自更新;作曲家更新;作曲家安装;
- php app/console cache:clear; rm -rf app/cache *
- 检查服务器是否有一些opcache - 无;
- PHP应用程序/控制台assetic:转储
没有改变任何责任。代码和配置中的所有内容都是相同的,但它们载入不同的视图。为什么?
感谢,现在的工作! –
忘了提及你让我免于生气。从字面上看。再次感谢。 –