<code>$this->setExtensionPath($config['extensionPath'])</code> should be here too.
We should determine the extension path either from config or as default value.