forked from mossodev/FOSRestBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minor FriendsOfSymfony#2076 use deprecation-free TwigBundle config in…
… tests (xabbuh) This PR was merged into the 2.x branch. Discussion ---------- use deprecation-free TwigBundle config in tests Commits ------- 7dc0f6a use deprecation-free TwigBundle config in tests
- Loading branch information
Showing
13 changed files
with
111 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,5 @@ web_profiler: | |
toolbar: false | ||
|
||
twig: | ||
exception_controller: ~ | ||
strict_variables: '%kernel.debug%' |
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
17 changes: 17 additions & 0 deletions
17
Tests/Functional/app/RequestBodyParamConverterFrameworkBundle/bundles.php
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the FOSRestBundle package. | ||
* | ||
* (c) FriendsOfSymfony <http://friendsofsymfony.github.com/> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
return [ | ||
new \Symfony\Bundle\FrameworkBundle\FrameworkBundle(), | ||
new \FOS\RestBundle\FOSRestBundle(), | ||
new \FOS\RestBundle\Tests\Functional\Bundle\TestBundle\TestBundle(), | ||
new \Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(), | ||
]; |
23 changes: 23 additions & 0 deletions
23
Tests/Functional/app/RequestBodyParamConverterFrameworkBundle/config.yml
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
imports: | ||
- { resource: ../config/default.yml } | ||
- { resource: ../config/sensio_framework_extra.yml } | ||
|
||
framework: | ||
serializer: true | ||
router: | ||
resource: "%kernel.project_dir%/RequestBodyParamConverterFrameworkBundle/routing.yml" | ||
strict_requirements: true | ||
|
||
fos_rest: | ||
body_converter: | ||
enabled: true | ||
|
||
sensio_framework_extra: | ||
request: | ||
converters: true | ||
|
||
services: | ||
get_set_method_normalizer: | ||
class: Symfony\Component\Serializer\Normalizer\GetSetMethodNormalizer | ||
tags: | ||
- { name: serializer.normalizer } |
6 changes: 6 additions & 0 deletions
6
Tests/Functional/app/RequestBodyParamConverterFrameworkBundle/routing.yml
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
routing: | ||
resource: "../config/routing.yml" | ||
|
||
_errors: | ||
resource: "@FrameworkBundle/Resources/config/routing/errors.xml" | ||
prefix: /_error |
18 changes: 18 additions & 0 deletions
18
Tests/Functional/app/RequestBodyParamConverterTwigBundle/bundles.php
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the FOSRestBundle package. | ||
* | ||
* (c) FriendsOfSymfony <http://friendsofsymfony.github.com/> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
return [ | ||
new \Symfony\Bundle\FrameworkBundle\FrameworkBundle(), | ||
new \Symfony\Bundle\TwigBundle\TwigBundle(), | ||
new \FOS\RestBundle\FOSRestBundle(), | ||
new \FOS\RestBundle\Tests\Functional\Bundle\TestBundle\TestBundle(), | ||
new \Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(), | ||
]; |
26 changes: 26 additions & 0 deletions
26
Tests/Functional/app/RequestBodyParamConverterTwigBundle/config.yml
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
imports: | ||
- { resource: ../config/default.yml } | ||
- { resource: ../config/sensio_framework_extra.yml } | ||
|
||
framework: | ||
serializer: true | ||
router: | ||
resource: "%kernel.project_dir%/RequestBodyParamConverterTwigBundle/routing.yml" | ||
strict_requirements: true | ||
|
||
fos_rest: | ||
body_converter: | ||
enabled: true | ||
|
||
sensio_framework_extra: | ||
request: | ||
converters: true | ||
|
||
twig: | ||
strict_variables: '%kernel.debug%' | ||
|
||
services: | ||
get_set_method_normalizer: | ||
class: Symfony\Component\Serializer\Normalizer\GetSetMethodNormalizer | ||
tags: | ||
- { name: serializer.normalizer } |
File renamed without changes.
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,4 +11,5 @@ fos_rest: | |
view_response_listener: 'force' | ||
|
||
twig: | ||
exception_controller: ~ | ||
strict_variables: '%kernel.debug%' |
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 |
---|---|---|
|
@@ -34,4 +34,5 @@ fos_rest: | |
- query | ||
|
||
twig: | ||
exception_controller: ~ | ||
strict_variables: '%kernel.debug%' |
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