1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-15 07:33:04 +01:00
invoiceninja/app/Ninja/Intents/WebApp/ListCreditIntent.php

20 lines
362 B
PHP
Raw Normal View History

2017-04-04 16:51:01 +02:00
<?php
namespace App\Ninja\Intents\WebApp;
use App\Ninja\Intents\BaseIntent;
class ListCreditIntent extends BaseIntent
{
public function process()
{
2017-04-05 17:04:44 +02:00
if ($client = $this->requestClient()) {
$url = $client->present()->url . '#credits';
} else {
$url = '/credits';
}
return redirect($url);
2017-04-04 16:51:01 +02:00
}
}