Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace console\controllers;
- use console\controllers\cronActions\promoLifeBiglion\FetchPosts;
- class PromoLifeBiglionController extends Controller
- {
- /**
- * Хештег по которому осуществляется поиск
- * @var string
- */
- public $hashTag = '#lifeBiglion';
- /**
- * Перечень социальных сетей для работы
- * @var array
- */
- public $socialNetworkIds = [];
- /**
- * @inheritdoc
- */
- public function options($actionId)
- {
- return [
- 'hashTag',
- 'socialNetworkIds',
- ];
- }
- /**
- * @inheritdoc
- */
- public function optionAliases()
- {
- return [
- 't' => 'hashTag',
- 'n' => 'socialNetworkIds',
- ];
- }
- /**
- * @inheritdoc
- */
- protected function cronActions()
- {
- return [
- 'fetch-posts' => FetchPosts::class,
- ];
- }
- }
Add Comment
Please, Sign In to add comment