【问题标题】:PageableManagerInterface error in SonataAdminBundleSonataAdminBundle 中的 PageableManagerInterface 错误
【发布时间】:2014-06-20 15:26:17
【问题描述】:

我正在尝试将 SonataAdminBundle 和 SonataUserBundle 配置为使用 mongodb,但出现以下错误:

ClassNotFoundException: Attempted to load interface "PageableManagerInterface" from namespace "Sonata\CoreBundle\Model" in /Users/me/Sites/mynamespace-webtools/vendor/sonata-project/user-bundle/Model/UserManagerInterface.php line 25. Do you need to "use" it from another namespace?

任何人都可以解释导致这种情况的原因吗?我也得到了here 描述的症状,并尝试了那里建议的答案。

谁能确认 mongodb 功能是否刚刚损坏?我也想知道这个错误是否与这个commit有关?

【问题讨论】:

    标签: sonata-admin symfony-2.4 sonata-user-bundle


    【解决方案1】:

    这似乎是 Sonata 系统本身的依赖错误,与 MongoDB 模块没有严格关系。

    PageableManagerInterface 类由 Sonata Core Bundle 提供。确保你的 composer.json 文件中有它:

    "require": {
        "sonata-project/core-bundle": "dev-master",
    }
    

    之后,请确保您的安装是最新的并像往常一样清理缓存:

    php composer.phar self-update ; php composer.phar update
    

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-11-29
    • 1970-01-01
    • 2016-12-28
    • 1970-01-01
    • 2012-05-31
    • 1970-01-01
    • 2017-06-21
    相关资源
    最近更新 更多