Completed
Push — standalone ( 8c7d4e...e42fd2 )
by Philip
04:11
created
Controller/RestResourceController.php 1 patch
Doc Comments   +24 added lines patch added patch discarded remove patch
@@ -317,6 +317,9 @@  discard block
 block discarded – undo
317 317
         return $this->getService()->findAssociationPaginated($entity, $property, $page, $perPage);
318 318
     }
319 319
 
320
+    /**
321
+     * @return string
322
+     */
320 323
     protected function getEntityClass()
321 324
     {
322 325
         return $this->getCurrentRequest()->attributes->get('_entityClass');
@@ -327,6 +330,9 @@  discard block
 block discarded – undo
327 330
         return Inflector::tableize($this->getClassMetadata()->reflection->getShortName());
328 331
     }
329 332
 
333
+    /**
334
+     * @return string
335
+     */
330 336
     protected function getServiceId()
331 337
     {
332 338
         return $this->getCurrentRequest()->attributes->get('_service');
@@ -380,6 +386,9 @@  discard block
 block discarded – undo
380 386
         }
381 387
     }
382 388
 
389
+    /**
390
+     * @param string|null $subresource
391
+     */
383 392
     protected function assertSubresourceListGranted($entity, $subresource)
384 393
     {
385 394
         $classMetadata = $this->getClassMetadata();
@@ -394,6 +403,9 @@  discard block
 block discarded – undo
394 403
         $this->assertRightGranted($entity, $right);
395 404
     }
396 405
 
406
+    /**
407
+     * @param string|null $subresource
408
+     */
397 409
     protected function assertSubresourcePostGranted($entity, $subresource)
398 410
     {
399 411
         $classMetadata = $this->getClassMetadata();
@@ -408,6 +420,9 @@  discard block
 block discarded – undo
408 420
         $this->assertRightGranted($entity, $right);
409 421
     }
410 422
 
423
+    /**
424
+     * @param string|null $subresource
425
+     */
411 426
     protected function assertSubresourcePutGranted($entity, $subresource)
412 427
     {
413 428
         $classMetadata = $this->getClassMetadata();
@@ -419,6 +434,9 @@  discard block
 block discarded – undo
419 434
         }
420 435
     }
421 436
 
437
+    /**
438
+     * @param string|null $subresource
439
+     */
422 440
     protected function assertSubresourceDeleteGranted($entity, $subresource)
423 441
     {
424 442
         $classMetadata = $this->getClassMetadata();
@@ -442,6 +460,9 @@  discard block
 block discarded – undo
442 460
         return $classMetaData;
443 461
     }
444 462
 
463
+    /**
464
+     * @param string|null $subresource
465
+     */
445 466
     protected function getSubResourceEntityClass($subresource)
446 467
     {
447 468
         /** @var PropertyMetadata $propertyMetadata */
@@ -450,6 +471,9 @@  discard block
 block discarded – undo
450 471
         return $propertyMetadata->getType();
451 472
     }
452 473
 
474
+    /**
475
+     * @param string $propertyPath
476
+     */
453 477
     protected function resolveSubject($entity, $propertyPath)
454 478
     {
455 479
         if ('this' === $propertyPath) {
Please login to merge, or discard this patch.