public function __construct(Configuration $config = null) { $this->config = $config ?: Configuration::getInstance(); }