public function setConfig($config)
    {
        if ($this->wasBooted()) {
            throw new UnsupportedUsageException('You can only set configuration before boot.');
        }
        $this->config = Type::forceAndReturn($config, ArrayAccess::class);
        return $this;
    }