Thanks to visit codestin.com
Credit goes to github.com

Skip to content

App registration callbacks are not called as expected #463

@stefanfisk

Description

@stefanfisk

Version

5.0.3

What did you expect to happen?

I'd expect callbacks added via Application::configure()->registered() to be called after all providers have been registered.

What actually happens?

They are never called.

The issue is caused by this line not being present in this override. It looks like this functionality was just missed when the upgrade to Laravel v11 was made.

booting() and booted() work as intended.

Steps to reproduce

  1. Add ->registered(function () { Log::info('App registration is now done.'); }) to your Application::configure() call.
  2. Boot your app
  3. Find that the message App registration is now done. has not been logged.

System info

Ubuntu 24.04

Log output

Please confirm this isn't a support request.

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions