src/AbstractKernel.php
public function serve()
    {
        foreach ($this->dispatchers as $dispatcher) {
            if ($dispatcher->canServe()) {
                ContainerScope::runScope($this->container, [$dispatcher, 'serve']);

                return;
            }
        }

        throw new BootException("Unable to locate active dispatcher.");
    }
public function serve()
    {
        foreach ($this->dispatchers as $dispatcher) {
            if ($dispatcher->canServe()) {
                ContainerScope::runScope($this->container, [$dispatcher, 'serve']);

                return;
            }
        }

        throw new BootException("Unable to locate active dispatcher.");
    }
public function serve ( ) { foreach ( $ this -> dispatchers as $ dispatcher ) { if ( $ dispatcher -> canServe ( ) ) { ContainerScope :: runScope ( $ this -> container , [ $ dispatcher , 'serve' ] ) ; return ; } } throw new BootException ( "Unable to locate active dispatcher." ) ; }
Start application and serve user requests using selected dispatcher or throw
an exception.

@throws BootException
@throws \Throwable
Start application and serve user requests using selected dispatcher or throw an exception .