1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 23:22:52 +01:00
invoiceninja/app/Http/Requests/TicketInboundRequest.php

29 lines
620 B
PHP
Raw Normal View History

2019-01-30 12:00:26 +01:00
<?php
namespace App\Http\Requests;
use App\Ninja\Repositories\TicketRepository;
use App\Ninja\Tickets\Inbound\InboundTicketFactory;
use App\Ninja\Tickets\Inbound\InboundTicketService;
use Illuminate\Support\Facades\Log;
class TicketInboundRequest extends Request
{
public function entity()
{
$inboundTicketService = new InboundTicketService(new InboundTicketFactory(request()->getContent()), new TicketRepository());
return $inboundTicketService->process();
}
public function rules()
{
return [];
}
public function authorize()
{
return true;
}
}