src/Controller/HomeController.php line 20
<?phpnamespace App\Controller;use App\Repository\HubspotValueRepository;use App\Service\HubspotService;use App\Service\ToolsService;use App\Service\WrikeService;use Sensio\Bundle\FrameworkExtraBundle\Configuration\Security;use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;use Symfony\Component\HttpFoundation\Request;use Symfony\Component\HttpFoundation\Response;use Symfony\Component\Routing\Annotation\Route;class HomeController extends AbstractController{#[Route('/', name: 'app_home')]#[Security("is_granted('ROLE_ADMIN') or is_granted('ROLE_USER')")]public function index(): Response{return $this->redirectToRoute('app_transactions_index');}#[Route('/testHmzeh', name: 'test_hmzeh')]#[Security("is_granted('ROLE_ADMIN') or is_granted('ROLE_USER')")]public function test(HubspotService $hubspotService,Request $request, HubspotValueRepository $hubspotValueRepository, ToolsService $toolsService, WrikeService $wrikeService): Response{// dd($hubspotValueRepository->getListForTail());// $transactions = $hubspotService->getTransactions("8653513");// $transactionst = $toolsService->prepareTransactions($transactions);// foreach ($transactionst as $transactiont)// {// dd($transactiont);// }//dd($hubspotValueRepository->getList());// dd($toolsService->prepareTransactions($transactions));// $hubspotValues = $hubspotValueRepository->findAll();// dd($hubspotValues);// dd($hubspotService->getAllTransactions1());// dd($hubspotService->getAllTransactions());$projetWrike = $wrikeService->getFolderById("IEABPZDPI5BQWWSI");if($projetWrike){$customFields = $projetWrike["data"][0]["customFields"];dump($customFields);}die;return $this->render('home/index.html.twig', ['controller_name' => 'Accueil',]);}}