Crummy\Phlack\Bridge\Symfony\HttpKernel\MainframeKernel::handle PHP Method

handle() public method

public handle ( Request $request, $type = self::MASTER_REQUEST, $catch = true )
$request Symfony\Component\HttpFoundation\Request
    public function handle(Request $request, $type = self::MASTER_REQUEST, $catch = true)
    {
        $command = $this->converter->convert($request);
        $packet = $this->mainframe->execute($command);
        $content = $packet['output'];
        if ($command instanceof SlashCommand && $content instanceof Reply) {
            $content = $content->get('text');
        }
        return new Response($content);
    }
MainframeKernel