Created
December 7, 2019 14:51
-
-
Save theodesp/7565b1ed6e477978409c02a398f69bcd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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