File tree 9 files changed +5
-103
lines changed
9 files changed +5
-103
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11
11
12
12
<parameter key =" nelmio_api_doc.extractor.handler.fos_rest.class" >Nelmio\ApiDocBundle\Extractor\Handler\FosRestHandler</parameter >
13
13
<parameter key =" nelmio_api_doc.extractor.handler.jms_security.class" >Nelmio\ApiDocBundle\Extractor\Handler\JmsSecurityExtraHandler</parameter >
14
- <parameter key =" nelmio_api_doc.extractor.handler.sensio_framework_extra.class" >Nelmio\ApiDocBundle\Extractor\Handler\SensioFrameworkExtraHandler</parameter >
15
14
<parameter key =" nelmio_api_doc.extractor.handler.phpdoc.class" >Nelmio\ApiDocBundle\Extractor\Handler\PhpDocHandler</parameter >
16
15
17
16
<parameter key =" nelmio_api_doc.parser.collection_parser.class" >Nelmio\ApiDocBundle\Parser\CollectionParser</parameter >
53
52
<tag name =" nelmio_api_doc.extractor.handler" />
54
53
</service >
55
54
56
- <service id =" nelmio_api_doc.extractor.handler.sensio_framework_extra" class =" %nelmio_api_doc.extractor.handler.sensio_framework_extra.class%" public =" false" >
57
- <tag name =" nelmio_api_doc.extractor.handler" />
58
- </service >
59
-
60
55
<service id =" nelmio_api_doc.extractor.handler.phpdoc" class =" %nelmio_api_doc.extractor.handler.phpdoc.class%" public =" false" >
61
56
<argument type =" service" id =" nelmio_api_doc.doc_comment_extractor" />
62
57
<tag name =" nelmio_api_doc.extractor.handler" />
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ This bundle will get information from the following other annotations:
8
8
(when strict parameter is true), ``filters `` (when strict is false)
9
9
* ``@JMS\SecurityExtraBundle\Annotation\Secure `` - set ``authentication `` to true,
10
10
``authenticationRoles `` to the given roles
11
- * ``@Sensio\Bundle\FrameworkExtraBundle\Configuration\Cache `` - set ``cache ``
12
11
13
12
PHPDoc
14
13
------
Original file line number Diff line number Diff line change @@ -224,19 +224,6 @@ public function testGetWithAuthentication()
224
224
$ this ->assertCount (2 , $ annotation ->getAuthenticationRoles ());
225
225
}
226
226
227
- public function testGetWithCache ()
228
- {
229
- $ container = $ this ->getContainer ();
230
- $ extractor = $ container ->get ('nelmio_api_doc.extractor.api_doc_extractor ' );
231
- $ annotation = $ extractor ->get ('Nelmio\ApiDocBundle\Tests\Fixtures\Controller\TestController::zCachedAction ' , 'test_route_23 ' );
232
-
233
- $ this ->assertNotNull ($ annotation );
234
- $ this ->assertEquals (
235
- 60 ,
236
- $ annotation ->getCache ()
237
- );
238
- }
239
-
240
227
public function testGetWithDeprecated ()
241
228
{
242
229
$ container = $ this ->getContainer ();
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 15
15
use FOS \RestBundle \Controller \Annotations \RequestParam ;
16
16
use Nelmio \ApiDocBundle \Annotation \ApiDoc ;
17
17
use Nelmio \ApiDocBundle \Tests \Fixtures \DependencyTypePath ;
18
- use Nelmio \ApiDocBundle \Tests \Fixtures \RequestParamHelper ;
19
- use Nelmio \ApiDocBundle \Util \LegacyFormHelper ;
20
18
use Symfony \Component \HttpFoundation \Response ;
21
19
use Symfony \Component \Validator \Constraints as Assert ;
22
- use Sensio \Bundle \FrameworkExtraBundle \Configuration \Cache ;
23
- use Sensio \Bundle \FrameworkExtraBundle \Configuration \Security ;
24
20
25
21
class TestController
26
22
{
@@ -219,15 +215,13 @@ public function authenticatedAction()
219
215
220
216
/**
221
217
* @ApiDoc()
222
- * @Cache(maxage=60, public=1)
223
218
*/
224
219
public function zCachedAction ()
225
220
{
226
221
}
227
222
228
223
/**
229
224
* @ApiDoc()
230
- * @Security("has_role('ROLE_USER')")
231
225
*/
232
226
public function zSecuredAction ()
233
227
{
Original file line number Diff line number Diff line change 2605
2605
array (
2606
2606
'method ' => 'POST ' ,
2607
2607
'uri ' => '/zcached ' ,
2608
- 'cache ' => 60 ,
2609
2608
'https ' => false ,
2610
2609
'authentication ' => false ,
2611
2610
'authenticationRoles ' =>
2618
2617
'method ' => 'POST ' ,
2619
2618
'uri ' => '/zsecured ' ,
2620
2619
'https ' => false ,
2621
- 'authentication ' => true ,
2620
+ 'authentication ' => false ,
2622
2621
'authenticationRoles ' =>
2623
2622
array (
2624
2623
),
Original file line number Diff line number Diff line change 2448
2448
array (
2449
2449
'method ' => 'POST ' ,
2450
2450
'uri ' => '/zcached ' ,
2451
- 'cache ' => 60 ,
2452
2451
'https ' => false ,
2453
2452
'authentication ' => false ,
2454
2453
'authenticationRoles ' =>
2461
2460
'method ' => 'POST ' ,
2462
2461
'uri ' => '/zsecured ' ,
2463
2462
'https ' => false ,
2464
- 'authentication ' => true ,
2463
+ 'authentication ' => false ,
2465
2464
'authenticationRoles ' =>
2466
2465
array (
2467
2466
),
Original file line number Diff line number Diff line change 23
23
"michelf/php-markdown" : " ~1.4"
24
24
},
25
25
"require-dev" : {
26
+ "doctrine/annotations" : " ^1.0" ,
26
27
"friendsofsymfony/rest-bundle" : " ^3.7" ,
27
- "jms/serializer" : " ~ 3.15.0 " ,
28
- "jms/serializer-bundle" : " 4.1.0 " ,
28
+ "jms/serializer" : " ^ 3.15" ,
29
+ "jms/serializer-bundle" : " ^ 4.1|^5.4 " ,
29
30
"phpunit/phpunit" : " ~9.5" ,
30
- "sensio/framework-extra-bundle" : " ^6.2" ,
31
31
"symfony/asset" : " ^5.0|^6.0" ,
32
32
"symfony/browser-kit" : " ^5.0|^6.0" ,
33
33
"symfony/translation" : " ^5.0|^6.0" ,
You can’t perform that action at this time.
0 commit comments