function autoresolve($symbol) {

		// is the symbol an alias?
		if (\array_key_exists($symbol, $this->state['aliases'])) {
			// then resolve the alias
			// you can only alias to know symbols so the following will succeed
			$this->autoresolve($this->state['aliases'][$symbol]);
			// and afterwards alias the symbol
			$this->class_alias($this->state['aliases'][$symbol], $symbol);
			return true;
		}

		// do we know of the symbol's path?
		if (\array_key_exists($symbol, $this->state['symbols'])) {
			$this->requirefile($this->state['symbols'][$symbol]);
			return true;
		}

		return false; // none of the above
	}
function autoresolve($symbol) {

		// is the symbol an alias?
		if (\array_key_exists($symbol, $this->state['aliases'])) {
			// then resolve the alias
			// you can only alias to know symbols so the following will succeed
			$this->autoresolve($this->state['aliases'][$symbol]);
			// and afterwards alias the symbol
			$this->class_alias($this->state['aliases'][$symbol], $symbol);
			return true;
		}

		// do we know of the symbol's path?
		if (\array_key_exists($symbol, $this->state['symbols'])) {
			$this->requirefile($this->state['symbols'][$symbol]);
			return true;
		}

		return false; // none of the above
	}
function autoresolve ( $ symbol ) { // is the symbol an alias? if ( \ array_key_exists ( $ symbol , $ this -> state [ 'aliases' ] ) ) { // then resolve the alias // you can only alias to know symbols so the following will succeed $ this -> autoresolve ( $ this -> state [ 'aliases' ] [ $ symbol ] ) ; // and afterwards alias the symbol $ this -> class_alias ( $ this -> state [ 'aliases' ] [ $ symbol ] , $ symbol ) ; return true ; } // do we know of the symbol's path? if ( \ array_key_exists ( $ symbol , $ this -> state [ 'symbols' ] ) ) { $ this -> requirefile ( $ this -> state [ 'symbols' ] [ $ symbol ] ) ; return true ; } return false ; // none of the above }
Attempt to auto-resolve a symbol based on past state.
Attempt to auto - resolve a symbol based on past state .