2016-05-01 13:31:10 +02:00
|
|
|
<?php namespace App\Console\Commands;
|
2016-01-20 00:07:31 +01:00
|
|
|
|
|
|
|
use Illuminate\Console\Command;
|
|
|
|
use App\Services\BankAccountService;
|
|
|
|
|
|
|
|
class TestOFX extends Command
|
|
|
|
{
|
|
|
|
protected $name = 'ninja:test-ofx';
|
|
|
|
protected $description = 'Test OFX';
|
|
|
|
|
|
|
|
public function __construct(BankAccountService $bankAccountService)
|
|
|
|
{
|
|
|
|
parent::__construct();
|
|
|
|
|
|
|
|
$this->bankAccountService = $bankAccountService;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function fire()
|
|
|
|
{
|
|
|
|
$this->info(date('Y-m-d').' Running TestOFX...');
|
2016-01-26 21:22:33 +01:00
|
|
|
|
|
|
|
/*
|
2016-01-20 00:07:31 +01:00
|
|
|
$bankId = env('TEST_BANK_ID');
|
|
|
|
$username = env('TEST_BANK_USERNAME');
|
|
|
|
$password = env('TEST_BANK_PASSWORD');
|
|
|
|
|
|
|
|
$data = $this->bankAccountService->loadBankAccounts($bankId, $username, $password, false);
|
|
|
|
|
2016-01-26 21:22:33 +01:00
|
|
|
echo json_encode($data);
|
|
|
|
*/
|
2016-01-20 00:07:31 +01:00
|
|
|
}
|
|
|
|
}
|