How can I access a service inside the theme config function

I would like to access the dbal_connection service, in the createConfig function in my Theme.
„$this->container“ is not available, which I’d use in a Plugin.

 

Shopware()->Container()->get(‘dbal_connection’)