You cannot call a method from a static function with php injection $this->userService->getUser(); Call a static methode UserClass::getUser(); Call a non-static methode $user = new User; $user->getUser();