<?php
/**
 * Copyright © 2016 Magento. All rights reserved.
 * See COPYING.txt for license details.
 */
/**
 * @var \Magento\Customer\Block\CustomerData $block
 */
?>
<script type="text/x-magento-init">
<?php
    /* @escapeNotVerified */ echo $this->helper('Magento\Framework\Json\Helper\Data')->jsonEncode([
        '*' => ['Magento_Customer/js/customer-data' => [
            'sectionLoadUrl' => $block->getCustomerDataUrl('customer/section/load'),
            'cookieLifeTime' => $block->getCookieLifeTime(),
            'updateSessionUrl' => $block->getCustomerDataUrl('customer/account/updateSession'),
        ]],
    ]);
?>
</script>
