Commit 7bf7e00a authored by Chris Coley's avatar Chris Coley
Browse files

Fixing some typos

parent 0cca30a6
......@@ -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
$this->publishes([$config => config_path('trustedproxies.php')]);
if ($this->app instanceof Application && $this->app->runningInConsole()) {
$this->publishes([$config => config_path('trustedproxies.php')]);
}
// Merge the config
$this->mergeConfigFrom($config, 'trustedproxies');
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment