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;
    }
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;
    }
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 ; }
Set the application configuration.

@param array|\ArrayAccess $config

@return self
Set the application configuration .