This commit is contained in:
2020-09-07 18:11:36 +08:00
parent c5c716f6e5
commit 03ab3bb92f
10 changed files with 68 additions and 171 deletions
+5 -11
View File
@@ -27,24 +27,18 @@ class Application extends Component
*/
public $id = 'uniqueId';
/** @var Console */
private $console;
/** @var Channel */
private $channel;
/**
* Application constructor.
* @param array $config
* @throws
*
*/
public function __construct(array $config = [])
public function init()
{
parent::__construct($config);
$this->channel = new Channel(1);
$this->console = new Console($config);
$this->console = new Console();
}
/**
* @param $class
* @throws