選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

30 行
865B

  1. <?php
  2. namespace Lc\SovBundle\Builder\Ticket;
  3. use Lc\SovBundle\Component\FormComponent;
  4. use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface;
  5. class TicketBuilder
  6. {
  7. protected FormComponent $formComponent;
  8. protected ParameterBagInterface $parameterBag;
  9. public function __construct(FormComponent $formComponent, ParameterBagInterface $parameterBag)
  10. {
  11. $this->formComponent = $formComponent;
  12. $this->parameterBag = $parameterBag;
  13. }
  14. // uploadImageTicketMessage
  15. public function uploadImageTicketMessage($formTicket): ?string
  16. {
  17. return $this->formComponent->uploadFile(
  18. $formTicket,
  19. 'image',
  20. $this->parameterBag->get('app.ticket_images_directory'),
  21. $this->parameterBag->get('app.ticket_images_subdirectory')
  22. );
  23. }
  24. }