{% for namespace,actions in apis %}
Ext.Direct.addProvider({
    "url": "{{ url(route, {'bundle': namespace})|raw }}",
    "type": "remoting",
    "actions": {{ actions|json_encode|raw }},
    "namespace": "{{ namespace }}"
});
{% endfor %}
Ext.require([
    'Ext.direct.Manager',
    'Ext.direct.RemotingProvider'
], function() {
{% for namespace,actions in apis %}
Ext.direct.Manager.addProvider({
    "url": "{{ url(route, {'bundle': namespace})|raw }}",
    "type": "remoting",
    "actions": {{ actions|json_encode|raw }},
    "namespace": "{{ namespace }}"
});
{% endfor %}
});
Make sure Direct Remoting is loaded before using it.
Make sure Direct Remoting is loaded before using it.
