我安装了SonataClassificationBundle并将其扩展到我的App \ Application文件夹中。官方网站上的文件不清楚Classification Bundle
我更正了所有名称空间以指向我的扩展包。我清除缓存没有错误,我运行服务器。
当我登录配置文件时,我得到以下异常:
An exception has been thrown during the rendering of a template ("Unable to generate a URL for the named route "admin_app_sonataclassificationcategory_create" as such route does not exist.").
有我的sonata_classification:
sonata_classification:
class:
category: App\Application\Sonata\ClassificationBundle\Entity\Category
collection: App\Application\Sonata\ClassificationBundle\Entity\Collection
context: App\Application\Sonata\ClassificationBundle\Entity\Context
tag: App\Application\Sonata\ClassificationBundle\Entity\Tag
我在SonataUserBundle中检测到了同样的问题,但在将我的用户提升为ROLE_ADMIN之后,问题就解决了。
有人可以帮忙吗?
谢谢
再次解决了。我跑了:
composer update