我使用 AvalancheImagine 包生成缩略图时收到此错误:
Unable to find controller "imagine.controller:filter".
500 Internal Server Error - InvalidArgumentException
捆绑包注册在AppKernel.php
. 路由和配置 yml 文件已更新,但是当我在开发环境中加载资产的 url 时仍然出现此错误。
开发模式下的以下输出:
protected function createController($controller)
{
if (false === strpos($controller, '::')) {
throw new \InvalidArgumentException(sprintf('Unable to find controller "%s".', $controller));
}
list($class, $method) = explode('::', $controller, 2);
at ControllerResolver ->createController ('imagine.controller:filter')
in E:\workspace\***\app\cache\dev\classes.php at line 5297 -+
at ControllerResolver ->getController (object(Request))
in E:\workspace\***\src\Inhouse\MainBundle\Event\BeforeControllerActionListener.php at line 32 -+
我的composer.json
:
"avalanche123/imagine-bundle": "dev-master",