src/Trait/Context.php
function path($name, $null_on_failure = false) {
		if ( ! isset($this->registeredpaths[$name])) {
			if ($null_on_failure) {
				return null;
			}
			else { // panic
				throw new Panic("There is no path registered for $name.");
			}
		}
		else { //
			return $this->registeredpaths[$name];
		}
	}
function path($name, $null_on_failure = false) {
		if ( ! isset($this->registeredpaths[$name])) {
			if ($null_on_failure) {
				return null;
			}
			else { // panic
				throw new Panic("There is no path registered for $name.");
			}
		}
		else { //
			return $this->registeredpaths[$name];
		}
	}
function path ( $ name , $ null_on_failure = false ) { if ( ! isset ( $ this -> registeredpaths [ $ name ] ) ) { if ( $ null_on_failure ) { return null ; } else { // panic throw new Panic ( "There is no path registered for $name." ) ; } } else { // return $ this -> registeredpaths [ $ name ] ; } }
Retrieves the specified path. If the path is not registered the method
will Panic, unless the second parameter is set, in which case it will
just return null.

@return string|null
Retrieves the specified path . If the path is not registered the method will Panic unless the second parameter is set in which case it will just return null .