Use dependency injections in controller plugin