99 * file that was distributed with this source code. 
1010 */ 
1111
12- 
1312namespace  Symfony \Cmf \Bundle \CreateBundle \Controller ;
1413
1514use  Symfony \Cmf \Bundle \CreateBundle \Security \AccessCheckerInterface ;
@@ -92,7 +91,10 @@ protected function getModelBySubject(Request $request, $subject)
9291     * @param Request $request 
9392     * @param string  $subject URL of the subject, ie: cms/simple/news/news-name 
9493     * 
95-      * @return \Symfony\Component\HttpFoundation\Response 
94+      * @return Response 
95+      * 
96+      * @throws AccessDeniedException If the action is not allowed by the access 
97+      *                               checker. 
9698     */ 
9799    public  function  putDocumentAction (Request $ request$ subject
98100    {
@@ -115,6 +117,9 @@ public function putDocumentAction(Request $request, $subject)
115117     * @param Request $request 
116118     * 
117119     * @return Response 
120+      * 
121+      * @throws AccessDeniedException If the action is not allowed by the access 
122+      *                               checker. 
118123     */ 
119124    public  function  postDocumentAction (Request $ request
120125    {
@@ -129,18 +134,23 @@ public function postDocumentAction(Request $request)
129134
130135        if  (!is_null ($ result
131136            $ viewcreate ($ resultsetFormat ('json ' );
137+ 
132138            return  $ this viewHandler ->handle ($ view$ request
133139        }
134140
135141        return  Response::create ('The document could not be created ' , 500 );
136142    }
137143
138144    /** 
139-      * Handle document delete 
145+      * Handle document deletion. 
146+      * 
147+      * @param Request $request 
148+      * @param string  $subject URL of the subject, ie: cms/simple/news/news-name 
149+      * 
150+      * @return Response 
140151     * 
141-      * @param \Symfony\Component\HttpFoundation\Request $request 
142-      * @param string $subject URL of the subject, ie: cms/simple/news/news-name 
143-      * @return \Symfony\Component\HttpFoundation\Response 
152+      * @throws AccessDeniedException If the action is not allowed by the access 
153+      *                               checker. 
144154     */ 
145155    public  function  deleteDocumentAction (Request $ request$ subject
146156    {
@@ -158,11 +168,15 @@ public function deleteDocumentAction(Request $request, $subject)
158168    }
159169
160170    /** 
161-      * Get available Workflows for a document 
171+      * Get available Workflows for a document.  
162172     * 
163173     * @param Request $request 
164-      * @param $subject 
174+      * @param string  $subject 
175+      * 
165176     * @return Response 
177+      * 
178+      * @throws AccessDeniedException If getting workflows for this document is 
179+      *                               not allowed by the access checker. 
166180     */ 
167181    public  function  workflowsAction (Request $ request$ subject
168182    {
0 commit comments