public function __construct(Config $config, PluginHooksService $hooks, Request $request, Logger $logger, EntityTable $entities) { $this->config = $config; $this->hooks = $hooks; $this->request = $request; $this->logger = $logger; $this->entities = $entities; }