fix: env vars handled via conf file, add: functional tests
This commit is contained in:
parent
3d08b14f11
commit
21c4330f16
39 changed files with 416 additions and 172 deletions
|
@ -12,15 +12,15 @@ class ThirdPartyServices extends Controller
|
|||
private $third_party_integrations_nextcloud;
|
||||
private $third_party_integrations_open_project;
|
||||
|
||||
public function __construct()
|
||||
public function __construct($third_party_integrations_nextcloud, $third_party_integrations_open_project, $email_send_allow)
|
||||
{
|
||||
$this->third_party_integrations_nextcloud = env('THIRD_PARTY_INTEGRATIONS_NEXTCLOUD', false);
|
||||
$this->third_party_integrations_open_project = env('THIRD_PARTY_INTEGRATIONS_OPEN_PROJECT', false);
|
||||
$this->email_send_allow = env('EMAIL_SEND_ALLOW', false);
|
||||
$this->third_party_integrations_nextcloud = $third_party_integrations_nextcloud || config('app.third_party_integrations_nextcloud', false);
|
||||
$this->third_party_integrations_open_project = $third_party_integrations_open_project || config('app.third_party_integrations_open_project', false);
|
||||
$this->email_send_allow = $email_send_allow || config('email.email_send_allow', false);
|
||||
$this->nextcloud_service = new \App\Http\Controllers\ThirdPartyServices\NextcloudService();
|
||||
$this->open_project_service = new \App\Http\Controllers\ThirdPartyServices\OpenProjectService();
|
||||
$this->email_service = new \App\Http\Controllers\ThirdPartyServices\EmailService();
|
||||
$this->calculate_agent_cost = env('GITEA_CALCULATE_AGENT_COST', false);
|
||||
$this->calculate_agent_cost = config('app.gitea_calculate_agent_cost', false);
|
||||
}
|
||||
|
||||
function handle_third_party_services(string $file_name, string $file_path, array $issues, array $company_agents, string $from_date, string $to_date)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue