src/Framework/ServiceLocator/Factory/ApplicationFactory.php
protected function getHttpApplication(ServiceLocatorInterface $serviceLocator): HttpApplication
    {
        $chain = $serviceLocator->getService(MiddlewareChainInterface::class);
        $request = $serviceLocator->getService(RequestInterface::class);

        /**
         * @var MiddlewareChainInterface $chain
         * @var RequestInterface         $request
         */
        return new HttpApplication(
            $chain,
            $request,
            $serviceLocator,
            $extra['modules'] ?? []
        );
    }
protected function getHttpApplication(ServiceLocatorInterface $serviceLocator): HttpApplication
    {
        $chain = $serviceLocator->getService(MiddlewareChainInterface::class);
        $request = $serviceLocator->getService(RequestInterface::class);

        /**
         * @var MiddlewareChainInterface $chain
         * @var RequestInterface         $request
         */
        return new HttpApplication(
            $chain,
            $request,
            $serviceLocator,
            $extra['modules'] ?? []
        );
    }
protected function getHttpApplication ( ServiceLocatorInterface $ serviceLocator ) : HttpApplication { $ chain = $ serviceLocator -> getService ( MiddlewareChainInterface :: class ) ; $ request = $ serviceLocator -> getService ( RequestInterface :: class ) ; /**
         * @var MiddlewareChainInterface $chain
         * @var RequestInterface         $request
         */ return new HttpApplication ( $ chain , $ request , $ serviceLocator , $ extra [ 'modules' ] ?? [ ] ) ; }
Get HTTP application.

@param ServiceLocatorInterface $serviceLocator
@return HttpApplication
@throws ServiceLocatorException
Get HTTP application .