Skip to content

Instantly share code, notes, and snippets.

@theodesp
Created December 7, 2019 14:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theodesp/7565b1ed6e477978409c02a398f69bcd to your computer and use it in GitHub Desktop.
Save theodesp/7565b1ed6e477978409c02a398f69bcd to your computer and use it in GitHub Desktop.
<?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\Translation\TranslatorInterface;
class DefaultController extends AbstractController
{
/**
* @Route({
"el": "/giasas",
* "en": "/hello"
* }, name="homepage")
*/
public function index(TranslatorInterface $translator, $locales, $defaultLocale)
{
return $this->render('index.html.twig', [
'name' => "Theo",
]);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment