0

我使用 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",
4

1 回答 1

0

你在使用自己的控制器吗?

如果是这样,你应该有:

parameters:
    imagine.controller.class: Company\AnyBundle\Controller\ImagineController

也许你忘记了.class

于 2013-03-14T12:47:10.690 回答