<?php// src/Controller/MainController.phpnamespace App\Controller;use Symfony\Component\HttpFoundation\Response;use Symfony\Component\Routing\Annotation\Route;use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;use Doctrine\ODM\MongoDB\DocumentManager;use App\Document\User;use Symfony\Component\PasswordHasher\Hasher\UserPasswordHasherInterface;use App\Controller\NotificationController;use App\Controller\WalletController;use App\Controller\CurrenciesController;use Symfony\Contracts\HttpClient\HttpClientInterface;use App\Document\Symbol;class MainController extends AbstractController{ #[Route('/pub/test' , name: 'home_page_test')] public function testest(DocumentManager $doctrine ):Response { $symbols = $doctrine->createQueryBuilder(Symbol::class) ->field('quoteCurrency')->equals('USDT') ->getQuery() ->execute(); $symbolsCount = $doctrine->createQueryBuilder(Symbol::class) ->field('quoteCurrency')->equals('USDT') ->getQuery() ->execute() ->count();echo $symbolsCount ; return new Response( '<html><body>Lucky number: 77</body></html>' ); } #[Route('/' , name: 'home_page')] public function number(DocumentManager $doctrine , UserPasswordHasherInterface $passwordHasher , HttpClientInterface $client ):Response { // $c = new CurrenciesController($client,$doctrine);// $a = $c->getcurrenciesfromexchange(); // $subject = "" ; $text = " " ; $html = "" ; // $email_test = (new NotificationController)->sendemail( $subject , $text , $html); // $tabligh = new User(); // $test = 113; // $tabligh->setUsername($test); // $tabligh->setEmail('test'); // $hashedPassword = $passwordHasher->hashPassword( // $tabligh, // $test // ); // $tabligh->setPassword($hashedPassword); // $tabligh->setRoles(["ROLE_ADMIN"]); // $doctrine->persist($tabligh); // $doctrine->flush(); return new Response( '<html><body>Lucky number: 77</body></html>' ); }}