src/Control/InitialisationMiddleware.php
protected function configureProxyDomainExclusions()
    {
        $noProxy = $this->config()->get('egress_proxy_exclude_domains');
        if (empty($noProxy)) {
            return;
        }

        if (!is_array($noProxy)) {
            $noProxy = [$noProxy];
        }

        // Merge with exsiting if needed.
        if (Environment::getEnv('NO_PROXY')) {
            $noProxy = array_merge(explode(',', Environment::getEnv('NO_PROXY')), $noProxy);
        }

        /*
         * Set the environment varial for NO_PROXY the same way the
         * proxy variables are set above
         */
        putenv('NO_PROXY=' . implode(',', array_unique($noProxy)));
    }
protected function configureProxyDomainExclusions()
    {
        $noProxy = $this->config()->get('egress_proxy_exclude_domains');
        if (empty($noProxy)) {
            return;
        }

        if (!is_array($noProxy)) {
            $noProxy = [$noProxy];
        }

        // Merge with exsiting if needed.
        if (Environment::getEnv('NO_PROXY')) {
            $noProxy = array_merge(explode(',', Environment::getEnv('NO_PROXY')), $noProxy);
        }

        /*
         * Set the environment varial for NO_PROXY the same way the
         * proxy variables are set above
         */
        putenv('NO_PROXY=' . implode(',', array_unique($noProxy)));
    }
protected function configureProxyDomainExclusions ( ) { $ noProxy = $ this -> config ( ) -> get ( 'egress_proxy_exclude_domains' ) ; if ( empty ( $ noProxy ) ) { return ; } if ( ! is_array ( $ noProxy ) ) { $ noProxy = [ $ noProxy ] ; } // Merge with exsiting if needed. if ( Environment :: getEnv ( 'NO_PROXY' ) ) { $ noProxy = array_merge ( explode ( ',' , Environment :: getEnv ( 'NO_PROXY' ) ) , $ noProxy ) ; } /*
         * Set the environment varial for NO_PROXY the same way the
         * proxy variables are set above
         */ putenv ( 'NO_PROXY=' . implode ( ',' , array_unique ( $ noProxy ) ) ) ; }
Configure any domains that should be excluded from egress proxy rules and provide them to the environment
Configure any domains that should be excluded from egress proxy rules and provide them to the environment