static public function makeApp($envPath = null, array $config = [], $kernel = null)
    {
        $envPath = is_null($envPath) ? static::getRuntimePath() : $envPath;
        $kernel  = is_null($kernel)  ? static::defaultKernel()  : $kernel;
        $config  = empty($config)    ? static::defaultConfig()  : $config;

        return new static($envPath, $kernel, $config);
    }
static public function makeApp($envPath = null, array $config = [], $kernel = null)
    {
        $envPath = is_null($envPath) ? static::getRuntimePath() : $envPath;
        $kernel  = is_null($kernel)  ? static::defaultKernel()  : $kernel;
        $config  = empty($config)    ? static::defaultConfig()  : $config;

        return new static($envPath, $kernel, $config);
    }
static public function makeApp ( $ envPath = null , array $ config = [ ] , $ kernel = null ) { $ envPath = is_null ( $ envPath ) ? static :: getRuntimePath ( ) : $ envPath ; $ kernel = is_null ( $ kernel ) ? static :: defaultKernel ( ) : $ kernel ; $ config = empty ( $ config ) ? static :: defaultConfig ( ) : $ config ; return new static ( $ envPath , $ kernel , $ config ) ; }
Static factor constructor.

@param  string $kernel
@param  string $envPath
@param  array  $segments

@return Kernel instance
Static factor constructor .