public function __construct(RootConfig $config) { $this->config = $config; $this->setTitle($config->getTitle()); }