Controller/PermissionsGroupController.php
private function createAddRoleScopeForm(PermissionsGroup $permissionsGroup)
    {
        return $this->createFormBuilder()
                ->setAction($this->generateUrl('admin_permissionsgroup_add_role_scope',
                        array('id' => $permissionsGroup->getId())))
                ->setMethod('PUT')
                ->add('composed_role_scope', 'composed_role_scope')
                ->add('submit', 'submit', array('label' => 'Add permission'))
                ->getForm()
                ;
    }
private function createAddRoleScopeForm(PermissionsGroup $permissionsGroup)
    {
        return $this->createFormBuilder()
                ->setAction($this->generateUrl('admin_permissionsgroup_add_role_scope',
                        array('id' => $permissionsGroup->getId())))
                ->setMethod('PUT')
                ->add('composed_role_scope', 'composed_role_scope')
                ->add('submit', 'submit', array('label' => 'Add permission'))
                ->getForm()
                ;
    }
private function createAddRoleScopeForm ( PermissionsGroup $ permissionsGroup ) { return $ this -> createFormBuilder ( ) -> setAction ( $ this -> generateUrl ( 'admin_permissionsgroup_add_role_scope' , array ( 'id' => $ permissionsGroup -> getId ( ) ) ) ) -> setMethod ( 'PUT' ) -> add ( 'composed_role_scope' , 'composed_role_scope' ) -> add ( 'submit' , 'submit' , array ( 'label' => 'Add permission' ) ) -> getForm ( ) ; }
creates a form to add a role scope to permissionsgroup

@param PermissionsGroup $permissionsGroup
@return \Symfony\Component\Form\Form The form
creates a form to add a role scope to permissionsgroup