Skip to content

Commit d9c369a

Browse files
committed
Fix a bunch of deprecations
1 parent 24c136d commit d9c369a

File tree

7 files changed

+18
-18
lines changed

7 files changed

+18
-18
lines changed

tests/Fixtures/AppBundle/Controller/CustomQueryController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
namespace Tests\Fixtures\AppBundle\Controller;
1414

1515
use Omines\DataTablesBundle\Controller\DataTablesTrait;
16-
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
16+
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
1717
use Symfony\Component\HttpFoundation\Request;
1818
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
1919
use Tests\Fixtures\AppBundle\DataTable\Type\CustomQueryTableType;
@@ -23,7 +23,7 @@
2323
*
2424
* @author Niels Keurentjes <[email protected]>
2525
*/
26-
class CustomQueryController extends Controller
26+
class CustomQueryController extends AbstractController
2727
{
2828
use DataTablesTrait;
2929

tests/Fixtures/AppBundle/Controller/GroupedController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
namespace Tests\Fixtures\AppBundle\Controller;
1414

1515
use Omines\DataTablesBundle\Controller\DataTablesTrait;
16-
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
16+
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
1717
use Symfony\Component\HttpFoundation\Request;
1818
use Tests\Fixtures\AppBundle\DataTable\Type\GroupedTableType;
1919

@@ -22,7 +22,7 @@
2222
*
2323
* @author Niels Keurentjes <[email protected]>
2424
*/
25-
class GroupedController extends Controller
25+
class GroupedController extends AbstractController
2626
{
2727
use DataTablesTrait;
2828

tests/Fixtures/AppBundle/Controller/HomeController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@
1515
use Omines\DataTablesBundle\Adapter\ArrayAdapter;
1616
use Omines\DataTablesBundle\Column\TextColumn;
1717
use Omines\DataTablesBundle\Controller\DataTablesTrait;
18-
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
18+
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
1919
use Symfony\Component\HttpFoundation\Request;
2020

2121
/**
2222
* HomeController.
2323
*
2424
* @author Niels Keurentjes <[email protected]>
2525
*/
26-
class HomeController extends Controller
26+
class HomeController extends AbstractController
2727
{
2828
use DataTablesTrait;
2929

tests/Fixtures/AppBundle/Controller/PlainController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
use Omines\DataTablesBundle\Column\TwigColumn;
2020
use Omines\DataTablesBundle\Controller\DataTablesTrait;
2121
use Omines\DataTablesBundle\DataTable;
22-
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
22+
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
2323
use Symfony\Component\HttpFoundation\Request;
2424
use Tests\Fixtures\AppBundle\Entity\Employee;
2525

@@ -28,7 +28,7 @@
2828
*
2929
* @author Niels Keurentjes <[email protected]>
3030
*/
31-
class PlainController extends Controller
31+
class PlainController extends AbstractController
3232
{
3333
use DataTablesTrait;
3434

tests/Fixtures/AppBundle/Controller/ServiceController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
namespace Tests\Fixtures\AppBundle\Controller;
1414

1515
use Omines\DataTablesBundle\Controller\DataTablesTrait;
16-
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
16+
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
1717
use Symfony\Component\HttpFoundation\Request;
1818
use Tests\Fixtures\AppBundle\DataTable\Type\ServicePersonTableType;
1919

@@ -22,7 +22,7 @@
2222
*
2323
* @author Niels Keurentjes <[email protected]>
2424
*/
25-
class ServiceController extends Controller
25+
class ServiceController extends AbstractController
2626
{
2727
use DataTablesTrait;
2828

tests/Fixtures/AppBundle/Controller/TypeController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
use Omines\DataTablesBundle\Controller\DataTablesTrait;
1616
use Omines\DataTablesBundle\DataTable;
17-
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
17+
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
1818
use Symfony\Component\HttpFoundation\Request;
1919
use Tests\Fixtures\AppBundle\DataTable\Type\RegularPersonTableType;
2020

@@ -23,7 +23,7 @@
2323
*
2424
* @author Niels Keurentjes <[email protected]>
2525
*/
26-
class TypeController extends Controller
26+
class TypeController extends AbstractController
2727
{
2828
use DataTablesTrait;
2929

tests/Fixtures/routing.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
home:
22
path: /
3-
defaults: { _controller: "AppBundle:Home:show" }
3+
controller: Tests\Fixtures\AppBundle\Controller\HomeController::showAction
44

55
plain:
66
path: /plain
7-
defaults: { _controller: "AppBundle:Plain:table" }
7+
controller: Tests\Fixtures\AppBundle\Controller\PlainController::tableAction
88

99
type:
1010
path: /type
11-
defaults: { _controller: "AppBundle:Type:table" }
11+
controller: Tests\Fixtures\AppBundle\Controller\TypeController::tableAction
1212

1313
service:
1414
path: /service
15-
defaults: { _controller: "AppBundle:Service:table" }
15+
controller: Tests\Fixtures\AppBundle\Controller\ServiceController::tableAction
1616

1717
custom:
1818
path: /custom
19-
defaults: { _controller: "AppBundle:CustomQuery:table" }
19+
controller: Tests\Fixtures\AppBundle\Controller\CustomQueryController::tableAction
2020

2121
grouped:
2222
path: /grouped
23-
defaults: { _controller: "AppBundle:Grouped:table" }
23+
controller: Tests\Fixtures\AppBundle\Controller\GroupedController::tableAction
2424

2525
employee.edit:
2626
path: /employee/{id}

0 commit comments

Comments
 (0)