Browse Source

Merge pull request #7691 from Xymanek/master-flash_docblock

Added additional @methods to DocBlock of FlashComponent
Mark Story 10 years ago
parent
commit
0e6041cdf4
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/Controller/Component/FlashComponent.php

+ 3 - 0
src/Controller/Component/FlashComponent.php

@@ -24,6 +24,9 @@ use Exception;
  * The CakePHP FlashComponent provides a way for you to write a flash variable
  * to the session from your controllers, to be rendered in a view with the
  * FlashHelper.
+ *
+ * @method void success(string $message, array $options) Set a message using "success" element
+ * @method void error(string $message, array $options) Set a message using "error" element
  */
 class FlashComponent extends Component
 {