Skip to content
Snippets Groups Projects
Commit 7bf7e00a authored by Chris Coley's avatar Chris Coley
Browse files

Fixing some typos

parent 0cca30a6
Branches master
Tags v0.0.2
No related merge requests found
......@@ -19,7 +19,7 @@ class TrustedProxies
*
* @param \Illuminate\Contracts\Config\Repository $config
*/
public function __construction(Repository $config) {
public function __construct(Repository $config) {
$this->config = $config;
}
......@@ -47,7 +47,7 @@ class TrustedProxies
* @param array $clientIpAddresses Array of client IP addresses.
* @return array An array of IP addresses of the trusted proxies.
*/
protected function getTrustedProxies(array $clientIpAddress = []) {
protected function getTrustedProxies(array $clientIpAddresses = []) {
$trustedProxies = $this->config->get('trustedproxies.proxies');
// Trust all proxies
......
......@@ -2,6 +2,7 @@
namespace CodingAllNight\Proxy;
use Illuminate\Foundation\Application;
use Illuminate\Support\ServiceProvider;
class TrustedProxiesServiceProvider extends ServiceProvider
......@@ -15,7 +16,9 @@ class TrustedProxiesServiceProvider extends ServiceProvider
$config = realpath(__DIR__ . '/../config/trustedproxies.php');
// Publish the config to the application's config directory
if ($this->app instanceof Application && $this->app->runningInConsole()) {
$this->publishes([$config => config_path('trustedproxies.php')]);
}
// Merge the config
$this->mergeConfigFrom($config, 'trustedproxies');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment