set default routing with the function available de boulde in symfony 3

1.i tried but still wrong set my route, my target is function configureFormFields in BorrowerRegisterAdmin bundle

app.admin.formregistration:
    class: AdminBundleAdminBorrowerRegisterAdmin
    tags:
        - { name: sonata.admin, manager_type: orm, group: "Admin", label: "Form Registrasi" }
    arguments:
        - ~
        - BorrowerBundleEntityBorrowerRegister
        - ~
    calls:
        - [setBorrowerRegisterAdmin, ['@AdminBundleAdminBorrowerRegisterAdminconfigureFormFields']]

2.this example function in BorrowerRegisterAdmin bunlde

protected function configureFormFields(FormMapper $formMapper)
{
    //this is target route
}

Source: Symfony Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *