Skip to content

Commit 5e38509

Browse files
committed
Update branch alias and fix outdated and irrelevant doc
1 parent e1388e6 commit 5e38509

File tree

3 files changed

+6
-19
lines changed

3 files changed

+6
-19
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ CHANGELOG
55
-----
66

77
* [BC BREAK] The `@Route` annotation and all its children no longer extend SensioFrameworkExtraBundle's annotation.
8-
The main effect is that `@Route::$service` is no longer available.
8+
The main effect is that `@Route::$service` is no longer available. Instead, define your controllers using the FQCN
9+
as service IDs or create an alias in the container using the FQCN.
910

1011
2.3.1
1112
-----

Resources/doc/annotations-reference.rst

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -112,21 +112,7 @@ Route
112112

113113
RestBundle extends the `@Route Symfony annotation`_ from Symfony.
114114

115-
@Delete @Get @Head @Link @Patch @Post @Put @Unlink @Lock @Unlock @PropFind @PropPatch @Move @Mkcol @Copy have the same options as @Route.
116-
117-
When using ``symfony/routing:>=2.4`` (or the full framework) you have access to
118-
the expression language component and can add conditions to your routing
119-
configuration with annotations (see `Routing Conditions`_).
120-
121-
Example syntax:
122-
123-
.. code-block:: php
124-
125-
use FOS\RestBundle\Controller\Annotations\Route;
126-
127-
/**
128-
* @Route("", condition="context.getMethod() in ['GET', 'HEAD'] and request.headers.get('User-Agent') matches '/firefox/i'")
129-
*/
115+
@Delete @Get @Head @Link @Patch @Post @Put @Unlink @Lock @Unlock @PropFind @PropPatch @Move @Mkcol @Copy are shortcuts to define
116+
routes limited to a specific HTTP method. They have the same options as @Route.
130117

131118
.. _`@Route Symfony annotation`: https://symfony.com/doc/current/routing.html
132-
.. _`Routing Conditions`: http://symfony.com/doc/current/book/routing.html#book-routing-conditions

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"psr/http-message": "^1.0"
6666
},
6767
"suggest": {
68-
"sensio/framework-extra-bundle": "Add support for route annotations and the view response listener, requires ^3.0",
68+
"sensio/framework-extra-bundle": "Add support for the request body converter and the view response listener, requires ^3.0",
6969
"jms/serializer-bundle": "Add support for advanced serialization capabilities, recommended, requires ^1.0",
7070
"symfony/expression-language": "Add support for using the expression language in the routing, requires ^2.7|^3.0",
7171
"symfony/serializer": "Add support for basic serialization capabilities and xml decoding, requires ^2.7|^3.0",
@@ -78,7 +78,7 @@
7878
},
7979
"extra": {
8080
"branch-alias": {
81-
"dev-master": "2.3-dev"
81+
"dev-master": "2.4-dev"
8282
}
8383
}
8484
}

0 commit comments

Comments
 (0)