Skip to content

Commit

Permalink
Use laravel logger
Browse files Browse the repository at this point in the history
  • Loading branch information
ptondereau committed Jan 24, 2017
1 parent cda27b2 commit f8321dc
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 9 deletions.
2 changes: 1 addition & 1 deletion config/ups.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
'access_key' => env('UPS_ACCESS_KEY', 'test'),
'user_id' => env('UPS_USER_ID', 'test'),
'password' => env('UPS_PASSWORD', 'test'),
'sandbox' => env('UPS_SANDBOX', true),
'sandbox' => env('UPS_SANDBOX', true), // Set it to false when your ready to use your app in production.
];
33 changes: 25 additions & 8 deletions src/UpsApiServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
use Ups\TimeInTransit;
use Ups\Tracking;
use Ups\Tradeability;
use Psr\Http\Message\ServerRequestInterface;

/**
* This is the Ups Api service provider class.
Expand Down Expand Up @@ -79,7 +80,9 @@ protected function registerAddressValidation()
$config['access_key'],
$config['user_id'],
$config['password'],
$config['sandbox']
$config['sandbox'],
null,
$app->make('log')
);
});
}
Expand All @@ -98,7 +101,9 @@ protected function registerQuantumView()
$config['access_key'],
$config['user_id'],
$config['password'],
$config['sandbox']
$config['sandbox'],
null,
$app->make('log')
);
});
}
Expand All @@ -117,7 +122,9 @@ protected function registerTracking()
$config['access_key'],
$config['user_id'],
$config['password'],
$config['sandbox']
$config['sandbox'],
null,
$app->make('log')
);
});
}
Expand All @@ -136,7 +143,9 @@ protected function registerRate()
$config['access_key'],
$config['user_id'],
$config['password'],
$config['sandbox']
$config['sandbox'],
null,
$app->make('log')
);
});
}
Expand All @@ -155,7 +164,9 @@ protected function registerTimeInTransit()
$config['access_key'],
$config['user_id'],
$config['password'],
$config['sandbox']
$config['sandbox'],
null,
$app->make('log')
);
});
}
Expand All @@ -174,7 +185,9 @@ protected function registerLocator()
$config['access_key'],
$config['user_id'],
$config['password'],
$config['sandbox']
$config['sandbox'],
null,
$app->make('log')
);
});
}
Expand All @@ -193,7 +206,9 @@ protected function registerTradeability()
$config['access_key'],
$config['user_id'],
$config['password'],
$config['sandbox']
$config['sandbox'],
null,
$app->make('log')
);
});
}
Expand All @@ -212,7 +227,9 @@ protected function registerShipping()
$config['access_key'],
$config['user_id'],
$config['password'],
$config['sandbox']
$config['sandbox'],
null,
$app->make('log')
);
});
}
Expand Down

0 comments on commit f8321dc

Please sign in to comment.