<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <type name="Magento\Customer\Block\Account\AuthorizationLink">
        <plugin name="modify_signin_href" type="Sm\MiniLogin\Plugin\ModifySignInHrefPlugin"/>
    </type>
    <type name="Sm\MiniLogin\Controller\Ajax\Forgetpassword">
        <plugin name="forgetpassword_ajax" type="Sm\MiniLogin\Plugin\AjaxForgetpassword" sortOrder="50"/>
        <arguments>
            <argument name="customerSession" xsi:type="object">Magento\Customer\Model\Session\Proxy</argument>
        </arguments>
    </type>
    <type name="Sm\MiniLogin\Controller\Ajax\Register">
        <plugin name="register_ajax" type="Sm\MiniLogin\Plugin\Register" sortOrder="50" disabled="true"/>
    </type>

    <!-- Proxies -->
    <type name="Sm\MiniLogin\Block\Popup">
        <arguments>
            <argument name="customerSession" xsi:type="object">Magento\Customer\Model\Session\Proxy</argument>
        </arguments>
    </type>
    <type name="Sm\MiniLogin\Controller\Ajax\Login">
        <arguments>
            <argument name="customerSession" xsi:type="object">Magento\Customer\Model\Session\Proxy</argument>
        </arguments>
    </type>
    <type name="Sm\MiniLogin\Observer\AddLoggedOutHandleObserver">
        <arguments>
            <argument name="customerSession" xsi:type="object">Magento\Customer\Model\Session\Proxy</argument>
        </arguments>
    </type>
</config>
