services:
    _defaults:
        public: true

    prestashop.adapter.admin.page_preference:
        class: PrestaShop\PrestaShop\Adapter\Admin\PagePreference
        arguments:
            - "@session"
            - !php/const _PS_MODE_DEV_
        decorates: prestashop.core.admin.page_preference_interface
        public: false

    prestashop.adapter.legacy_db:
        class: 'Db'
        factory: ['Db', 'getInstance']
        deprecated: '%service_id% service is deprecated and will be removed in 1.8.'
