Demo entry 3543578

CodeigniterController

   

Submitted by pavlunya on Jan 12, 2016 at 14:02
Language: PHP. Code size: 738 Bytes.

<?php

namespace LegacyBundle\Controller;

use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;

class CodeigniterController extends Controller
{
    /**
     * @Route("/{route}", defaults={"route": ""}, requirements={"route": ".+"}, name="legacy_codeigniter_allmatch_route")
     *
     * @param Request $request
     * @return Response
     */
    public function allMatchAction(Request $request)
    {
        $kernel   = $this->get('legacy.kernel.codeigniter_kernel');
        $response = $kernel->handle($request);

        return $response;
    }
}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).