Files
archived-framework-bundle/Tests/Kernel/SimpleKernel.php
2024-06-18 10:16:32 -04:00

26 lines
654 B
PHP

<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Bundle\FrameworkBundle\Tests\Kernel;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Attribute\Route;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
final class SimpleKernel extends MinimalKernel
{
#[Route('/')]
public function __invoke(UrlGeneratorInterface $urlGenerator): Response
{
return new Response('Hello World!');
}
}