Many dependencies in service
问题 I have trouble with dependencies in my application in service layer. I have following class: <?php class UserService{ private $userRepository; private $vocationService; private $roleService; public function __construct(UserRepository $userRepository, VocationService $vocationService, RoleService $roleService) { $this->userRepository = $userRepository; $this->vocationService = $vocationService; $this->roleService = $roleService; } } There are only three dependencies which I'm injecting. Assume