我有 5 个到数据库的连接,在 config.yml 和映射中进行了描述:
orm:
default_entity_manager: site
entity_managers:
site:
connection: siteConfig
mappings:
CSSBundle: ~
forum:
connection: forumConfig
mappings:
IPBBridgeBundle: ~
我使用 CSSBundle 作为一些实体的主要捆绑包,并使用 IPBBridgeBundle 通过 IPB 数据库(“论坛”EM)进行身份验证。在 IPBBridgeBundle 我有成员实体,我在 security.yml 中设置为用户提供者
providers:
main:
entity: { class: Telnet\IPBBridgeBundle\Entity\Member, property: username }
CSSBundle 处理的所有路由,除了“/login”、“/ligin_check”和“/logout”,它们都由 IPBBridgeBundle (LoginController) 处理。当我试图去 / 我有
Fatal error: require_once(): Cannot redeclare class telnet\ipbbridgebundle\controller\logincontroller in /var/www/vhosts/css.ilimnet.ru/www/Symfony/vendor/jms/di-extra-bundle/JMS/DiExtraBundle/HttpKernel/ControllerInjectorsWarmer.php on line 52