Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/symfony/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Symfony Sonata管理自定义表单操作-通配符/_调用_Symfony_Sonata Admin - Fatal编程技术网

Symfony Sonata管理自定义表单操作-通配符/_调用

Symfony Sonata管理自定义表单操作-通配符/_调用,symfony,sonata-admin,Symfony,Sonata Admin,嗨,我尝试使用自定义路由创建通配符编辑操作 受保护的功能配置路由(RouteCollection$collection) { 我希望此操作将由类似configureFormFields的管理员解决 我覆盖了CrudController,但添加的调用不够 Sensio\Bundle\FrameworkExtraBundle\EventListener\ControllerListener:onKernelController 给出错误-检查方法是否存在 因此,在路由构建中可能会推送选项/默认值 这

嗨,我尝试使用自定义路由创建通配符编辑操作

受保护的功能配置路由(RouteCollection$collection) {

我希望此操作将由类似configureFormFields的管理员解决

我覆盖了CrudController,但添加的调用不够

Sensio\Bundle\FrameworkExtraBundle\EventListener\ControllerListener:onKernelController

给出错误-检查方法是否存在

因此,在路由构建中可能会推送选项/默认值

这里

有什么想法吗

    $collection->add('customFormA',null,[]);
    $collection->add('customFormB',null,[]);
$collection->add('customFormA',null,[]);
$collection->add('customFormB',null,[]..... [
method: 'MyMagicCrudAction',
formVersion: 'customFormB'
]);