concrete/src/Foundation/Runtime/Run/DefaultRunner.php
protected function initializeLegacyURLDefinitions()
    {
        if (!defined('BASE_URL')) {
            $resolver = $this->getUrlResolver();

            try {
                $url = rtrim((string) $resolver->resolve([]), '/');
                define('BASE_URL', $url);
            } catch (Exception $x) {
                return Response::create($x->getMessage(), 500);
            }
        }
    }
protected function initializeLegacyURLDefinitions()
    {
        if (!defined('BASE_URL')) {
            $resolver = $this->getUrlResolver();

            try {
                $url = rtrim((string) $resolver->resolve([]), '/');
                define('BASE_URL', $url);
            } catch (Exception $x) {
                return Response::create($x->getMessage(), 500);
            }
        }
    }
protected function initializeLegacyURLDefinitions ( ) { if ( ! defined ( 'BASE_URL' ) ) { $ resolver = $ this -> getUrlResolver ( ) ; try { $ url = rtrim ( ( string ) $ resolver -> resolve ( [ ] ) , '/' ) ; define ( 'BASE_URL' , $ url ) ; } catch ( Exception $ x ) { return Response :: create ( $ x -> getMessage ( ) , 500 ) ; } } }
Define the base url if not defined
This will define `BASE_URL` to whatever is resolved from the resolver.

@deprecated In a future major version this will be part of HTTP middleware

@return Response|void Returns a response if an error occurs
Define the base url if not defined This will define BASE_URL to whatever is resolved from the resolver .