public function __construct(Config $config) { $this->config = $config; $this->url = $this->config->get('react.url'); $this->port = $this->config->get('react.port'); }