Skip to content

Instantly share code, notes, and snippets.

View Arky9782's full-sized avatar

Artur Khachaturyan Arky9782

  • Tashkent, Uzbekistan
View GitHub Profile
<? /**
* @Route("/{page}", name="index", requirements={"page"="\d+"})
*/
public function index(PostManager $pm, Request $request, $page = 0)
{
$rateRepository = $this->getDoctrine()->getRepository(ExchangeRate::class);
$rates = $rateRepository->getRates();
$locale = $request->getLocale();