src/Weave.php
public function start($environment = null, $configLocation = null)
	{
		$config = $this->loadConfig($environment, $configLocation);
		$this->loadErrorHandler($config, $environment);
		$instantiator = $this->loadContainer($config, $environment);

		$middleware = $instantiator(Middleware\Middleware::class);
		$response = $middleware->execute();

		$middleware->emit($response);
	}
public function start($environment = null, $configLocation = null)
	{
		$config = $this->loadConfig($environment, $configLocation);
		$this->loadErrorHandler($config, $environment);
		$instantiator = $this->loadContainer($config, $environment);

		$middleware = $instantiator(Middleware\Middleware::class);
		$response = $middleware->execute();

		$middleware->emit($response);
	}
public function start ( $ environment = null , $ configLocation = null ) { $ config = $ this -> loadConfig ( $ environment , $ configLocation ) ; $ this -> loadErrorHandler ( $ config , $ environment ) ; $ instantiator = $ this -> loadContainer ( $ config , $ environment ) ; $ middleware = $ instantiator ( Middleware \ Middleware :: class ) ; $ response = $ middleware -> execute ( ) ; $ middleware -> emit ( $ response ) ; }
The starting point for any Weave App.

Environment and config location details are passed on to the config adaptor
and environment is also passed to the error adaptor and the container adaptor.

@param string $environment    Optional indication of the runtime environment.
@param string $configLocation Optional location from which to load config.

@return null
The starting point for any Weave App .