1 | <?php |
||
2 | |||
3 | namespace hauntd\vote\controllers; |
||
4 | |||
5 | use hauntd\vote\actions\VoteAction; |
||
6 | use Yii; |
||
7 | use yii\web\Controller; |
||
8 | |||
9 | /** |
||
10 | * @author Alexander Kononenko <[email protected]> |
||
11 | * @package hauntd\vote\controllers |
||
12 | */ |
||
13 | class DefaultController extends Controller |
||
14 | { |
||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | public $defaultAction = 'vote'; |
||
19 | |||
20 | /** |
||
21 | * @return array |
||
22 | */ |
||
23 | public function actions() |
||
24 | { |
||
25 | return [ |
||
26 | 'vote' => [ |
||
27 | 'class' => VoteAction::className(), |
||
0 ignored issues
–
show
|
|||
28 | ] |
||
29 | ]; |
||
30 | } |
||
31 | } |
||
32 |
This function has been deprecated. The supplier of the function has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.