# -*- coding: utf-8 -*-
from ocyan.core.plugins import OcyanPluginConfig


class OscarOdinConfig(OcyanPluginConfig):
    def contribute_to_installed_apps(self, installed_apps):
        installed_apps.oscar.extend(
            [
                "oscar_odin.apps.OscarOdinAppConfig",
                "ocyan.plugin.oscar_odin.apps.OcyanPluginOscarOdinAppConfig",
            ]
        )
        installed_apps.oscar.register_extension("ocyan.plugin.oscar_odin", "oscar_odin")
        return installed_apps
