Zend\Expressive\Application::__construct PHP Method

__construct() public method

Calls on the parent constructor, and then uses the provided arguments to set internal properties.
public __construct ( Zend\Expressive\Router\RouterInterface $router, Interop\Container\ContainerInterface $container = null, callable $finalHandler = null, Zend\Diactoros\Response\EmitterInterface $emitter = null )
$router Zend\Expressive\Router\RouterInterface
$container Interop\Container\ContainerInterface IoC container from which to pull services, if any.
$finalHandler callable Final handler to use when $out is not provided on invocation.
$emitter Zend\Diactoros\Response\EmitterInterface Emitter to use when `run()` is invoked.
    public function __construct(Router\RouterInterface $router, ContainerInterface $container = null, callable $finalHandler = null, EmitterInterface $emitter = null)
    {
        parent::__construct();
        $this->router = $router;
        $this->container = $container;
        $this->finalHandler = $finalHandler;
        $this->emitter = $emitter;
    }