1.2.1190. Symfony usage

This analysis reports usage of the Symfony framework.

<?php

// src/AppBundle/Controller/LuckyController.php
namespace AppBundle\Controller;

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

class LuckyController
{
    /**
     * @Route("/lucky/number")
     */
    public function numberAction()
    {
        $number = mt_rand(0, 100);

        return new Response(
            '<html><body>Lucky number: '.$number.'</body></html>'
        );
    }
}

?>

See also Symfony.

1.2.1190.1. Connex PHP features

1.2.1190.1.1. Specs

Short name

Vendors/Symfony

Rulesets

All, Appinfo, CE, Changed Behavior

Exakat since

0.11.8

PHP Version

All

Severity

Minor

Time To Fix

Slow (1 hour)

Precision

Very high

Available in

Entreprise Edition, Community Edition, Exakat Cloud