I have following lines of code in my controller.
<?php
namespace App\Controller;
use App\Repository\TaskListRepository;
use FOS\RestBundle\Controller\AbstractFOSRestController;
class ListController extends AbstractFOSRestController
{
/**
* @var TaskListRepository
*/
private $taskListRepository;
public function __construct(TaskListRepository $taskListRepository)
{
$this->taskListRepository = $taskListRepository;
}
/**
* @Route("/lists", name="lists")
*/
public function getListsAction()
{
return $this->taskListRepository->findAll();
}
}
When I try to debug route, I am getting following error:
[info] User Deprecated: Using the WebserverBundle is deprecated since Symfony 4.4. The new Symfony local server has more features, you can use it instead. 2019-12-16T04:37:53+01:00 [info] User Deprecated: Loading the file "../../src/Controller/" from the global resource directory "D:\xampp\htdocs\symfony_rest\src" is depre cated since Symfony 4.4 and will be removed in 5.0.
How can I fix this issue?