src/PluggableConfigurator.php
protected function getDefaultParameters(): array
	{
		$trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
		$last = end($trace);
		$debugMode = static::detectDebugMode();

		return [
			'appDir' => isset($trace[2]['file']) ? dirname($trace[2]['file']) : null,
			'wwwDir' => isset($last['file']) ? dirname($last['file']) : null,
			'debugMode' => $debugMode,
			'productionMode' => !$debugMode,
			'consoleMode' => PHP_SAPI === 'cli',
		];
	}
protected function getDefaultParameters(): array
	{
		$trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
		$last = end($trace);
		$debugMode = static::detectDebugMode();

		return [
			'appDir' => isset($trace[2]['file']) ? dirname($trace[2]['file']) : null,
			'wwwDir' => isset($last['file']) ? dirname($last['file']) : null,
			'debugMode' => $debugMode,
			'productionMode' => !$debugMode,
			'consoleMode' => PHP_SAPI === 'cli',
		];
	}
protected function getDefaultParameters ( ) : array { $ trace = debug_backtrace ( DEBUG_BACKTRACE_IGNORE_ARGS ) ; $ last = end ( $ trace ) ; $ debugMode = static :: detectDebugMode ( ) ; return [ 'appDir' => isset ( $ trace [ 2 ] [ 'file' ] ) ? dirname ( $ trace [ 2 ] [ 'file' ] ) : null , 'wwwDir' => isset ( $ last [ 'file' ] ) ? dirname ( $ last [ 'file' ] ) : null , 'debugMode' => $ debugMode , 'productionMode' => ! $ debugMode , 'consoleMode' => PHP_SAPI === 'cli' , ] ; }
Collect default parameters

@return mixed[]
Collect default parameters