-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Decouple AdminBundle from the Core #14918
Conversation
Review Checklist
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have another blocker on Pimcore 11: \Pimcore\Bundle\AdminBundle\System\Config
is used in the core to get the config based on LocationAwareConfigRepository
. If these can't be refactored then changes in this PR are not relevant.
Also need to consider:
- Bundles relying on
adminjson
calls in AdminController which usesAdminSerializer
. (they can't simply switch fromAdminController
toUserAwareController
). - BundleManagerEvents used in PimcoreBundleManager
- IndexActionSettingsEvent
- Tool::getLanguageFile using
AdminBundle\Tool::getLanguageFile
- Core tests relying on admin bundle
use Pimcore\Bundle\AdminBundle\Helper\GridHelperService; - Admin events triggered from the core e.g.
pimcore/models/Element/AbstractElement.php
Line 507 in 5344968
\Pimcore::getEventDispatcher()->dispatch($event, AdminEvents::ELEMENT_PERMISSION_IS_ALLOWED);
can't that config be moved to the core? |
@dpfaffenbauer yes, we are working on separating the configs belongs to the core and admin bundle so the correct config can be read from their respective config service. There will be a follow up to #14867 |
…r and add isolated serializer for Core
bundles/AdminBundle/EventListener/AdminAuthenticationDoubleCheckListener.php
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be done before merging this PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* [Pimcore 11] Decouple AdminBundle from the Core - follow up to #14918 * Fix Core Bundles & Security classes * require dev branch (temproray) of admin ui classic bundle * Make Core bundles implement PimcoreBundleAdminClassicInterface * Further decoupling * Fix tests * Further decoupling * Further decoupling * check disabling admin bundle * Fix stan issues * Move Admin Listeners to admin-classic.yaml * Add ignore again and void to method * Extend phpstand-baseline.neon and phpstan-parameters.neon * Revert unrelated changes * Refactor initializing system settings for tests * Adding void return type * Remove line from baseline.neon * Add interface * Extract AdminBundle tests from core. * extract testAddGridFeatureJoinsWithTwoFilters into AdminBundle. * Fix tests * Fix tests * Fix phpstan baseline - remove ignored errors * cleanup phpstan baseline * review changes * fix phpstan baseline * Fix docs related to bundle support interface & trait --------- Co-authored-by: mattamon <[email protected]> Co-authored-by: Martin Eiber <[email protected]>
* Decouple from the core - changes related to pimcore/pimcore#14918 & pimcore/pimcore#14971 * Adapt more controllers to use new abstract * fix typo * Further decoupling * Fix Stan * Use ElementService::getCustomViewById * review changes * review changes * Remove unrelated * Remove unused classes
* Decouple AdminBundle from the Core - related to #12531 * Re-add AdminController * Re-add services with deprecations * Use Pimcore JsonResponse * Fix typo * Move back EditmodeListener, Move deprecated methods to AdminController and add isolated serializer for Core * naming optimizations * TokenUsageResolver: Return correct user proxy from deprecated class * resgister new UserProvider service * fix tests * review changes * required injections * Review changes & move password hasher to the core * Replace deprecated usages of AdminController * Fix Stan * Revert Serializer DI * Fix bundle manager DI * Fix tests * Ecommerce controllers extends UserAwareController * Fix Stan * Fix Stan
Changes in this pull request
Related to #12531