/**
* Yii bootstrap file.
* Used for enhanced IDE code autocompletion.
* Note: To avoid "Multiple Implementations" PHPStorm warning and make autocomplete faster
* exclude or "Mark as Plain Text" vendor/yiisoft/yii2/Yii.php file
*/
class Yii extends \yii\BaseYii
{
/**
* @var BaseApplication|WebApplication|ConsoleApplication the application instance
*/
public static $app;
}
/**
* Class BaseApplication
* Used for properties that are identical for both WebApplication and ConsoleApplication
*
* @property trntv\filekit\Storage $fileStorage
* @property common\components\keyStorage\KeyStorage $keyStorage
* @property yii\web\UrlManager $urlManagerFrontend UrlManager for frontend application.
* @property yii\web\UrlManager $urlManagerBackend UrlManager for backend application.
* @property yii\web\UrlManager $urlManagerStorage UrlManager for storage application.
* @property trntv\glide\components\Glide $glide
* @property trntv\bus\CommandBus $commandBus
*/
abstract class BaseApplication extends yii\base\Application
{
}
/**
* Class WebApplication
* Include only Web application related components here
*
* @property User $user User component.
*/
class WebApplication extends yii\web\Application
{
}
/**
* Class ConsoleApplication
* Include only Console application related components here
*/
class ConsoleApplication extends yii\console\Application
{
}
/**
* User component
* Include only Web application related components here
*
* @property \common\models\User $identity User model.
* @method \common\models\User getIdentity() returns User model.
*/
class User extends \yii\web\User
{
}
2条答案
按热度按时间b09cbbtk1#
Yii2至少需要PHP 5.4,因此如果您的IDE支持PHP 5.4或更高版本,则也会显示Yii2的标准。
您也可以检查这个yii pligin for netbeans http://plugins.netbeans.org/plugin/47246/php-yii-framework-netbeans-phpcc
6kkfgxo02#
在项目根目录下,创建一个名为autocompletion.php的文件,并将其添加到文件中。