diff --git a/build/build b/build/build index a64a5f9..51949a9 100755 --- a/build/build +++ b/build/build @@ -14,6 +14,13 @@ defined('STDOUT') or define('STDOUT', fopen('php://stdout', 'w')); define('YII_DEBUG', true); +$vendor = __DIR__ . '/../vendor/autoload.php'; +if (file_exists($vendor)) { + require($vendor); +} else { + echo "composer autoloader could not be found.\nYou should run `composer install` in repo root directory.\n"; + exit(1); +} require(__DIR__ . '/../framework/Yii.php'); $application = new yii\console\Application([ diff --git a/extensions/debug/models/search/Mail.php b/extensions/debug/models/search/Mail.php index 59d310c..464436a 100644 --- a/extensions/debug/models/search/Mail.php +++ b/extensions/debug/models/search/Mail.php @@ -7,6 +7,9 @@ use yii\debug\components\search\Filter; /** * Mail represents the model behind the search form about current send emails. + * + * @author Mark Jebri <mark.github@yandex.ru> + * @since 2.0 */ class Mail extends Base { diff --git a/extensions/debug/panels/ConfigPanel.php b/extensions/debug/panels/ConfigPanel.php index b2c8c59..4ac76b4 100644 --- a/extensions/debug/panels/ConfigPanel.php +++ b/extensions/debug/panels/ConfigPanel.php @@ -13,6 +13,8 @@ use yii\debug\Panel; /** * Debugger panel that collects and displays application configuration and environment. * + * @property array $extensions This property is read-only. + * * @author Qiang Xue <qiang.xue@gmail.com> * @since 2.0 */ diff --git a/extensions/debug/panels/DbPanel.php b/extensions/debug/panels/DbPanel.php index 95de124..48ca756 100644 --- a/extensions/debug/panels/DbPanel.php +++ b/extensions/debug/panels/DbPanel.php @@ -15,6 +15,8 @@ use yii\debug\models\search\Db; /** * Debugger panel that collects and displays database queries performed. * + * @property array $profileLogs This property is read-only. + * * @author Qiang Xue <qiang.xue@gmail.com> * @since 2.0 */ diff --git a/extensions/debug/panels/MailPanel.php b/extensions/debug/panels/MailPanel.php index 55bb3f3..19a85ca 100644 --- a/extensions/debug/panels/MailPanel.php +++ b/extensions/debug/panels/MailPanel.php @@ -11,6 +11,11 @@ use yii\helpers\FileHelper; /** * Debugger panel that collects and displays the generated emails. + * + * @property array $messages Messages. This property is read-only. + * + * @author Mark Jebri <mark.github@yandex.ru> + * @since 2.0 */ class MailPanel extends Panel { diff --git a/extensions/elasticsearch/DebugAction.php b/extensions/elasticsearch/DebugAction.php index d4ddd41..503a54f 100644 --- a/extensions/elasticsearch/DebugAction.php +++ b/extensions/elasticsearch/DebugAction.php @@ -1,19 +1,26 @@ <?php /** - * @author Carsten Brandt <mail@cebe.cc> + * @link http://www.yiiframework.com/ + * @copyright Copyright (c) 2008 Yii Software LLC + * @license http://www.yiiframework.com/license/ */ namespace yii\elasticsearch; - use yii\base\Action; use yii\base\NotSupportedException; use yii\debug\Panel; use yii\helpers\ArrayHelper; use yii\web\HttpException; -use Yii; use yii\web\Response; +use Yii; +/** + * Debug Action is used by [[DebugPanel]] to perform elasticsearch queries using ajax. + * + * @author Carsten Brandt <mail@cebe.cc> + * @since 2.0 + */ class DebugAction extends Action { /** @@ -73,4 +80,4 @@ class DebugAction extends Action 'result' => $result, ]; } -} \ No newline at end of file +} diff --git a/extensions/gii/generators/crud/Generator.php b/extensions/gii/generators/crud/Generator.php index b5741c6..8a8cb1c 100644 --- a/extensions/gii/generators/crud/Generator.php +++ b/extensions/gii/generators/crud/Generator.php @@ -17,8 +17,11 @@ use yii\web\Controller; /** * + * @property array $columnNames Model column names. This property is read-only. * @property string $controllerID The controller ID (without the module ID prefix). This property is * read-only. + * @property array $searchAttributes Searchable attributes. This property is read-only. + * @property boolean|\yii\db\TableSchema $tableSchema This property is read-only. * @property string $viewPath The action view file path. This property is read-only. * * @author Qiang Xue <qiang.xue@gmail.com> diff --git a/extensions/twig/ViewRenderer.php b/extensions/twig/ViewRenderer.php index 7edfccb..5792806 100644 --- a/extensions/twig/ViewRenderer.php +++ b/extensions/twig/ViewRenderer.php @@ -17,6 +17,8 @@ use yii\helpers\Html; /** * TwigViewRenderer allows you to use Twig templates in views. * + * @property array $lexerOptions @see self::$lexerOptions. This property is write-only. + * * @author Alexander Makarov <sam@rmcreative.ru> * @since 2.0 */ diff --git a/framework/db/oci/QueryBuilder.php b/framework/db/oci/QueryBuilder.php index 6d1e9c1..2bec96c 100644 --- a/framework/db/oci/QueryBuilder.php +++ b/framework/db/oci/QueryBuilder.php @@ -12,6 +12,8 @@ use yii\base\InvalidParamException; /** * QueryBuilder is the query builder for Oracle databases. * + * @author Qiang Xue <qiang.xue@gmail.com> + * @since 2.0 */ class QueryBuilder extends \yii\db\QueryBuilder { diff --git a/framework/web/Controller.php b/framework/web/Controller.php index 6923883..01be87b 100644 --- a/framework/web/Controller.php +++ b/framework/web/Controller.php @@ -16,8 +16,6 @@ use yii\helpers\Html; * * @property string $canonicalUrl The canonical URL of the currently requested page. This property is * read-only. - * @property View $view The view object that can be used to render views or view files. This property is - * read-only. * * @author Qiang Xue <qiang.xue@gmail.com> * @since 2.0 diff --git a/framework/widgets/ActiveField.php b/framework/widgets/ActiveField.php index 81b1100..55bb9f9 100644 --- a/framework/widgets/ActiveField.php +++ b/framework/widgets/ActiveField.php @@ -14,6 +14,8 @@ use yii\base\Model; use yii\web\JsExpression; /** + * ActiveField represents a form input field within an [[ActiveForm]]. + * * @author Qiang Xue <qiang.xue@gmail.com> * @since 2.0 */