public function __construct(Manager $manager, array $config) { parent::__construct($manager, $config); $this->screen = Screen::instance($manager, $this->app); $this->defaultSymbol = Manager::readConfig($config, self::CFG_SYMBOL, self::DEFAULT_SYMBOL); $this->defaultOrientation = Manager::readConfig($config, self::CFG_ORIENTATION, self::DEFAULT_ORIENTATION); }
public function __construct(Manager $manager, array $config) { parent::__construct($manager, $config); $this->leftCount = Manager::readConfig($config, self::CFG_COUNT, 1); if (!is_int($this->leftCount) || $this->leftCount < 1) { $this->leftCount = 1; $this->logger->warn("%s: A non-negative integer as tick count is required, assume 1.", [__CLASS__]); } }
public function __construct(Manager $manager, array $config) { parent::__construct($manager, $config); // prevent forgetting override default value if (static::DEFAULT_EVENT_CODE === -1) { throw new \LogicException(sprintf("You forget to override %s::DEFAULT_EVENT_CODE.", __CLASS__)); } $this->eventCode = Manager::readConfig($config, self::CFG_EVENT_CODE, static::DEFAULT_EVENT_CODE); $this->adb = ADB::instance($manager, $this->app); }
public function __construct(Manager $manager, array $config) { parent::__construct($manager, $config); $config = $config + $manager->getBaseComponentConfig($this->app); $this->package = Manager::readConfig($config, self::CFG_PACKAGE_NAME); $this->adb = ADB::instance($manager, $this->app); $this->detector = LoadingDetection::instance($manager, $this->app); $this->screen = Screen::instance($manager, $this->app); $this->input = Input::instance($manager, $this->app); }
public function __construct(Manager $manager, array $config) { parent::__construct($manager, $config); $this->message = Manager::readConfig($config, self::CFG_MESSAGE, static::DEFAULT_MESSAGE); }
public function __construct(Manager $manager, array $config) { parent::__construct($manager, $config); $this->delay = Delay::instance($manager, $this->app); $this->input = Input::instance($manager, $this->app); }
public function __construct(Manager $manager, array $config) { parent::__construct($manager, $config); $this->adb = ADB::instance($manager, $this->app); }
public function __construct(Manager $manager, array $config) { parent::__construct($manager, $config); $this->test = Manager::readConfig($config, self::CFG_TEST, static::DEFAULT_VALUE); }