Bladeren bron

release version 2.0.8

Carsten Brandt 9 jaren geleden
bovenliggende
commit
6962834f37
4 gewijzigde bestanden met toevoegingen van 9 en 4 verwijderingen
  1. 1 1
      composer.json
  2. 2 1
      models/ContactForm.php
  3. 3 0
      models/LoginForm.php
  4. 3 2
      models/User.php

+ 1 - 1
composer.json

@@ -12,7 +12,7 @@
         "irc": "irc://irc.freenode.net/yii",
         "source": "https://github.com/yiisoft/yii2"
     },
-    "minimum-stability": "dev",
+    "minimum-stability": "stable",
     "require": {
         "php": ">=5.4.0",
         "yiisoft/yii2": ">=2.0.5",

+ 2 - 1
models/ContactForm.php

@@ -16,6 +16,7 @@ class ContactForm extends Model
     public $body;
     public $verifyCode;
 
+
     /**
      * @return array the validation rules.
      */
@@ -43,7 +44,7 @@ class ContactForm extends Model
 
     /**
      * Sends an email to the specified email address using the information collected by this model.
-     * @param  string  $email the target email address
+     * @param string $email the target email address
      * @return boolean whether the model passes validation
      */
     public function contact($email)

+ 3 - 0
models/LoginForm.php

@@ -7,6 +7,9 @@ use yii\base\Model;
 
 /**
  * LoginForm is the model behind the login form.
+ *
+ * @property User|null $user This property is read-only.
+ *
  */
 class LoginForm extends Model
 {

+ 3 - 2
models/User.php

@@ -27,6 +27,7 @@ class User extends \yii\base\Object implements \yii\web\IdentityInterface
         ],
     ];
 
+
     /**
      * @inheritdoc
      */
@@ -52,7 +53,7 @@ class User extends \yii\base\Object implements \yii\web\IdentityInterface
     /**
      * Finds user by username
      *
-     * @param  string      $username
+     * @param string $username
      * @return static|null
      */
     public static function findByUsername($username)
@@ -93,7 +94,7 @@ class User extends \yii\base\Object implements \yii\web\IdentityInterface
     /**
      * Validates password
      *
-     * @param  string  $password password to validate
+     * @param string $password password to validate
      * @return boolean if password provided is valid for current user
      */
     public function validatePassword($password)