RSSAmplifier

fdiv.net - the floating-point divide · Apr 13, 2026

Figuring out autowired Dependency Injection of custom services with OOP hooks

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

Figuring out autowired Dependency Injection of custom services with OOP hooks I was switching over from using procedural hooks to object-oriented programming ( OOP ) hooks today. I ran into an error that was confusing to me because I had already defined services: Cannot autowire service “Drupal\nokoto_social\Hook\ActorHooks”: argument “$activityManager” of method “__construct()” references class…

Read on fdiv.net

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.