Symfony SonataNotificationBundle 配置
Symfony SonataNotificationBundle configuration
抱歉,如果这个问题很愚蠢,我是 Symfony 的新手。安装包后 oficial documentation 我收到一个错误:
Fatal error: Uncaught
Symfony\Component\Debug\Exception\ClassNotFoundException: Attempted to
load class "ApplicationSonataNotificationBundle" from namespace
"Application\Sonata\NotificationBundle". Did you forget a "use"
statement for another namespace? in
C:\OpenServer\domains\tdserebro\app\AppKernel.php:41
第 AppKernel.php#41 行是:
new Application\Sonata\NotificationBundle\ApplicationSonataNotificationBundle(),
那要我做什么 "use"?文档中没有类似的东西。
如果这很重要,class 本身存储在 app\Application\Sonata\NotificationBundle\ 目录(默认情况下)。 Symfony 版本是 2.8
默认自动加载配置要求您的 class Application\Sonata\NotificationBundle
在 src/Application/Sonata/NotificationBundle/ 中而不是在 app/.
要么重新配置自动加载器(您可以在 composer.json 中进行),要么将文件移动到 src/.
下
抱歉,如果这个问题很愚蠢,我是 Symfony 的新手。安装包后 oficial documentation 我收到一个错误:
Fatal error: Uncaught Symfony\Component\Debug\Exception\ClassNotFoundException: Attempted to load class "ApplicationSonataNotificationBundle" from namespace "Application\Sonata\NotificationBundle". Did you forget a "use" statement for another namespace? in C:\OpenServer\domains\tdserebro\app\AppKernel.php:41
第 AppKernel.php#41 行是:
new Application\Sonata\NotificationBundle\ApplicationSonataNotificationBundle(),
那要我做什么 "use"?文档中没有类似的东西。 如果这很重要,class 本身存储在 app\Application\Sonata\NotificationBundle\ 目录(默认情况下)。 Symfony 版本是 2.8
默认自动加载配置要求您的 class Application\Sonata\NotificationBundle
在 src/Application/Sonata/NotificationBundle/ 中而不是在 app/.
要么重新配置自动加载器(您可以在 composer.json 中进行),要么将文件移动到 src/.
下