-
Notifications
You must be signed in to change notification settings - Fork 701
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minor #1972 replace deprecated code usages, drop support for Symfony …
…< 3.4 (xabbuh) This PR was squashed before being merged into the 2.4-dev branch (closes #1972). Discussion ---------- replace deprecated code usages, drop support for Symfony < 3.4 Commits ------- f9c3bcd use PHPUnit 6.5 on PHP 7.1 d4e21d2 never rely on service auto-registration 7b206d6 compatibility with symfony/form 4.2+ cea8022 fix risky tests 5526e9c fix lowest supported JMSSerializerBundle release 8e009b7 replace Controller with AbstractController 2764e00 drop support for unmaintained Symfony versions
- Loading branch information
Showing
32 changed files
with
94 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,14 +12,14 @@ | |
namespace FOS\RestBundle\Tests\Fixtures\Controller; | ||
|
||
use FOS\RestBundle\Controller\Annotations\Prefix; | ||
use Symfony\Bundle\FrameworkBundle\Controller\Controller; | ||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; | ||
use Symfony\Component\HttpFoundation\Request; | ||
|
||
/** | ||
* @author Donald Tyler <[email protected]> | ||
* @Prefix("aprefix") | ||
*/ | ||
class AnnotatedPrefixedController extends Controller | ||
class AnnotatedPrefixedController extends AbstractController | ||
{ | ||
/** | ||
* [GET] /aprefix/something.{_format}. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,15 +12,15 @@ | |
namespace FOS\RestBundle\Tests\Functional\Bundle\TestBundle\Controller; | ||
|
||
use FOS\RestBundle\Controller\Annotations\View; | ||
use Symfony\Bundle\FrameworkBundle\Controller\Controller; | ||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; | ||
use Symfony\Component\Validator\Constraints\NotBlank; | ||
|
||
/** | ||
* Controller to test serialization of various errors and exceptions. | ||
* | ||
* @author Florian Voutzinos <[email protected]> | ||
*/ | ||
class SerializerErrorController extends Controller | ||
class SerializerErrorController extends AbstractController | ||
{ | ||
/** | ||
* @View | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,18 +11,18 @@ | |
|
||
namespace FOS\RestBundle\Tests\Functional\Bundle\TestBundle\Controller; | ||
|
||
use FOS\RestBundle\Controller\AbstractFOSRestController; | ||
use FOS\RestBundle\Controller\Annotations\Get; | ||
use FOS\RestBundle\Controller\Annotations\Version; | ||
use FOS\RestBundle\Controller\Annotations\View; | ||
use FOS\RestBundle\Controller\FOSRestController; | ||
use Symfony\Component\HttpFoundation\Request; | ||
|
||
/** | ||
* @author Ener-Getick <[email protected]> | ||
* | ||
* @Version({"1.2"}) | ||
*/ | ||
class Version2Controller extends FOSRestController | ||
class Version2Controller extends AbstractFOSRestController | ||
{ | ||
/** | ||
* @View("TestBundle:Version:version.html.twig") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,14 +11,14 @@ | |
|
||
namespace FOS\RestBundle\Tests\Functional\Bundle\TestBundle\Controller; | ||
|
||
use FOS\RestBundle\Controller\AbstractFOSRestController; | ||
use FOS\RestBundle\Controller\Annotations\View; | ||
use FOS\RestBundle\Controller\FOSRestController; | ||
use Symfony\Component\HttpFoundation\Request; | ||
|
||
/** | ||
* @author Ener-Getick <[email protected]> | ||
*/ | ||
class VersionController extends FOSRestController | ||
class VersionController extends AbstractFOSRestController | ||
{ | ||
/** | ||
* @View("TestBundle:Version:version.html.twig") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.