public function __construct(Request $request, Response $response, Renderer $renderer, PicRepositoryInterface $repository, FileStorageInterface $fileStorage) { parent::__construct($request, $response, $renderer); $this->repository = $repository; $this->fileStorage = $fileStorage; }
public function __construct(Request $request, Response $response, Renderer $renderer, PicRepositoryInterface $repository) { parent::__construct($request, $response, $renderer); $this->repository = $repository; }
public function __construct(Request $request, Response $response, Renderer $renderer, PicRepositoryInterface $picRepository, CommentRepositoryInterface $commRepository) { parent::__construct($request, $response, $renderer); $this->picRepository = $picRepository; $this->commRepository = $commRepository; }