Добавлен файл для автокомплита в проекте, обновлены обращения к di для лучшего статического анализа

This commit is contained in:
ErickSkrauch
2016-07-17 19:13:40 +03:00
parent dd0c4fcc9e
commit 2063d7daa0
7 changed files with 51 additions and 11 deletions

View File

@@ -43,7 +43,7 @@ abstract class Controller extends \yii\console\Controller {
* @return Component
*/
protected function getAmqp() {
return Yii::$app->get('amqp');
return Yii::$app->amqp;
}
/**

View File

@@ -9,7 +9,7 @@ class Helper {
* @return Component $amqp
*/
public static function getInstance() {
return Yii::$app->get('amqp');
return Yii::$app->amqp;
}
public static function sendToExchange($exchange, $routingKey, $message, $exchangeArgs = []) {

View File

@@ -12,7 +12,7 @@ class Key {
* @return \yii\redis\Connection
*/
public function getRedis() {
return Yii::$app->get('redis');
return Yii::$app->redis;
}
public function getKey() {

View File

@@ -10,7 +10,7 @@ class Set extends Key implements IteratorAggregate {
* @return \yii\redis\Connection
*/
public static function getDb() {
return Yii::$app->get('redis');
return Yii::$app->redis;
}
public function add($value) {