Skip to content

Instantly share code, notes, and snippets.

View Nugjii's full-sized avatar

Nurbol Nugjii

View GitHub Profile
@Nugjii
Nugjii / DemoController.php
Last active January 30, 2020 09:03 — forked from atillay/DemoController.php
Symfony 4 Pagination Service
<?php
namespace App\Controller;
use App\Entity\Demo;
use App\Service\PaginationService;
use Symfony\Component\HttpFoundation\Request;
class DemoController extends AdminController
{
@Nugjii
Nugjii / NewPasswordType.php
Created March 6, 2020 04:04 — forked from florentdestremau/NewPasswordType.php
A simple User authentication setup to copy & paste into your Symfony 3.4 install
<?php
namespace AppBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\PasswordType;
use Symfony\Component\Form\Extension\Core\Type\RepeatedType;
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
use Symfony\Component\Form\FormBuilderInterface;