Permalink
Browse files

cosmetic changes

  • Loading branch information...
1 parent 2408018 commit f7ec00f7c5fdb4c2a464a50825fa240a0829a0d2 @uwej711 committed May 16, 2012
Showing with 6 additions and 5 deletions.
  1. +1 −1 ContentRepositoryInterface.php
  2. +2 −1 DoctrineRouter.php
  3. +3 −3 README.md
@@ -5,7 +5,7 @@
/**
* Interface used by the DoctrineRouter to retrieve content by it's id.
*
- * Usually this is the DocumentManager.
+ * This can be easily implemented using the DocumentManager.
*
* @author Uwe Jäger
*/
View
@@ -257,9 +257,10 @@ protected function getRouteFromContent(&$parameters)
{
if (isset($parameters['content_id']) && null !== $this->contentRepository) {
$parameters['content'] = $this->contentRepository->findById($parameters['content_id']);
- unset($parameters['content_id']);
}
+ unset($parameters['content_id']);
+
if (! isset($parameters['content'])) {
throw new RouteNotFoundException('No parameter "content" and neither "route"');
}
View
@@ -105,11 +105,11 @@ extend it. You can also write your own routers to hook into the chain.
You can generate urls for your content in three ways:
-* Either pass an implementation of RouteObjectInterface as parameter route
+* Either pass an implementation of RouteObjectInterface as parameter ``route``
-* Or pass a content object as parameter content
+* Or pass a content object as parameter `content``
-* Or supply an implementation of ContentRepositoryInterface and the id of the content as parameter content_id
+* Or supply an implementation of ContentRepositoryInterface and the id of the content as parameter ``content_id``
## Authors

0 comments on commit f7ec00f

Please sign in to comment.