1.2.1182. 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.1182.1. Specs

Short name

Vendors/Symfony

Rulesets

All, Appinfo, CE

Exakat since

0.11.8

PHP Version

All

Severity

Minor

Time To Fix

Slow (1 hour)

Precision

Very high

Features

framework

Available in

Entreprise Edition, Community Edition, Exakat Cloud