sonata-project / SonataUserBundle

Symfony SonataUserBundle
https://docs.sonata-project.org/projects/SonataUserBundle
MIT License
342 stars 487 forks source link

Profile / authentication / change password forms in admin layout #880

Closed edrush closed 4 years ago

edrush commented 7 years ago

Environment

Sonata packages

$ composer show sonata-project/*
sonata-project/admin-bundle              3.17.0                                The missing Symfony Admin Generator
sonata-project/block-bundle              3.3.2                                 Symfony SonataBlockBundle
sonata-project/cache                     1.0.7                                 Cache library
sonata-project/core-bundle               3.4.0                                 Symfony SonataCoreBundle
sonata-project/datagrid-bundle           2.2.1                                 Symfony SonataDatagridBundle
sonata-project/doctrine-extensions       1.0.2                                 Doctrine2 behavioral extensions
sonata-project/doctrine-orm-admin-bundle 3.1.4                                 Symfony Sonata / Integrate Doctrine ORM into the SonataAdminBundle
sonata-project/easy-extends-bundle       2.2.0                                 Symfony SonataEasyExtendsBundle
sonata-project/exporter                  1.7.1                                 Lightweight Exporter library
sonata-project/google-authenticator      1.1.0                                 Library to integrate Google Authenticator into a PHP project
sonata-project/intl-bundle               2.3.0                                 Symfony SonataIntlBundle
sonata-project/media-bundle              3.5.1                                 Symfony SonataMediaBundle
sonata-project/notification-bundle       3.1.0                                 Symfony SonataNotificationBundle
sonata-project/user-bundle               dev-add_support_for_fos_user2 99be909 Symfony SonataUserBundle

Symfony packages

$ composer show symfony/*
symfony/monolog-bundle     v3.1.0 Symfony MonologBundle
symfony/phpunit-bridge     v3.2.8 Symfony PHPUnit Bridge
symfony/polyfill-apcu      v1.3.0 Symfony polyfill backporting apcu_* functions to lower PHP versions
symfony/polyfill-intl-icu  v1.3.0 Symfony polyfill for intl's ICU-related data and classes
symfony/polyfill-mbstring  v1.3.0 Symfony polyfill for the Mbstring extension
symfony/polyfill-php56     v1.3.0 Symfony polyfill backporting some PHP 5.6+ features to lower PHP versions
symfony/polyfill-php70     v1.3.0 Symfony polyfill backporting some PHP 7.0+ features to lower PHP versions
symfony/polyfill-util      v1.3.0 Symfony utilities for portability of PHP codes
symfony/security-acl       v3.0.0 Symfony Security Component - ACL (Access Control List)
symfony/swiftmailer-bundle v2.5.4 Symfony SwiftmailerBundle
symfony/symfony            v3.2.8 The Symfony PHP framework

PHP version

$ php -v
PHP 7.1.5-1+deb.sury.org~xenial+1 (cli) (built: May 11 2017 14:07:52) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
    with Zend OPcache v7.1.5-1+deb.sury.org~xenial+1, Copyright (c) 1999-2017, by Zend Technologies

Subject

I've been searching for this in the issues, I hope I didn't miss it. In SonataUserBundle 2 and 3 there was a profile page with three forms (profile/authentication/change password) under the profile/edit-profile route. Since I am using SF3 and need SonataIntlBundle as well I was (I think so) forced to switch to the add_support_for_fos_user2 branch. There, the controllers for profile action got removed in favor of the FOSUserBundle actions, however there is still a ProfileFormType. I have the impression that the feature of having all three user forms in the admin layout does not exist anymore, right? Furthermore, if I want to use the FOS forms, how would I render them in my admin layout?

Steps to reproduce

Expected results

Find the profile/authentication/change password forms under the profile/edit-profile route.

Actual results

I now need three pages for the three actions, pages are shown without layout.

core23 commented 7 years ago

The add_support_for_fos_user2 branch is outdated, please try the current master branch. This has the full symfony 3 / FOS 2 support

edrush commented 7 years ago

Hi, thank you, I did, but it then conflicted with SonataIntlBundle. The described subject was the same.

OskarStark commented 7 years ago

You mean this one? https://github.com/sonata-project/SonataUserBundle/issues/879

edrush commented 7 years ago

Exactly, I think this should be regarded as well. But for my case, the profile actions seem to get removed forever in favor of FOSUserBundle (https://github.com/sonata-project/SonataUserBundle/commit/b6884bc1fcbf7b76e179b7f5337e425ba474fb9f#commitcomment-22087809).

stale[bot] commented 4 years ago

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.