| @@ 54-63 (lines=10) @@ | ||
| 51 | * @param IAppContainer $container |
|
| 52 | * @param MiscService $miscService |
|
| 53 | */ |
|
| 54 | public function __construct($userId, IAppContainer $container, MiscService $miscService) { |
|
| 55 | $this->userId = $userId; |
|
| 56 | $this->miscService = $miscService; |
|
| 57 | ||
| 58 | try { |
|
| 59 | $this->bookmarksClass = $container->query(Bookmarks::class); |
|
| 60 | } catch (QueryException $e) { |
|
| 61 | /** we do nothing */ |
|
| 62 | } |
|
| 63 | } |
|
| 64 | ||
| 65 | ||
| 66 | /** |
|
| @@ 62-73 (lines=12) @@ | ||
| 59 | * @param ConfigService $configService |
|
| 60 | * @param MiscService $miscService |
|
| 61 | */ |
|
| 62 | public function __construct( |
|
| 63 | IAppContainer $container, ConfigService $configService, MiscService $miscService |
|
| 64 | ) { |
|
| 65 | $this->configService = $configService; |
|
| 66 | $this->miscService = $miscService; |
|
| 67 | ||
| 68 | try { |
|
| 69 | $this->bookmarksClass = $container->query(Bookmarks::class); |
|
| 70 | } catch (QueryException $e) { |
|
| 71 | /** we do nothing */ |
|
| 72 | } |
|
| 73 | } |
|
| 74 | ||
| 75 | ||
| 76 | /** |
|