Extend Roots\Acorn\ServiceProvider

I’ve been using a service provider like this:



namespace App\Providers;

use Roots\Acorn\ServiceProvider;

class WooCommerceServiceProvider extends ServiceProvider

But with an update the service has stopped working. I get this error:

“Class App\Providers\WooCommerceServiceProvider cannot extend final class Roots\Acorn\ ServiceProvider”

Have any changes been made to Acorn so that the Roots\Acorn\ServiceProvider class cannot be extended?

This is probably related: 🧑‍💻 Change `Roots\Acorn\ServiceProvider` to `final` · roots/acorn@f5394b0 · GitHub

1 Like

Probably :smile: