Skip to content

Restore AppController extension for BC compatibility#464

Merged
dereuromark merged 1 commit intomasterfrom
feature/extend-app-controller
Mar 18, 2026
Merged

Restore AppController extension for BC compatibility#464
dereuromark merged 1 commit intomasterfrom
feature/extend-app-controller

Conversation

@dereuromark
Copy link
Owner

@dereuromark dereuromark commented Mar 18, 2026

Summary

Provides a dual solution for controller inheritance:

  • Default (BC): QueueAppController extends App\Controller\AppController, inheriting app authentication, components, and configuration
  • Standalone opt-in: Set Queue.standalone to true for an isolated admin that skips the app's AppController setup

Usage

// config/app_local.php or config/app.php

// Default: inherits from app's AppController (BC)
// No configuration needed

// Standalone mode: isolated admin, doesn't depend on app
'Queue' => [
    'standalone' => true,
],

The layout configuration via Queue.adminLayout is preserved in both modes.

@codecov-commenter
Copy link

codecov-commenter commented Mar 18, 2026

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.30%. Comparing base (241f31d) to head (b57b90b).
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #464      +/-   ##
============================================
+ Coverage     77.29%   77.30%   +0.01%     
- Complexity      884      885       +1     
============================================
  Files            44       44              
  Lines          3061     3063       +2     
============================================
+ Hits           2366     2368       +2     
  Misses          695      695              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

By default, QueueAppController extends App\Controller\AppController
to inherit app authentication, components, and configuration (BC).

Set `Queue.standalone` to `true` for an isolated admin that doesn't
depend on the host app's AppController setup.
@dereuromark dereuromark force-pushed the feature/extend-app-controller branch from 05a1797 to b57b90b Compare March 18, 2026 16:28
@dereuromark dereuromark merged commit 54097a4 into master Mar 18, 2026
16 checks passed
@dereuromark dereuromark deleted the feature/extend-app-controller branch March 18, 2026 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants