@@ 69-99 (lines=31) @@ | ||
66 | private $eventDispatcher; |
|
67 | private $changeHelper; |
|
68 | ||
69 | public function __construct( |
|
70 | BoardMapper $boardMapper, |
|
71 | StackMapper $stackMapper, |
|
72 | IL10N $l10n, |
|
73 | LabelMapper $labelMapper, |
|
74 | AclMapper $aclMapper, |
|
75 | PermissionService $permissionService, |
|
76 | NotificationHelper $notificationHelper, |
|
77 | AssignedUsersMapper $assignedUsersMapper, |
|
78 | IUserManager $userManager, |
|
79 | IGroupManager $groupManager, |
|
80 | ActivityManager $activityManager, |
|
81 | EventDispatcherInterface $eventDispatcher, |
|
82 | ChangeHelper $changeHelper, |
|
83 | $userId |
|
84 | ) { |
|
85 | $this->boardMapper = $boardMapper; |
|
86 | $this->stackMapper = $stackMapper; |
|
87 | $this->labelMapper = $labelMapper; |
|
88 | $this->aclMapper = $aclMapper; |
|
89 | $this->l10n = $l10n; |
|
90 | $this->permissionService = $permissionService; |
|
91 | $this->notificationHelper = $notificationHelper; |
|
92 | $this->assignedUsersMapper = $assignedUsersMapper; |
|
93 | $this->userManager = $userManager; |
|
94 | $this->groupManager = $groupManager; |
|
95 | $this->activityManager = $activityManager; |
|
96 | $this->eventDispatcher = $eventDispatcher; |
|
97 | $this->changeHelper = $changeHelper; |
|
98 | $this->userId = $userId; |
|
99 | } |
|
100 | ||
101 | /** |
|
102 | * @return array |
@@ 68-100 (lines=33) @@ | ||
65 | private $eventDispatcher; |
|
66 | private $userManager; |
|
67 | ||
68 | public function __construct( |
|
69 | CardMapper $cardMapper, |
|
70 | StackMapper $stackMapper, |
|
71 | BoardMapper $boardMapper, |
|
72 | LabelMapper $labelMapper, |
|
73 | PermissionService $permissionService, |
|
74 | BoardService $boardService, |
|
75 | NotificationHelper $notificationHelper, |
|
76 | AssignedUsersMapper $assignedUsersMapper, |
|
77 | AttachmentService $attachmentService, |
|
78 | ActivityManager $activityManager, |
|
79 | ICommentsManager $commentsManager, |
|
80 | IUserManager $userManager, |
|
81 | ChangeHelper $changeHelper, |
|
82 | EventDispatcherInterface $eventDispatcher, |
|
83 | $userId |
|
84 | ) { |
|
85 | $this->cardMapper = $cardMapper; |
|
86 | $this->stackMapper = $stackMapper; |
|
87 | $this->boardMapper = $boardMapper; |
|
88 | $this->labelMapper = $labelMapper; |
|
89 | $this->permissionService = $permissionService; |
|
90 | $this->boardService = $boardService; |
|
91 | $this->notificationHelper = $notificationHelper; |
|
92 | $this->assignedUsersMapper = $assignedUsersMapper; |
|
93 | $this->attachmentService = $attachmentService; |
|
94 | $this->activityManager = $activityManager; |
|
95 | $this->commentsManager = $commentsManager; |
|
96 | $this->userManager = $userManager; |
|
97 | $this->changeHelper = $changeHelper; |
|
98 | $this->eventDispatcher = $eventDispatcher; |
|
99 | $this->currentUser = $userId; |
|
100 | } |
|
101 | ||
102 | public function enrich($card) { |
|
103 | $cardId = $card->getId(); |