Skip to content

Commit

Permalink
Fix API when using in local
Browse files Browse the repository at this point in the history
  • Loading branch information
prinx committed Nov 5, 2020
1 parent b2897a8 commit 6b21f62
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/api/v1/ussd.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<?php

require_once __DIR__.'/../../../../../autoload.php';
$hostAutoload = __DIR__.'/../../../../../autoload.php';
$localAutolaod = __DIR__.'/../../../vendor/autoload.php';

require_once file_exists($hostAutoload) ? $hostAutoload : $localAutolaod;
use Rejoice\Simulator\Libs\Simulator;

$simulator = new Simulator;
Expand Down

0 comments on commit 6b21f62

Please sign in to comment.