jirafe 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -76,6 +76,26 @@ event = Jirafe::Callback::Events::Order.new(:version => 1,
76
76
  Jirafe::Callback::Event.send(site.identifier, token, [event])
77
77
  ```
78
78
 
79
+ To place javascript tags for visit tracking:
80
+
81
+ ```ruby
82
+ data = { "id" => "999" } # 999 is your site id
83
+ Jirafe::Tracker.js_tag(data.to_json)
84
+ ```
85
+
86
+ Which will generate for placement on a page:
87
+
88
+ ```html
89
+ <script type='text/javascript' id='jirafe_analytics'>
90
+ var jirafe = {"id":"999"};
91
+ (function(){
92
+ var d=document,g=d.createElement('script'),s=d.getElementsByTagName('script')[0];
93
+ g.type='text/javascript',g.defer=g.async=true;g.src=d.location.protocol+'//c.jirafe.com/jirafe.js';
94
+ s.parentNode.insertBefore(g, s);
95
+ })();
96
+ </script>
97
+ ```
98
+
79
99
  ## Development
80
100
 
81
101
  Specs
@@ -0,0 +1,741 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://api.jirafe.dev/v1/applications/resources?token=secret_token
6
+ body:
7
+ encoding: US-ASCII
8
+ string: sites[][description]=My%20Store&sites[][url]=http%3A%2F%2Fexample.com&sites[][currency]=EUR&sites[][timezone]=GMT&sites[][external_id]=2&sites[][site_id]=123&users[][email]=user%40example.com&users[][first_name]=Test&users[][last_name]=User
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 405
13
+ message: Method Not Allowed
14
+ headers:
15
+ Server:
16
+ - nginx/1.2.2
17
+ Date:
18
+ - Wed, 12 Sep 2012 18:19:30 GMT
19
+ Content-Type:
20
+ - text/html; charset=UTF-8
21
+ Transfer-Encoding:
22
+ - chunked
23
+ Connection:
24
+ - keep-alive
25
+ Keep-Alive:
26
+ - timeout=10
27
+ X-Powered-By:
28
+ - PHP/5.3.15
29
+ Allow:
30
+ - PUT, GET, HEAD
31
+ Cache-Control:
32
+ - no-cache
33
+ X-Debug-Token:
34
+ - 5050d232de0ba
35
+ body:
36
+ encoding: US-ASCII
37
+ string: ! "<!DOCTYPE html>\n<html>\n <head>\n <meta http-equiv=\"Content-Type\"
38
+ content=\"text/html; charset=UTF-8\"/>\n <meta name=\"robots\" content=\"noindex,nofollow\"
39
+ />\n <title> No route found for &quot;POST /v1/applications/resources&quot;:
40
+ Method Not Allowed (Allow: PUT, GET, HEAD) (405 Method Not Allowed)\n</title>\n
41
+ \ <link href=\"/bundles/framework/css/exception_layout.css\" rel=\"stylesheet\"
42
+ type=\"text/css\" media=\"all\" />\n <link href=\"/bundles/framework/css/exception.css\"
43
+ rel=\"stylesheet\" type=\"text/css\" media=\"all\" />\n </head>\n <body>\n
44
+ \ <div id=\"content\">\n <div class=\"header clear_fix\">\n
45
+ \ <div class=\"header_logo\">\n <img src=\"/bundles/framework/images/logo_symfony.gif\"
46
+ alt=\"Symfony\" />\n </div>\n\n <div class=\"search\">\n
47
+ \ <form method=\"get\" action=\"http://symfony.com/search\">\n
48
+ \ <div class=\"form_row\">\n\n <label
49
+ for=\"search_id\">\n <img src=\"/bundles/framework/images/grey_magnifier.png\"
50
+ alt=\"Search on Symfony website\" />\n </label>\n\n <input
51
+ name=\"q\" id=\"search_id\" type=\"search\" placeholder=\"Search on Symfony
52
+ website\" />\n\n <button type=\"submit\">\n <span
53
+ class=\"border_l\">\n <span class=\"border_r\">\n
54
+ \ <span class=\"btn_bg\">OK</span>\n </span>\n
55
+ \ </span>\n </button>\n </div>\n
56
+ \ </form>\n </div>\n </div>\n\n
57
+ \ <div class=\"sf-exceptionreset\">\n\n <div class=\"block_exception\">\n
58
+ \ <div class=\"block_exception_detected clear_fix\">\n <div
59
+ class=\"illustration_exception\">\n <img alt=\"Exception detected!\"
60
+ src=\"/bundles/framework/images/exception_detected.gif\"/>\n </div>\n
61
+ \ <div class=\"text_exception\">\n\n <div class=\"open_quote\">\n
62
+ \ <img alt=\"\" src=\"/bundles/framework/images/open_quote.gif\"/>\n
63
+ \ </div>\n\n <h1>\n No route
64
+ found for &quot;POST /v1/applications/resources&quot;: Method Not Allowed
65
+ (Allow: PUT, GET, HEAD)\n </h1>\n\n <div>\n
66
+ \ <strong>405</strong> Method Not Allowed - <abbr title=\"Symfony\\Component\\HttpKernel\\Exception\\MethodNotAllowedHttpException\">MethodNotAllowedHttpException</abbr>\n
67
+ \ </div>\n\n <div
68
+ class=\"linked\"><span><strong>1</strong> linked Exception:</span>\n <ul>\n
69
+ \ <li>\n <abbr
70
+ title=\"Symfony\\Component\\Routing\\Exception\\MethodNotAllowedException\">MethodNotAllowedException</abbr>
71
+ <a href=\"#traces_link_1\" onclick=\"toggle('traces_1', 'traces'); switchIcons('icon_traces_1_open',
72
+ 'icon_traces_1_close');\">&raquo;</a>\n </li>\n
73
+ \ </ul>\n </div>\n
74
+ \ \n <div class=\"close_quote\">\n <img
75
+ alt=\"\" src=\"/bundles/framework/images/close_quote.gif\"/>\n </div>\n\n
76
+ \ </div>\n </div>\n </div>\n\n <div class=\"block\">\n
77
+ \ <h2>\n <span><small>[2/2]</small></span>\n <abbr
78
+ title=\"Symfony\\Component\\HttpKernel\\Exception\\MethodNotAllowedHttpException\">MethodNotAllowedHttpException</abbr>:
79
+ No route found for &quot;POST /v1/applications/resources&quot;: Method Not
80
+ Allowed (Allow: PUT, GET, HEAD)&nbsp;\n <a href=\"#\" onclick=\"toggle('traces_0',
81
+ 'traces'); switchIcons('icon_traces_0_open', 'icon_traces_0_close'); return
82
+ false;\"><img class=\"toggle\" id=\"icon_traces_0_close\" alt=\"-\" src=\"/bundles/framework/images/blue_picto_less.gif\"
83
+ style=\"visibility: hidden\" /><img class=\"toggle\" id=\"icon_traces_0_open\"
84
+ alt=\"+\" src=\"/bundles/framework/images/blue_picto_more.gif\" style=\"visibility:
85
+ display; margin-left: -18px\" /></a> </h2>\n \n <a id=\"traces_link_0\"></a>\n
86
+ \ <ol class=\"traces list_exception\" id=\"traces_0\" style=\"display: none\">\n
87
+ \ <li>\n \n \n in /Users/schubert/workspace/jirafe/api/vendor/symfony/src/Symfony/Bundle/FrameworkBundle/EventListener/RouterListener.php
88
+ at line 87&nbsp;\n <a href=\"#\" onclick=\"toggle('trace_0_0'); switchIcons('icon_0_0_open',
89
+ 'icon_0_0_close'); return false;\"><img class=\"toggle\" id=\"icon_0_0_close\"
90
+ alt=\"-\" src=\"/bundles/framework/images/blue_picto_less.gif\" style=\"visibility:
91
+ display\" /><img class=\"toggle\" id=\"icon_0_0_open\" alt=\"+\" src=\"/bundles/framework/images/blue_picto_more.gif\"
92
+ style=\"visibility: hidden; margin-left: -18px\" /></a> <div id=\"trace_0_0\"
93
+ style=\"display: block\" class=\"trace\">\n <ol start=\"84\"><li><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;catch&nbsp;(<span
94
+ style=\"color: #0000BB\">MethodNotAllowedException&nbsp;$e</span><span style=\"color:
95
+ #007700\">)&nbsp;{</span></code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
96
+ style=\"color: #0000BB\">$message&nbsp;</span><span style=\"color: #007700\">=&nbsp;</span><span
97
+ style=\"color: #0000BB\">sprintf</span><span style=\"color: #007700\">(</span><span
98
+ style=\"color: #DD0000\">'No&nbsp;route&nbsp;found&nbsp;for&nbsp;\"%s&nbsp;%s\":&nbsp;Method&nbsp;Not&nbsp;Allowed&nbsp;(Allow:&nbsp;%s)'</span><span
99
+ style=\"color: #007700\">,&nbsp;</span><span style=\"color: #0000BB\">$request</span><span
100
+ style=\"color: #007700\">-&gt;</span><span style=\"color: #0000BB\">getMethod</span><span
101
+ style=\"color: #007700\">(),&nbsp;</span><span style=\"color: #0000BB\">$request</span><span
102
+ style=\"color: #007700\">-&gt;</span><span style=\"color: #0000BB\">getPathInfo</span><span
103
+ style=\"color: #007700\">(),&nbsp;</span><span style=\"color: #0000BB\">strtoupper</span><span
104
+ style=\"color: #007700\">(</span><span style=\"color: #0000BB\">implode</span><span
105
+ style=\"color: #007700\">(</span><span style=\"color: #DD0000\">',&nbsp;'</span><span
106
+ style=\"color: #007700\">,&nbsp;</span><span style=\"color: #0000BB\">$e</span><span
107
+ style=\"color: #007700\">-&gt;</span><span style=\"color: #0000BB\">getAllowedMethods</span><span
108
+ style=\"color: #007700\">())));</span></code></li>\n<li><code></code></li>\n<li
109
+ class=\"selected\"><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;throw&nbsp;new&nbsp;<span
110
+ style=\"color: #0000BB\">MethodNotAllowedHttpException</span><span style=\"color:
111
+ #007700\">(</span><span style=\"color: #0000BB\">$e</span><span style=\"color:
112
+ #007700\">-&gt;</span><span style=\"color: #0000BB\">getAllowedMethods</span><span
113
+ style=\"color: #007700\">(),&nbsp;</span><span style=\"color: #0000BB\">$message</span><span
114
+ style=\"color: #007700\">,&nbsp;</span><span style=\"color: #0000BB\">$e</span><span
115
+ style=\"color: #007700\">);</span></code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</code></li>\n<li><code></code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(<span
116
+ style=\"color: #0000BB\">HttpKernelInterface</span><span style=\"color: #007700\">::</span><span
117
+ style=\"color: #0000BB\">MASTER_REQUEST&nbsp;</span><span style=\"color: #007700\">===&nbsp;</span><span
118
+ style=\"color: #0000BB\">$event</span><span style=\"color: #007700\">-&gt;</span><span
119
+ style=\"color: #0000BB\">getRequestType</span><span style=\"color: #007700\">())&nbsp;{</span></code></li></ol>\n
120
+ \ </div>\n </li>\n <li>\n at\n
121
+ \ <strong>\n <abbr title=\"Symfony\\Bundle\\FrameworkBundle\\EventListener\\RouterListener\">RouterListener</abbr>\n
122
+ \ -&gt;onKernelRequest\n </strong>\n (<em>object</em>(<abbr title=\"Symfony\\Component\\HttpKernel\\Event\\GetResponseEvent\">GetResponseEvent</abbr>))\n\n
123
+ \ </li>\n <li>\n at\n <strong>\n
124
+ \ <abbr title=\"\"></abbr>\n call_user_func\n </strong>\n
125
+ \ (<em>array</em>(<em>object</em>(<abbr title=\"Symfony\\Bundle\\FrameworkBundle\\EventListener\\RouterListener\">RouterListener</abbr>),
126
+ 'onKernelRequest'), <em>object</em>(<abbr title=\"Symfony\\Component\\HttpKernel\\Event\\GetResponseEvent\">GetResponseEvent</abbr>))\n\n
127
+ \ <br />\n in /Users/schubert/workspace/jirafe/api/vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Debug/TraceableEventDispatcher.php
128
+ at line 82&nbsp;\n <a href=\"#\" onclick=\"toggle('trace_0_2'); switchIcons('icon_0_2_open',
129
+ 'icon_0_2_close'); return false;\"><img class=\"toggle\" id=\"icon_0_2_close\"
130
+ alt=\"-\" src=\"/bundles/framework/images/blue_picto_less.gif\" style=\"visibility:
131
+ hidden\" /><img class=\"toggle\" id=\"icon_0_2_open\" alt=\"+\" src=\"/bundles/framework/images/blue_picto_more.gif\"
132
+ style=\"visibility: display; margin-left: -18px\" /></a> <div id=\"trace_0_2\"
133
+ style=\"display: none\" class=\"trace\">\n <ol start=\"79\"><li><code></code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
134
+ style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">-&gt;</span><span
135
+ style=\"color: #0000BB\">called</span><span style=\"color: #007700\">[</span><span
136
+ style=\"color: #0000BB\">$eventName</span><span style=\"color: #007700\">.</span><span
137
+ style=\"color: #DD0000\">'.'</span><span style=\"color: #007700\">.</span><span
138
+ style=\"color: #0000BB\">$info</span><span style=\"color: #007700\">[</span><span
139
+ style=\"color: #DD0000\">'pretty'</span><span style=\"color: #007700\">]]&nbsp;=&nbsp;</span><span
140
+ style=\"color: #0000BB\">$info</span><span style=\"color: #007700\">;</span></code></li>\n<li><code></code></li>\n<li
141
+ class=\"selected\"><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
142
+ style=\"color: #0000BB\">call_user_func</span><span style=\"color: #007700\">(</span><span
143
+ style=\"color: #0000BB\">$listener</span><span style=\"color: #007700\">,&nbsp;</span><span
144
+ style=\"color: #0000BB\">$event</span><span style=\"color: #007700\">);</span></code></li>\n<li><code></code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(<span
145
+ style=\"color: #0000BB\">$event</span><span style=\"color: #007700\">-&gt;</span><span
146
+ style=\"color: #0000BB\">isPropagationStopped</span><span style=\"color: #007700\">())&nbsp;{</span></code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(<span
147
+ style=\"color: #0000BB\">null&nbsp;</span><span style=\"color: #007700\">!==&nbsp;</span><span
148
+ style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">-&gt;</span><span
149
+ style=\"color: #0000BB\">logger</span><span style=\"color: #007700\">)&nbsp;{</span></code></li></ol>\n
150
+ \ </div>\n </li>\n <li>\n at\n
151
+ \ <strong>\n <abbr title=\"Symfony\\Bundle\\FrameworkBundle\\Debug\\TraceableEventDispatcher\">TraceableEventDispatcher</abbr>\n
152
+ \ -&gt;doDispatch\n </strong>\n (<em>array</em>(<em>array</em>(<em>object</em>(<abbr
153
+ title=\"Symfony\\Component\\HttpKernel\\EventListener\\ProfilerListener\">ProfilerListener</abbr>),
154
+ 'onKernelRequest'), <em>array</em>(<em>object</em>(<abbr title=\"Symfony\\Bundle\\FrameworkBundle\\EventListener\\RouterListener\">RouterListener</abbr>),
155
+ 'onEarlyKernelRequest'), <em>array</em>(<em>object</em>(<abbr title=\"Jirafe\\Bundle\\ApiBundle\\Listener\\SessionListener\">SessionListener</abbr>),
156
+ 'onKernelRequest'), <em>array</em>(<em>object</em>(<abbr title=\"Symfony\\Component\\Security\\Http\\Firewall\">Firewall</abbr>),
157
+ 'onKernelRequest'), <em>array</em>(<em>object</em>(<abbr title=\"Symfony\\Bundle\\FrameworkBundle\\EventListener\\RouterListener\">RouterListener</abbr>),
158
+ 'onKernelRequest'), <em>array</em>(<em>object</em>(<abbr title=\"FOS\\RestBundle\\EventListener\\BodyListener\">BodyListener</abbr>),
159
+ 'onKernelRequest'), <em>array</em>(<em>object</em>(<abbr title=\"Jirafe\\Bundle\\ApiBundle\\Listener\\RequestLogListener\">RequestLogListener</abbr>),
160
+ 'onKernelRequest'), <em>array</em>(<em>object</em>(<abbr title=\"Jirafe\\Bundle\\DashboardBundle\\Templating\\Helper\\MenuHelper\">MenuHelper</abbr>),
161
+ 'onKernelRequest'), <em>array</em>(<em>object</em>(<abbr title=\"Jirafe\\Bundle\\DashboardBundle\\Listener\\ChangeLocaleKernelRequestListener\">ChangeLocaleKernelRequestListener</abbr>),
162
+ 'onKernelRequest'), <em>array</em>(<em>object</em>(<abbr title=\"Jirafe\\Bundle\\DashboardBundle\\Listener\\SaveAppIdInCookieKernelRequestListener\">SaveAppIdInCookieKernelRequestListener</abbr>),
163
+ 'onKernelRequest')), 'kernel.request', <em>object</em>(<abbr title=\"Symfony\\Component\\HttpKernel\\Event\\GetResponseEvent\">GetResponseEvent</abbr>))\n\n
164
+ \ <br />\n in /Users/schubert/workspace/jirafe/api/vendor/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php
165
+ at line 49&nbsp;\n <a href=\"#\" onclick=\"toggle('trace_0_3'); switchIcons('icon_0_3_open',
166
+ 'icon_0_3_close'); return false;\"><img class=\"toggle\" id=\"icon_0_3_close\"
167
+ alt=\"-\" src=\"/bundles/framework/images/blue_picto_less.gif\" style=\"visibility:
168
+ hidden\" /><img class=\"toggle\" id=\"icon_0_3_open\" alt=\"+\" src=\"/bundles/framework/images/blue_picto_more.gif\"
169
+ style=\"visibility: display; margin-left: -18px\" /></a> <div id=\"trace_0_3\"
170
+ style=\"display: none\" class=\"trace\">\n <ol start=\"46\"><li><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
171
+ style=\"color: #0000BB\">$event&nbsp;</span><span style=\"color: #007700\">=&nbsp;new&nbsp;</span><span
172
+ style=\"color: #0000BB\">Event</span><span style=\"color: #007700\">();</span></code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</code></li>\n<li><code></code></li>\n<li
173
+ class=\"selected\"><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
174
+ style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">-&gt;</span><span
175
+ style=\"color: #0000BB\">doDispatch</span><span style=\"color: #007700\">(</span><span
176
+ style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">-&gt;</span><span
177
+ style=\"color: #0000BB\">getListeners</span><span style=\"color: #007700\">(</span><span
178
+ style=\"color: #0000BB\">$eventName</span><span style=\"color: #007700\">),&nbsp;</span><span
179
+ style=\"color: #0000BB\">$eventName</span><span style=\"color: #007700\">,&nbsp;</span><span
180
+ style=\"color: #0000BB\">$event</span><span style=\"color: #007700\">);</span></code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;}</code></li>\n<li><code></code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;<span
181
+ style=\"color: #FF8000\">/**</span></code></li></ol>\n </div>\n </li>\n
182
+ \ <li>\n at\n <strong>\n <abbr
183
+ title=\"Symfony\\Component\\EventDispatcher\\EventDispatcher\">EventDispatcher</abbr>\n
184
+ \ -&gt;dispatch\n </strong>\n ('kernel.request', <em>object</em>(<abbr
185
+ title=\"Symfony\\Component\\HttpKernel\\Event\\GetResponseEvent\">GetResponseEvent</abbr>))\n\n
186
+ \ <br />\n in /Users/schubert/workspace/jirafe/api/vendor/symfony/src/Symfony/Bundle/FrameworkBundle/ContainerAwareEventDispatcher.php
187
+ at line 145&nbsp;\n <a href=\"#\" onclick=\"toggle('trace_0_4'); switchIcons('icon_0_4_open',
188
+ 'icon_0_4_close'); return false;\"><img class=\"toggle\" id=\"icon_0_4_close\"
189
+ alt=\"-\" src=\"/bundles/framework/images/blue_picto_less.gif\" style=\"visibility:
190
+ hidden\" /><img class=\"toggle\" id=\"icon_0_4_open\" alt=\"+\" src=\"/bundles/framework/images/blue_picto_more.gif\"
191
+ style=\"visibility: display; margin-left: -18px\" /></a> <div id=\"trace_0_4\"
192
+ style=\"display: none\" class=\"trace\">\n <ol start=\"142\"><li><code>&nbsp;&nbsp;&nbsp;&nbsp;{</code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
193
+ style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">-&gt;</span><span
194
+ style=\"color: #0000BB\">lazyLoad</span><span style=\"color: #007700\">(</span><span
195
+ style=\"color: #0000BB\">$eventName</span><span style=\"color: #007700\">);</span></code></li>\n<li><code></code></li>\n<li
196
+ class=\"selected\"><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
197
+ style=\"color: #0000BB\">parent</span><span style=\"color: #007700\">::</span><span
198
+ style=\"color: #0000BB\">dispatch</span><span style=\"color: #007700\">(</span><span
199
+ style=\"color: #0000BB\">$eventName</span><span style=\"color: #007700\">,&nbsp;</span><span
200
+ style=\"color: #0000BB\">$event</span><span style=\"color: #007700\">);</span></code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;}</code></li>\n<li><code></code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;<span
201
+ style=\"color: #FF8000\">/**</span></code></li></ol>\n </div>\n </li>\n
202
+ \ <li>\n at\n <strong>\n <abbr
203
+ title=\"Symfony\\Bundle\\FrameworkBundle\\ContainerAwareEventDispatcher\">ContainerAwareEventDispatcher</abbr>\n
204
+ \ -&gt;dispatch\n </strong>\n ('kernel.request', <em>object</em>(<abbr
205
+ title=\"Symfony\\Component\\HttpKernel\\Event\\GetResponseEvent\">GetResponseEvent</abbr>))\n\n
206
+ \ <br />\n in /Users/schubert/workspace/jirafe/api/vendor/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php
207
+ at line 98&nbsp;\n <a href=\"#\" onclick=\"toggle('trace_0_5'); switchIcons('icon_0_5_open',
208
+ 'icon_0_5_close'); return false;\"><img class=\"toggle\" id=\"icon_0_5_close\"
209
+ alt=\"-\" src=\"/bundles/framework/images/blue_picto_less.gif\" style=\"visibility:
210
+ hidden\" /><img class=\"toggle\" id=\"icon_0_5_open\" alt=\"+\" src=\"/bundles/framework/images/blue_picto_more.gif\"
211
+ style=\"visibility: display; margin-left: -18px\" /></a> <div id=\"trace_0_5\"
212
+ style=\"display: none\" class=\"trace\">\n <ol start=\"95\"><li><code>&nbsp;&nbsp;&nbsp;&nbsp;{</code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
213
+ style=\"color: #FF8000\">//&nbsp;request</span></code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
214
+ style=\"color: #0000BB\">$event&nbsp;</span><span style=\"color: #007700\">=&nbsp;new&nbsp;</span><span
215
+ style=\"color: #0000BB\">GetResponseEvent</span><span style=\"color: #007700\">(</span><span
216
+ style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">,&nbsp;</span><span
217
+ style=\"color: #0000BB\">$request</span><span style=\"color: #007700\">,&nbsp;</span><span
218
+ style=\"color: #0000BB\">$type</span><span style=\"color: #007700\">);</span></code></li>\n<li
219
+ class=\"selected\"><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
220
+ style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">-&gt;</span><span
221
+ style=\"color: #0000BB\">dispatcher</span><span style=\"color: #007700\">-&gt;</span><span
222
+ style=\"color: #0000BB\">dispatch</span><span style=\"color: #007700\">(</span><span
223
+ style=\"color: #0000BB\">KernelEvents</span><span style=\"color: #007700\">::</span><span
224
+ style=\"color: #0000BB\">REQUEST</span><span style=\"color: #007700\">,&nbsp;</span><span
225
+ style=\"color: #0000BB\">$event</span><span style=\"color: #007700\">);</span></code></li>\n<li><code></code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(<span
226
+ style=\"color: #0000BB\">$event</span><span style=\"color: #007700\">-&gt;</span><span
227
+ style=\"color: #0000BB\">hasResponse</span><span style=\"color: #007700\">())&nbsp;{</span></code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;<span
228
+ style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">-&gt;</span><span
229
+ style=\"color: #0000BB\">filterResponse</span><span style=\"color: #007700\">(</span><span
230
+ style=\"color: #0000BB\">$event</span><span style=\"color: #007700\">-&gt;</span><span
231
+ style=\"color: #0000BB\">getResponse</span><span style=\"color: #007700\">(),&nbsp;</span><span
232
+ style=\"color: #0000BB\">$request</span><span style=\"color: #007700\">,&nbsp;</span><span
233
+ style=\"color: #0000BB\">$type</span><span style=\"color: #007700\">);</span></code></li></ol>\n
234
+ \ </div>\n </li>\n <li>\n at\n
235
+ \ <strong>\n <abbr title=\"Symfony\\Component\\HttpKernel\\HttpKernel\">HttpKernel</abbr>\n
236
+ \ -&gt;handleRaw\n </strong>\n (<em>object</em>(<abbr title=\"Symfony\\Component\\HttpFoundation\\Request\">Request</abbr>),
237
+ '1')\n\n <br />\n in /Users/schubert/workspace/jirafe/api/vendor/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php
238
+ at line 71&nbsp;\n <a href=\"#\" onclick=\"toggle('trace_0_6'); switchIcons('icon_0_6_open',
239
+ 'icon_0_6_close'); return false;\"><img class=\"toggle\" id=\"icon_0_6_close\"
240
+ alt=\"-\" src=\"/bundles/framework/images/blue_picto_less.gif\" style=\"visibility:
241
+ hidden\" /><img class=\"toggle\" id=\"icon_0_6_open\" alt=\"+\" src=\"/bundles/framework/images/blue_picto_more.gif\"
242
+ style=\"visibility: display; margin-left: -18px\" /></a> <div id=\"trace_0_6\"
243
+ style=\"display: none\" class=\"trace\">\n <ol start=\"68\"><li><code>&nbsp;&nbsp;&nbsp;&nbsp;<span
244
+ style=\"color: #007700\">public&nbsp;function&nbsp;</span><span style=\"color:
245
+ #0000BB\">handle</span><span style=\"color: #007700\">(</span><span style=\"color:
246
+ #0000BB\">Request&nbsp;$request</span><span style=\"color: #007700\">,&nbsp;</span><span
247
+ style=\"color: #0000BB\">$type&nbsp;</span><span style=\"color: #007700\">=&nbsp;</span><span
248
+ style=\"color: #0000BB\">HttpKernelInterface</span><span style=\"color: #007700\">::</span><span
249
+ style=\"color: #0000BB\">MASTER_REQUEST</span><span style=\"color: #007700\">,&nbsp;</span><span
250
+ style=\"color: #0000BB\">$catch&nbsp;</span><span style=\"color: #007700\">=&nbsp;</span><span
251
+ style=\"color: #0000BB\">true</span><span style=\"color: #007700\">)</span></code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;{</code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try&nbsp;{</code></li>\n<li
252
+ class=\"selected\"><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;<span
253
+ style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">-&gt;</span><span
254
+ style=\"color: #0000BB\">handleRaw</span><span style=\"color: #007700\">(</span><span
255
+ style=\"color: #0000BB\">$request</span><span style=\"color: #007700\">,&nbsp;</span><span
256
+ style=\"color: #0000BB\">$type</span><span style=\"color: #007700\">);</span></code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;catch&nbsp;(\\<span
257
+ style=\"color: #0000BB\">Exception&nbsp;$e</span><span style=\"color: #007700\">)&nbsp;{</span></code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(<span
258
+ style=\"color: #0000BB\">false&nbsp;</span><span style=\"color: #007700\">===&nbsp;</span><span
259
+ style=\"color: #0000BB\">$catch</span><span style=\"color: #007700\">)&nbsp;{</span></code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;throw&nbsp;<span
260
+ style=\"color: #0000BB\">$e</span><span style=\"color: #007700\">;</span></code></li></ol>\n
261
+ \ </div>\n </li>\n <li>\n at\n
262
+ \ <strong>\n <abbr title=\"Symfony\\Component\\HttpKernel\\HttpKernel\">HttpKernel</abbr>\n
263
+ \ -&gt;handle\n </strong>\n (<em>object</em>(<abbr title=\"Symfony\\Component\\HttpFoundation\\Request\">Request</abbr>),
264
+ '1', <em>true</em>)\n\n <br />\n in /Users/schubert/workspace/jirafe/api/vendor/symfony/src/Symfony/Bundle/FrameworkBundle/HttpKernel.php
265
+ at line 47&nbsp;\n <a href=\"#\" onclick=\"toggle('trace_0_7'); switchIcons('icon_0_7_open',
266
+ 'icon_0_7_close'); return false;\"><img class=\"toggle\" id=\"icon_0_7_close\"
267
+ alt=\"-\" src=\"/bundles/framework/images/blue_picto_less.gif\" style=\"visibility:
268
+ hidden\" /><img class=\"toggle\" id=\"icon_0_7_open\" alt=\"+\" src=\"/bundles/framework/images/blue_picto_more.gif\"
269
+ style=\"visibility: display; margin-left: -18px\" /></a> <div id=\"trace_0_7\"
270
+ style=\"display: none\" class=\"trace\">\n <ol start=\"44\"><li><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
271
+ style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">-&gt;</span><span
272
+ style=\"color: #0000BB\">container</span><span style=\"color: #007700\">-&gt;</span><span
273
+ style=\"color: #0000BB\">set</span><span style=\"color: #007700\">(</span><span
274
+ style=\"color: #DD0000\">'request'</span><span style=\"color: #007700\">,&nbsp;</span><span
275
+ style=\"color: #0000BB\">$request</span><span style=\"color: #007700\">,&nbsp;</span><span
276
+ style=\"color: #DD0000\">'request'</span><span style=\"color: #007700\">);</span></code></li>\n<li><code></code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try&nbsp;{</code></li>\n<li
277
+ class=\"selected\"><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
278
+ style=\"color: #0000BB\">$response&nbsp;</span><span style=\"color: #007700\">=&nbsp;</span><span
279
+ style=\"color: #0000BB\">parent</span><span style=\"color: #007700\">::</span><span
280
+ style=\"color: #0000BB\">handle</span><span style=\"color: #007700\">(</span><span
281
+ style=\"color: #0000BB\">$request</span><span style=\"color: #007700\">,&nbsp;</span><span
282
+ style=\"color: #0000BB\">$type</span><span style=\"color: #007700\">,&nbsp;</span><span
283
+ style=\"color: #0000BB\">$catch</span><span style=\"color: #007700\">);</span></code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;catch&nbsp;(\\<span
284
+ style=\"color: #0000BB\">Exception&nbsp;$e</span><span style=\"color: #007700\">)&nbsp;{</span></code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
285
+ style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">-&gt;</span><span
286
+ style=\"color: #0000BB\">container</span><span style=\"color: #007700\">-&gt;</span><span
287
+ style=\"color: #0000BB\">leaveScope</span><span style=\"color: #007700\">(</span><span
288
+ style=\"color: #DD0000\">'request'</span><span style=\"color: #007700\">);</span></code></li>\n<li><code></code></li></ol>\n
289
+ \ </div>\n </li>\n <li>\n at\n
290
+ \ <strong>\n <abbr title=\"Symfony\\Bundle\\FrameworkBundle\\HttpKernel\">HttpKernel</abbr>\n
291
+ \ -&gt;handle\n </strong>\n (<em>object</em>(<abbr title=\"Symfony\\Component\\HttpFoundation\\Request\">Request</abbr>),
292
+ '1', <em>true</em>)\n\n <br />\n in <abbr title=\"/Users/schubert/workspace/jirafe/api/app/\">kernel.root_dir</abbr>/bootstrap.php.cache
293
+ at line 547&nbsp;\n <a href=\"#\" onclick=\"toggle('trace_0_8'); switchIcons('icon_0_8_open',
294
+ 'icon_0_8_close'); return false;\"><img class=\"toggle\" id=\"icon_0_8_close\"
295
+ alt=\"-\" src=\"/bundles/framework/images/blue_picto_less.gif\" style=\"visibility:
296
+ hidden\" /><img class=\"toggle\" id=\"icon_0_8_open\" alt=\"+\" src=\"/bundles/framework/images/blue_picto_more.gif\"
297
+ style=\"visibility: display; margin-left: -18px\" /></a> <div id=\"trace_0_8\"
298
+ style=\"display: none\" class=\"trace\">\n <ol start=\"544\"><li><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
299
+ style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">-&gt;</span><span
300
+ style=\"color: #0000BB\">boot</span><span style=\"color: #007700\">();</span></code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</code></li>\n<li><code></code></li>\n<li
301
+ class=\"selected\"><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;<span
302
+ style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">-&gt;</span><span
303
+ style=\"color: #0000BB\">getHttpKernel</span><span style=\"color: #007700\">()-&gt;</span><span
304
+ style=\"color: #0000BB\">handle</span><span style=\"color: #007700\">(</span><span
305
+ style=\"color: #0000BB\">$request</span><span style=\"color: #007700\">,&nbsp;</span><span
306
+ style=\"color: #0000BB\">$type</span><span style=\"color: #007700\">,&nbsp;</span><span
307
+ style=\"color: #0000BB\">$catch</span><span style=\"color: #007700\">);</span></code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;}</code></li>\n<li><code></code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;</code></li></ol>\n
308
+ \ </div>\n </li>\n <li>\n at\n
309
+ \ <strong>\n <abbr title=\"Symfony\\Component\\HttpKernel\\Kernel\">Kernel</abbr>\n
310
+ \ -&gt;handle\n </strong>\n (<em>object</em>(<abbr title=\"Symfony\\Component\\HttpFoundation\\Request\">Request</abbr>))\n\n
311
+ \ <br />\n in /Users/schubert/workspace/jirafe/api/web/app_dev.php at
312
+ line 17&nbsp;\n <a href=\"#\" onclick=\"toggle('trace_0_9'); switchIcons('icon_0_9_open',
313
+ 'icon_0_9_close'); return false;\"><img class=\"toggle\" id=\"icon_0_9_close\"
314
+ alt=\"-\" src=\"/bundles/framework/images/blue_picto_less.gif\" style=\"visibility:
315
+ hidden\" /><img class=\"toggle\" id=\"icon_0_9_open\" alt=\"+\" src=\"/bundles/framework/images/blue_picto_more.gif\"
316
+ style=\"visibility: display; margin-left: -18px\" /></a> <div id=\"trace_0_9\"
317
+ style=\"display: none\" class=\"trace\">\n <ol start=\"14\"><li><code>use&nbsp;<span
318
+ style=\"color: #0000BB\">Symfony</span><span style=\"color: #007700\">\\</span><span
319
+ style=\"color: #0000BB\">Component</span><span style=\"color: #007700\">\\</span><span
320
+ style=\"color: #0000BB\">HttpFoundation</span><span style=\"color: #007700\">\\</span><span
321
+ style=\"color: #0000BB\">Request</span><span style=\"color: #007700\">;</span></code></li>\n<li><code></code></li>\n<li><code><span
322
+ style=\"color: #0000BB\">$kernel&nbsp;</span><span style=\"color: #007700\">=&nbsp;new&nbsp;</span><span
323
+ style=\"color: #0000BB\">AppKernel</span><span style=\"color: #007700\">(</span><span
324
+ style=\"color: #DD0000\">'dev'</span><span style=\"color: #007700\">,&nbsp;</span><span
325
+ style=\"color: #0000BB\">true</span><span style=\"color: #007700\">);</span></code></li>\n<li
326
+ class=\"selected\"><code><span style=\"color: #0000BB\">$kernel</span><span
327
+ style=\"color: #007700\">-&gt;</span><span style=\"color: #0000BB\">handle</span><span
328
+ style=\"color: #007700\">(</span><span style=\"color: #0000BB\">Request</span><span
329
+ style=\"color: #007700\">::</span><span style=\"color: #0000BB\">createFromGlobals</span><span
330
+ style=\"color: #007700\">())-&gt;</span><span style=\"color: #0000BB\">send</span><span
331
+ style=\"color: #007700\">();</span></code></li>\n<li><code>\n</code></li></ol>\n
332
+ \ </div>\n </li>\n </ol>\n</div>\n <div
333
+ class=\"block\">\n <h2>\n <span><small>[1/2]</small></span>\n
334
+ \ <abbr title=\"Symfony\\Component\\Routing\\Exception\\MethodNotAllowedException\">MethodNotAllowedException</abbr>:
335
+ &nbsp;\n <a href=\"#\" onclick=\"toggle('traces_1', 'traces');
336
+ switchIcons('icon_traces_1_open', 'icon_traces_1_close'); return false;\"><img
337
+ class=\"toggle\" id=\"icon_traces_1_close\" alt=\"-\" src=\"/bundles/framework/images/blue_picto_less.gif\"
338
+ style=\"visibility: hidden\" /><img class=\"toggle\" id=\"icon_traces_1_open\"
339
+ alt=\"+\" src=\"/bundles/framework/images/blue_picto_more.gif\" style=\"visibility:
340
+ display; margin-left: -18px\" /></a> </h2>\n \n <a id=\"traces_link_1\"></a>\n
341
+ \ <ol class=\"traces list_exception\" id=\"traces_1\" style=\"display: none\">\n
342
+ \ <li>\n \n \n in <abbr title=\"/Users/schubert/workspace/jirafe/api/app/\">kernel.root_dir</abbr>/cache/dev/appdevUrlMatcher.php
343
+ at line 752&nbsp;\n <a href=\"#\" onclick=\"toggle('trace_1_0'); switchIcons('icon_1_0_open',
344
+ 'icon_1_0_close'); return false;\"><img class=\"toggle\" id=\"icon_1_0_close\"
345
+ alt=\"-\" src=\"/bundles/framework/images/blue_picto_less.gif\" style=\"visibility:
346
+ display\" /><img class=\"toggle\" id=\"icon_1_0_open\" alt=\"+\" src=\"/bundles/framework/images/blue_picto_more.gif\"
347
+ style=\"visibility: hidden; margin-left: -18px\" /></a> <div id=\"trace_1_0\"
348
+ style=\"display: block\" class=\"trace\">\n <ol start=\"749\"><li><code></code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</code></li>\n<li><code></code></li>\n<li
349
+ class=\"selected\"><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;throw&nbsp;<span
350
+ style=\"color: #0000BB\">0&nbsp;</span><span style=\"color: #007700\">&lt;&nbsp;</span><span
351
+ style=\"color: #0000BB\">count</span><span style=\"color: #007700\">(</span><span
352
+ style=\"color: #0000BB\">$allow</span><span style=\"color: #007700\">)&nbsp;?&nbsp;new&nbsp;</span><span
353
+ style=\"color: #0000BB\">MethodNotAllowedException</span><span style=\"color:
354
+ #007700\">(</span><span style=\"color: #0000BB\">array_unique</span><span
355
+ style=\"color: #007700\">(</span><span style=\"color: #0000BB\">$allow</span><span
356
+ style=\"color: #007700\">))&nbsp;:&nbsp;new&nbsp;</span><span style=\"color:
357
+ #0000BB\">ResourceNotFoundException</span><span style=\"color: #007700\">();</span></code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;}</code></li>\n<li><code>}</code></li>\n<li><code>\n</code></li></ol>\n
358
+ \ </div>\n </li>\n <li>\n at\n
359
+ \ <strong>\n <abbr title=\"appdevUrlMatcher\">appdevUrlMatcher</abbr>\n
360
+ \ -&gt;match\n </strong>\n ('/v1/applications/resources')\n\n
361
+ \ <br />\n in /Users/schubert/workspace/jirafe/api/vendor/symfony/src/Symfony/Component/Routing/Router.php
362
+ at line 195&nbsp;\n <a href=\"#\" onclick=\"toggle('trace_1_1'); switchIcons('icon_1_1_open',
363
+ 'icon_1_1_close'); return false;\"><img class=\"toggle\" id=\"icon_1_1_close\"
364
+ alt=\"-\" src=\"/bundles/framework/images/blue_picto_less.gif\" style=\"visibility:
365
+ hidden\" /><img class=\"toggle\" id=\"icon_1_1_open\" alt=\"+\" src=\"/bundles/framework/images/blue_picto_more.gif\"
366
+ style=\"visibility: display; margin-left: -18px\" /></a> <div id=\"trace_1_1\"
367
+ style=\"display: none\" class=\"trace\">\n <ol start=\"192\"><li><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;<span
368
+ style=\"color: #007700\">public&nbsp;function&nbsp;</span><span style=\"color:
369
+ #0000BB\">match</span><span style=\"color: #007700\">(</span><span style=\"color:
370
+ #0000BB\">$url</span><span style=\"color: #007700\">)</span></code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;{</code></li>\n<li
371
+ class=\"selected\"><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;<span
372
+ style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">-&gt;</span><span
373
+ style=\"color: #0000BB\">getMatcher</span><span style=\"color: #007700\">()-&gt;</span><span
374
+ style=\"color: #0000BB\">match</span><span style=\"color: #007700\">(</span><span
375
+ style=\"color: #0000BB\">$url</span><span style=\"color: #007700\">);</span></code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;}</code></li>\n<li><code></code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;<span
376
+ style=\"color: #FF8000\">/**</span></code></li></ol>\n </div>\n </li>\n
377
+ \ <li>\n at\n <strong>\n <abbr
378
+ title=\"Symfony\\Component\\Routing\\Router\">Router</abbr>\n -&gt;match\n
379
+ \ </strong>\n ('/v1/applications/resources')\n\n <br />\n in /Users/schubert/workspace/jirafe/api/vendor/symfony/src/Symfony/Bundle/FrameworkBundle/EventListener/RouterListener.php
380
+ at line 73&nbsp;\n <a href=\"#\" onclick=\"toggle('trace_1_2'); switchIcons('icon_1_2_open',
381
+ 'icon_1_2_close'); return false;\"><img class=\"toggle\" id=\"icon_1_2_close\"
382
+ alt=\"-\" src=\"/bundles/framework/images/blue_picto_less.gif\" style=\"visibility:
383
+ hidden\" /><img class=\"toggle\" id=\"icon_1_2_open\" alt=\"+\" src=\"/bundles/framework/images/blue_picto_more.gif\"
384
+ style=\"visibility: display; margin-left: -18px\" /></a> <div id=\"trace_1_2\"
385
+ style=\"display: none\" class=\"trace\">\n <ol start=\"70\"><li><code></code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
386
+ style=\"color: #FF8000\">//&nbsp;add&nbsp;attributes&nbsp;based&nbsp;on&nbsp;the&nbsp;path&nbsp;info&nbsp;(routing)</span></code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
387
+ style=\"color: #007700\">try&nbsp;{</span></code></li>\n<li class=\"selected\"><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
388
+ style=\"color: #0000BB\">$parameters&nbsp;</span><span style=\"color: #007700\">=&nbsp;</span><span
389
+ style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">-&gt;</span><span
390
+ style=\"color: #0000BB\">router</span><span style=\"color: #007700\">-&gt;</span><span
391
+ style=\"color: #0000BB\">match</span><span style=\"color: #007700\">(</span><span
392
+ style=\"color: #0000BB\">$request</span><span style=\"color: #007700\">-&gt;</span><span
393
+ style=\"color: #0000BB\">getPathInfo</span><span style=\"color: #007700\">());</span></code></li>\n<li><code></code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(<span
394
+ style=\"color: #0000BB\">null&nbsp;</span><span style=\"color: #007700\">!==&nbsp;</span><span
395
+ style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">-&gt;</span><span
396
+ style=\"color: #0000BB\">logger</span><span style=\"color: #007700\">)&nbsp;{</span></code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
397
+ style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">-&gt;</span><span
398
+ style=\"color: #0000BB\">logger</span><span style=\"color: #007700\">-&gt;</span><span
399
+ style=\"color: #0000BB\">info</span><span style=\"color: #007700\">(</span><span
400
+ style=\"color: #0000BB\">sprintf</span><span style=\"color: #007700\">(</span><span
401
+ style=\"color: #DD0000\">'Matched&nbsp;route&nbsp;\"%s\"&nbsp;(parameters:&nbsp;%s)'</span><span
402
+ style=\"color: #007700\">,&nbsp;</span><span style=\"color: #0000BB\">$parameters</span><span
403
+ style=\"color: #007700\">[</span><span style=\"color: #DD0000\">'_route'</span><span
404
+ style=\"color: #007700\">],&nbsp;</span><span style=\"color: #0000BB\">$this</span><span
405
+ style=\"color: #007700\">-&gt;</span><span style=\"color: #0000BB\">parametersToString</span><span
406
+ style=\"color: #007700\">(</span><span style=\"color: #0000BB\">$parameters</span><span
407
+ style=\"color: #007700\">)));</span></code></li></ol>\n </div>\n </li>\n
408
+ \ <li>\n at\n <strong>\n <abbr
409
+ title=\"Symfony\\Bundle\\FrameworkBundle\\EventListener\\RouterListener\">RouterListener</abbr>\n
410
+ \ -&gt;onKernelRequest\n </strong>\n (<em>object</em>(<abbr title=\"Symfony\\Component\\HttpKernel\\Event\\GetResponseEvent\">GetResponseEvent</abbr>))\n\n
411
+ \ </li>\n <li>\n at\n <strong>\n
412
+ \ <abbr title=\"\"></abbr>\n call_user_func\n </strong>\n
413
+ \ (<em>array</em>(<em>object</em>(<abbr title=\"Symfony\\Bundle\\FrameworkBundle\\EventListener\\RouterListener\">RouterListener</abbr>),
414
+ 'onKernelRequest'), <em>object</em>(<abbr title=\"Symfony\\Component\\HttpKernel\\Event\\GetResponseEvent\">GetResponseEvent</abbr>))\n\n
415
+ \ <br />\n in /Users/schubert/workspace/jirafe/api/vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Debug/TraceableEventDispatcher.php
416
+ at line 82&nbsp;\n <a href=\"#\" onclick=\"toggle('trace_1_4'); switchIcons('icon_1_4_open',
417
+ 'icon_1_4_close'); return false;\"><img class=\"toggle\" id=\"icon_1_4_close\"
418
+ alt=\"-\" src=\"/bundles/framework/images/blue_picto_less.gif\" style=\"visibility:
419
+ hidden\" /><img class=\"toggle\" id=\"icon_1_4_open\" alt=\"+\" src=\"/bundles/framework/images/blue_picto_more.gif\"
420
+ style=\"visibility: display; margin-left: -18px\" /></a> <div id=\"trace_1_4\"
421
+ style=\"display: none\" class=\"trace\">\n <ol start=\"79\"><li><code></code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
422
+ style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">-&gt;</span><span
423
+ style=\"color: #0000BB\">called</span><span style=\"color: #007700\">[</span><span
424
+ style=\"color: #0000BB\">$eventName</span><span style=\"color: #007700\">.</span><span
425
+ style=\"color: #DD0000\">'.'</span><span style=\"color: #007700\">.</span><span
426
+ style=\"color: #0000BB\">$info</span><span style=\"color: #007700\">[</span><span
427
+ style=\"color: #DD0000\">'pretty'</span><span style=\"color: #007700\">]]&nbsp;=&nbsp;</span><span
428
+ style=\"color: #0000BB\">$info</span><span style=\"color: #007700\">;</span></code></li>\n<li><code></code></li>\n<li
429
+ class=\"selected\"><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
430
+ style=\"color: #0000BB\">call_user_func</span><span style=\"color: #007700\">(</span><span
431
+ style=\"color: #0000BB\">$listener</span><span style=\"color: #007700\">,&nbsp;</span><span
432
+ style=\"color: #0000BB\">$event</span><span style=\"color: #007700\">);</span></code></li>\n<li><code></code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(<span
433
+ style=\"color: #0000BB\">$event</span><span style=\"color: #007700\">-&gt;</span><span
434
+ style=\"color: #0000BB\">isPropagationStopped</span><span style=\"color: #007700\">())&nbsp;{</span></code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(<span
435
+ style=\"color: #0000BB\">null&nbsp;</span><span style=\"color: #007700\">!==&nbsp;</span><span
436
+ style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">-&gt;</span><span
437
+ style=\"color: #0000BB\">logger</span><span style=\"color: #007700\">)&nbsp;{</span></code></li></ol>\n
438
+ \ </div>\n </li>\n <li>\n at\n
439
+ \ <strong>\n <abbr title=\"Symfony\\Bundle\\FrameworkBundle\\Debug\\TraceableEventDispatcher\">TraceableEventDispatcher</abbr>\n
440
+ \ -&gt;doDispatch\n </strong>\n (<em>array</em>(<em>array</em>(<em>object</em>(<abbr
441
+ title=\"Symfony\\Component\\HttpKernel\\EventListener\\ProfilerListener\">ProfilerListener</abbr>),
442
+ 'onKernelRequest'), <em>array</em>(<em>object</em>(<abbr title=\"Symfony\\Bundle\\FrameworkBundle\\EventListener\\RouterListener\">RouterListener</abbr>),
443
+ 'onEarlyKernelRequest'), <em>array</em>(<em>object</em>(<abbr title=\"Jirafe\\Bundle\\ApiBundle\\Listener\\SessionListener\">SessionListener</abbr>),
444
+ 'onKernelRequest'), <em>array</em>(<em>object</em>(<abbr title=\"Symfony\\Component\\Security\\Http\\Firewall\">Firewall</abbr>),
445
+ 'onKernelRequest'), <em>array</em>(<em>object</em>(<abbr title=\"Symfony\\Bundle\\FrameworkBundle\\EventListener\\RouterListener\">RouterListener</abbr>),
446
+ 'onKernelRequest'), <em>array</em>(<em>object</em>(<abbr title=\"FOS\\RestBundle\\EventListener\\BodyListener\">BodyListener</abbr>),
447
+ 'onKernelRequest'), <em>array</em>(<em>object</em>(<abbr title=\"Jirafe\\Bundle\\ApiBundle\\Listener\\RequestLogListener\">RequestLogListener</abbr>),
448
+ 'onKernelRequest'), <em>array</em>(<em>object</em>(<abbr title=\"Jirafe\\Bundle\\DashboardBundle\\Templating\\Helper\\MenuHelper\">MenuHelper</abbr>),
449
+ 'onKernelRequest'), <em>array</em>(<em>object</em>(<abbr title=\"Jirafe\\Bundle\\DashboardBundle\\Listener\\ChangeLocaleKernelRequestListener\">ChangeLocaleKernelRequestListener</abbr>),
450
+ 'onKernelRequest'), <em>array</em>(<em>object</em>(<abbr title=\"Jirafe\\Bundle\\DashboardBundle\\Listener\\SaveAppIdInCookieKernelRequestListener\">SaveAppIdInCookieKernelRequestListener</abbr>),
451
+ 'onKernelRequest')), 'kernel.request', <em>object</em>(<abbr title=\"Symfony\\Component\\HttpKernel\\Event\\GetResponseEvent\">GetResponseEvent</abbr>))\n\n
452
+ \ <br />\n in /Users/schubert/workspace/jirafe/api/vendor/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php
453
+ at line 49&nbsp;\n <a href=\"#\" onclick=\"toggle('trace_1_5'); switchIcons('icon_1_5_open',
454
+ 'icon_1_5_close'); return false;\"><img class=\"toggle\" id=\"icon_1_5_close\"
455
+ alt=\"-\" src=\"/bundles/framework/images/blue_picto_less.gif\" style=\"visibility:
456
+ hidden\" /><img class=\"toggle\" id=\"icon_1_5_open\" alt=\"+\" src=\"/bundles/framework/images/blue_picto_more.gif\"
457
+ style=\"visibility: display; margin-left: -18px\" /></a> <div id=\"trace_1_5\"
458
+ style=\"display: none\" class=\"trace\">\n <ol start=\"46\"><li><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
459
+ style=\"color: #0000BB\">$event&nbsp;</span><span style=\"color: #007700\">=&nbsp;new&nbsp;</span><span
460
+ style=\"color: #0000BB\">Event</span><span style=\"color: #007700\">();</span></code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</code></li>\n<li><code></code></li>\n<li
461
+ class=\"selected\"><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
462
+ style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">-&gt;</span><span
463
+ style=\"color: #0000BB\">doDispatch</span><span style=\"color: #007700\">(</span><span
464
+ style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">-&gt;</span><span
465
+ style=\"color: #0000BB\">getListeners</span><span style=\"color: #007700\">(</span><span
466
+ style=\"color: #0000BB\">$eventName</span><span style=\"color: #007700\">),&nbsp;</span><span
467
+ style=\"color: #0000BB\">$eventName</span><span style=\"color: #007700\">,&nbsp;</span><span
468
+ style=\"color: #0000BB\">$event</span><span style=\"color: #007700\">);</span></code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;}</code></li>\n<li><code></code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;<span
469
+ style=\"color: #FF8000\">/**</span></code></li></ol>\n </div>\n </li>\n
470
+ \ <li>\n at\n <strong>\n <abbr
471
+ title=\"Symfony\\Component\\EventDispatcher\\EventDispatcher\">EventDispatcher</abbr>\n
472
+ \ -&gt;dispatch\n </strong>\n ('kernel.request', <em>object</em>(<abbr
473
+ title=\"Symfony\\Component\\HttpKernel\\Event\\GetResponseEvent\">GetResponseEvent</abbr>))\n\n
474
+ \ <br />\n in /Users/schubert/workspace/jirafe/api/vendor/symfony/src/Symfony/Bundle/FrameworkBundle/ContainerAwareEventDispatcher.php
475
+ at line 145&nbsp;\n <a href=\"#\" onclick=\"toggle('trace_1_6'); switchIcons('icon_1_6_open',
476
+ 'icon_1_6_close'); return false;\"><img class=\"toggle\" id=\"icon_1_6_close\"
477
+ alt=\"-\" src=\"/bundles/framework/images/blue_picto_less.gif\" style=\"visibility:
478
+ hidden\" /><img class=\"toggle\" id=\"icon_1_6_open\" alt=\"+\" src=\"/bundles/framework/images/blue_picto_more.gif\"
479
+ style=\"visibility: display; margin-left: -18px\" /></a> <div id=\"trace_1_6\"
480
+ style=\"display: none\" class=\"trace\">\n <ol start=\"142\"><li><code>&nbsp;&nbsp;&nbsp;&nbsp;{</code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
481
+ style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">-&gt;</span><span
482
+ style=\"color: #0000BB\">lazyLoad</span><span style=\"color: #007700\">(</span><span
483
+ style=\"color: #0000BB\">$eventName</span><span style=\"color: #007700\">);</span></code></li>\n<li><code></code></li>\n<li
484
+ class=\"selected\"><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
485
+ style=\"color: #0000BB\">parent</span><span style=\"color: #007700\">::</span><span
486
+ style=\"color: #0000BB\">dispatch</span><span style=\"color: #007700\">(</span><span
487
+ style=\"color: #0000BB\">$eventName</span><span style=\"color: #007700\">,&nbsp;</span><span
488
+ style=\"color: #0000BB\">$event</span><span style=\"color: #007700\">);</span></code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;}</code></li>\n<li><code></code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;<span
489
+ style=\"color: #FF8000\">/**</span></code></li></ol>\n </div>\n </li>\n
490
+ \ <li>\n at\n <strong>\n <abbr
491
+ title=\"Symfony\\Bundle\\FrameworkBundle\\ContainerAwareEventDispatcher\">ContainerAwareEventDispatcher</abbr>\n
492
+ \ -&gt;dispatch\n </strong>\n ('kernel.request', <em>object</em>(<abbr
493
+ title=\"Symfony\\Component\\HttpKernel\\Event\\GetResponseEvent\">GetResponseEvent</abbr>))\n\n
494
+ \ <br />\n in /Users/schubert/workspace/jirafe/api/vendor/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php
495
+ at line 98&nbsp;\n <a href=\"#\" onclick=\"toggle('trace_1_7'); switchIcons('icon_1_7_open',
496
+ 'icon_1_7_close'); return false;\"><img class=\"toggle\" id=\"icon_1_7_close\"
497
+ alt=\"-\" src=\"/bundles/framework/images/blue_picto_less.gif\" style=\"visibility:
498
+ hidden\" /><img class=\"toggle\" id=\"icon_1_7_open\" alt=\"+\" src=\"/bundles/framework/images/blue_picto_more.gif\"
499
+ style=\"visibility: display; margin-left: -18px\" /></a> <div id=\"trace_1_7\"
500
+ style=\"display: none\" class=\"trace\">\n <ol start=\"95\"><li><code>&nbsp;&nbsp;&nbsp;&nbsp;{</code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
501
+ style=\"color: #FF8000\">//&nbsp;request</span></code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
502
+ style=\"color: #0000BB\">$event&nbsp;</span><span style=\"color: #007700\">=&nbsp;new&nbsp;</span><span
503
+ style=\"color: #0000BB\">GetResponseEvent</span><span style=\"color: #007700\">(</span><span
504
+ style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">,&nbsp;</span><span
505
+ style=\"color: #0000BB\">$request</span><span style=\"color: #007700\">,&nbsp;</span><span
506
+ style=\"color: #0000BB\">$type</span><span style=\"color: #007700\">);</span></code></li>\n<li
507
+ class=\"selected\"><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
508
+ style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">-&gt;</span><span
509
+ style=\"color: #0000BB\">dispatcher</span><span style=\"color: #007700\">-&gt;</span><span
510
+ style=\"color: #0000BB\">dispatch</span><span style=\"color: #007700\">(</span><span
511
+ style=\"color: #0000BB\">KernelEvents</span><span style=\"color: #007700\">::</span><span
512
+ style=\"color: #0000BB\">REQUEST</span><span style=\"color: #007700\">,&nbsp;</span><span
513
+ style=\"color: #0000BB\">$event</span><span style=\"color: #007700\">);</span></code></li>\n<li><code></code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(<span
514
+ style=\"color: #0000BB\">$event</span><span style=\"color: #007700\">-&gt;</span><span
515
+ style=\"color: #0000BB\">hasResponse</span><span style=\"color: #007700\">())&nbsp;{</span></code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;<span
516
+ style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">-&gt;</span><span
517
+ style=\"color: #0000BB\">filterResponse</span><span style=\"color: #007700\">(</span><span
518
+ style=\"color: #0000BB\">$event</span><span style=\"color: #007700\">-&gt;</span><span
519
+ style=\"color: #0000BB\">getResponse</span><span style=\"color: #007700\">(),&nbsp;</span><span
520
+ style=\"color: #0000BB\">$request</span><span style=\"color: #007700\">,&nbsp;</span><span
521
+ style=\"color: #0000BB\">$type</span><span style=\"color: #007700\">);</span></code></li></ol>\n
522
+ \ </div>\n </li>\n <li>\n at\n
523
+ \ <strong>\n <abbr title=\"Symfony\\Component\\HttpKernel\\HttpKernel\">HttpKernel</abbr>\n
524
+ \ -&gt;handleRaw\n </strong>\n (<em>object</em>(<abbr title=\"Symfony\\Component\\HttpFoundation\\Request\">Request</abbr>),
525
+ '1')\n\n <br />\n in /Users/schubert/workspace/jirafe/api/vendor/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php
526
+ at line 71&nbsp;\n <a href=\"#\" onclick=\"toggle('trace_1_8'); switchIcons('icon_1_8_open',
527
+ 'icon_1_8_close'); return false;\"><img class=\"toggle\" id=\"icon_1_8_close\"
528
+ alt=\"-\" src=\"/bundles/framework/images/blue_picto_less.gif\" style=\"visibility:
529
+ hidden\" /><img class=\"toggle\" id=\"icon_1_8_open\" alt=\"+\" src=\"/bundles/framework/images/blue_picto_more.gif\"
530
+ style=\"visibility: display; margin-left: -18px\" /></a> <div id=\"trace_1_8\"
531
+ style=\"display: none\" class=\"trace\">\n <ol start=\"68\"><li><code>&nbsp;&nbsp;&nbsp;&nbsp;<span
532
+ style=\"color: #007700\">public&nbsp;function&nbsp;</span><span style=\"color:
533
+ #0000BB\">handle</span><span style=\"color: #007700\">(</span><span style=\"color:
534
+ #0000BB\">Request&nbsp;$request</span><span style=\"color: #007700\">,&nbsp;</span><span
535
+ style=\"color: #0000BB\">$type&nbsp;</span><span style=\"color: #007700\">=&nbsp;</span><span
536
+ style=\"color: #0000BB\">HttpKernelInterface</span><span style=\"color: #007700\">::</span><span
537
+ style=\"color: #0000BB\">MASTER_REQUEST</span><span style=\"color: #007700\">,&nbsp;</span><span
538
+ style=\"color: #0000BB\">$catch&nbsp;</span><span style=\"color: #007700\">=&nbsp;</span><span
539
+ style=\"color: #0000BB\">true</span><span style=\"color: #007700\">)</span></code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;{</code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try&nbsp;{</code></li>\n<li
540
+ class=\"selected\"><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;<span
541
+ style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">-&gt;</span><span
542
+ style=\"color: #0000BB\">handleRaw</span><span style=\"color: #007700\">(</span><span
543
+ style=\"color: #0000BB\">$request</span><span style=\"color: #007700\">,&nbsp;</span><span
544
+ style=\"color: #0000BB\">$type</span><span style=\"color: #007700\">);</span></code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;catch&nbsp;(\\<span
545
+ style=\"color: #0000BB\">Exception&nbsp;$e</span><span style=\"color: #007700\">)&nbsp;{</span></code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(<span
546
+ style=\"color: #0000BB\">false&nbsp;</span><span style=\"color: #007700\">===&nbsp;</span><span
547
+ style=\"color: #0000BB\">$catch</span><span style=\"color: #007700\">)&nbsp;{</span></code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;throw&nbsp;<span
548
+ style=\"color: #0000BB\">$e</span><span style=\"color: #007700\">;</span></code></li></ol>\n
549
+ \ </div>\n </li>\n <li>\n at\n
550
+ \ <strong>\n <abbr title=\"Symfony\\Component\\HttpKernel\\HttpKernel\">HttpKernel</abbr>\n
551
+ \ -&gt;handle\n </strong>\n (<em>object</em>(<abbr title=\"Symfony\\Component\\HttpFoundation\\Request\">Request</abbr>),
552
+ '1', <em>true</em>)\n\n <br />\n in /Users/schubert/workspace/jirafe/api/vendor/symfony/src/Symfony/Bundle/FrameworkBundle/HttpKernel.php
553
+ at line 47&nbsp;\n <a href=\"#\" onclick=\"toggle('trace_1_9'); switchIcons('icon_1_9_open',
554
+ 'icon_1_9_close'); return false;\"><img class=\"toggle\" id=\"icon_1_9_close\"
555
+ alt=\"-\" src=\"/bundles/framework/images/blue_picto_less.gif\" style=\"visibility:
556
+ hidden\" /><img class=\"toggle\" id=\"icon_1_9_open\" alt=\"+\" src=\"/bundles/framework/images/blue_picto_more.gif\"
557
+ style=\"visibility: display; margin-left: -18px\" /></a> <div id=\"trace_1_9\"
558
+ style=\"display: none\" class=\"trace\">\n <ol start=\"44\"><li><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
559
+ style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">-&gt;</span><span
560
+ style=\"color: #0000BB\">container</span><span style=\"color: #007700\">-&gt;</span><span
561
+ style=\"color: #0000BB\">set</span><span style=\"color: #007700\">(</span><span
562
+ style=\"color: #DD0000\">'request'</span><span style=\"color: #007700\">,&nbsp;</span><span
563
+ style=\"color: #0000BB\">$request</span><span style=\"color: #007700\">,&nbsp;</span><span
564
+ style=\"color: #DD0000\">'request'</span><span style=\"color: #007700\">);</span></code></li>\n<li><code></code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try&nbsp;{</code></li>\n<li
565
+ class=\"selected\"><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
566
+ style=\"color: #0000BB\">$response&nbsp;</span><span style=\"color: #007700\">=&nbsp;</span><span
567
+ style=\"color: #0000BB\">parent</span><span style=\"color: #007700\">::</span><span
568
+ style=\"color: #0000BB\">handle</span><span style=\"color: #007700\">(</span><span
569
+ style=\"color: #0000BB\">$request</span><span style=\"color: #007700\">,&nbsp;</span><span
570
+ style=\"color: #0000BB\">$type</span><span style=\"color: #007700\">,&nbsp;</span><span
571
+ style=\"color: #0000BB\">$catch</span><span style=\"color: #007700\">);</span></code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;catch&nbsp;(\\<span
572
+ style=\"color: #0000BB\">Exception&nbsp;$e</span><span style=\"color: #007700\">)&nbsp;{</span></code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
573
+ style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">-&gt;</span><span
574
+ style=\"color: #0000BB\">container</span><span style=\"color: #007700\">-&gt;</span><span
575
+ style=\"color: #0000BB\">leaveScope</span><span style=\"color: #007700\">(</span><span
576
+ style=\"color: #DD0000\">'request'</span><span style=\"color: #007700\">);</span></code></li>\n<li><code></code></li></ol>\n
577
+ \ </div>\n </li>\n <li>\n at\n
578
+ \ <strong>\n <abbr title=\"Symfony\\Bundle\\FrameworkBundle\\HttpKernel\">HttpKernel</abbr>\n
579
+ \ -&gt;handle\n </strong>\n (<em>object</em>(<abbr title=\"Symfony\\Component\\HttpFoundation\\Request\">Request</abbr>),
580
+ '1', <em>true</em>)\n\n <br />\n in <abbr title=\"/Users/schubert/workspace/jirafe/api/app/\">kernel.root_dir</abbr>/bootstrap.php.cache
581
+ at line 547&nbsp;\n <a href=\"#\" onclick=\"toggle('trace_1_10'); switchIcons('icon_1_10_open',
582
+ 'icon_1_10_close'); return false;\"><img class=\"toggle\" id=\"icon_1_10_close\"
583
+ alt=\"-\" src=\"/bundles/framework/images/blue_picto_less.gif\" style=\"visibility:
584
+ hidden\" /><img class=\"toggle\" id=\"icon_1_10_open\" alt=\"+\" src=\"/bundles/framework/images/blue_picto_more.gif\"
585
+ style=\"visibility: display; margin-left: -18px\" /></a> <div id=\"trace_1_10\"
586
+ style=\"display: none\" class=\"trace\">\n <ol start=\"544\"><li><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
587
+ style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">-&gt;</span><span
588
+ style=\"color: #0000BB\">boot</span><span style=\"color: #007700\">();</span></code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</code></li>\n<li><code></code></li>\n<li
589
+ class=\"selected\"><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;<span
590
+ style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">-&gt;</span><span
591
+ style=\"color: #0000BB\">getHttpKernel</span><span style=\"color: #007700\">()-&gt;</span><span
592
+ style=\"color: #0000BB\">handle</span><span style=\"color: #007700\">(</span><span
593
+ style=\"color: #0000BB\">$request</span><span style=\"color: #007700\">,&nbsp;</span><span
594
+ style=\"color: #0000BB\">$type</span><span style=\"color: #007700\">,&nbsp;</span><span
595
+ style=\"color: #0000BB\">$catch</span><span style=\"color: #007700\">);</span></code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;}</code></li>\n<li><code></code></li>\n<li><code>&nbsp;&nbsp;&nbsp;&nbsp;</code></li></ol>\n
596
+ \ </div>\n </li>\n <li>\n at\n
597
+ \ <strong>\n <abbr title=\"Symfony\\Component\\HttpKernel\\Kernel\">Kernel</abbr>\n
598
+ \ -&gt;handle\n </strong>\n (<em>object</em>(<abbr title=\"Symfony\\Component\\HttpFoundation\\Request\">Request</abbr>))\n\n
599
+ \ <br />\n in /Users/schubert/workspace/jirafe/api/web/app_dev.php at
600
+ line 17&nbsp;\n <a href=\"#\" onclick=\"toggle('trace_1_11'); switchIcons('icon_1_11_open',
601
+ 'icon_1_11_close'); return false;\"><img class=\"toggle\" id=\"icon_1_11_close\"
602
+ alt=\"-\" src=\"/bundles/framework/images/blue_picto_less.gif\" style=\"visibility:
603
+ hidden\" /><img class=\"toggle\" id=\"icon_1_11_open\" alt=\"+\" src=\"/bundles/framework/images/blue_picto_more.gif\"
604
+ style=\"visibility: display; margin-left: -18px\" /></a> <div id=\"trace_1_11\"
605
+ style=\"display: none\" class=\"trace\">\n <ol start=\"14\"><li><code>use&nbsp;<span
606
+ style=\"color: #0000BB\">Symfony</span><span style=\"color: #007700\">\\</span><span
607
+ style=\"color: #0000BB\">Component</span><span style=\"color: #007700\">\\</span><span
608
+ style=\"color: #0000BB\">HttpFoundation</span><span style=\"color: #007700\">\\</span><span
609
+ style=\"color: #0000BB\">Request</span><span style=\"color: #007700\">;</span></code></li>\n<li><code></code></li>\n<li><code><span
610
+ style=\"color: #0000BB\">$kernel&nbsp;</span><span style=\"color: #007700\">=&nbsp;new&nbsp;</span><span
611
+ style=\"color: #0000BB\">AppKernel</span><span style=\"color: #007700\">(</span><span
612
+ style=\"color: #DD0000\">'dev'</span><span style=\"color: #007700\">,&nbsp;</span><span
613
+ style=\"color: #0000BB\">true</span><span style=\"color: #007700\">);</span></code></li>\n<li
614
+ class=\"selected\"><code><span style=\"color: #0000BB\">$kernel</span><span
615
+ style=\"color: #007700\">-&gt;</span><span style=\"color: #0000BB\">handle</span><span
616
+ style=\"color: #007700\">(</span><span style=\"color: #0000BB\">Request</span><span
617
+ style=\"color: #007700\">::</span><span style=\"color: #0000BB\">createFromGlobals</span><span
618
+ style=\"color: #007700\">())-&gt;</span><span style=\"color: #0000BB\">send</span><span
619
+ style=\"color: #007700\">();</span></code></li>\n<li><code>\n</code></li></ol>\n
620
+ \ </div>\n </li>\n </ol>\n</div>\n \n <div
621
+ class=\"block\">\n <div class=\"logs clear_fix\">\n <h2>\n
622
+ \ Logs&nbsp;\n <a href=\"#\" onclick=\"toggle('logs');
623
+ switchIcons('icon_logs_open', 'icon_logs_close'); return false;\"><img class=\"toggle\"
624
+ id=\"icon_logs_open\" alt=\"+\" src=\"/bundles/framework/images/blue_picto_more.gif\"
625
+ style=\"visibility: hidden\" /><img class=\"toggle\" id=\"icon_logs_close\"
626
+ alt=\"-\" src=\"/bundles/framework/images/blue_picto_less.gif\" style=\"visibility:
627
+ visible; margin-left: -18px\" /></a></h2>\n <div
628
+ class=\"error_count\">\n <span>\n 1
629
+ error\n </span>\n </div>\n \n
630
+ \ </div>\n\n <div id=\"logs\">\n <ol class=\"traces
631
+ logs\">\n <li>\n Notified event &quot;kernel.request&quot;
632
+ to listener &quot;Symfony\\Component\\HttpKernel\\EventListener\\ProfilerListener::onKernelRequest&quot;.\n
633
+ \ </li>\n <li>\n Notified event &quot;kernel.request&quot;
634
+ to listener &quot;Symfony\\Bundle\\FrameworkBundle\\EventListener\\RouterListener::onEarlyKernelRequest&quot;.\n
635
+ \ </li>\n <li>\n Notified event &quot;kernel.request&quot;
636
+ to listener &quot;Jirafe\\Bundle\\ApiBundle\\Listener\\SessionListener::onKernelRequest&quot;.\n
637
+ \ </li>\n <li>\n Notified event &quot;kernel.request&quot;
638
+ to listener &quot;Symfony\\Component\\Security\\Http\\Firewall::onKernelRequest&quot;.\n
639
+ \ </li>\n <li>\n SELECT\n t.token,\n
640
+ \ a.application_id, a.name AS app_name, a.platform_type, a.platform_version,\n
641
+ \ a.platform_admin_username, a.plugin_version,\n u.user_id,
642
+ u.name AS user_name, u.surname, u.email, u.password, u.salt,\n u.is_confirmed,
643
+ u.is_hosted_user, u.confirmation_token\n FROM tokens AS t\n LEFT
644
+ JOIN applications AS a ON a.application_id = t.application_id\n LEFT
645
+ JOIN users AS u ON u.user_id = t.user_id\n WHERE t.token = :token\n
646
+ \ LIMIT 1 ({&quot;token&quot;:&quot;secret_token&quot;})\n </li>\n
647
+ \ <li>\n Notified event &quot;kernel.request&quot; to
648
+ listener &quot;Symfony\\Bundle\\FrameworkBundle\\EventListener\\RouterListener::onKernelRequest&quot;.\n
649
+ \ </li>\n <li>\n Notified event &quot;kernel.exception&quot;
650
+ to listener &quot;Jirafe\\Bundle\\ApiBundle\\Listener\\ExceptionListener::onKernelException&quot;.\n
651
+ \ </li>\n <li>\n Notified event &quot;kernel.exception&quot;
652
+ to listener &quot;Symfony\\Component\\Security\\Http\\Firewall\\ExceptionListener::onKernelException&quot;.\n
653
+ \ </li>\n <li>\n Notified event &quot;kernel.exception&quot;
654
+ to listener &quot;Symfony\\Component\\HttpKernel\\EventListener\\ProfilerListener::onKernelException&quot;.\n
655
+ \ </li>\n <li>\n Notified event &quot;kernel.exception&quot;
656
+ to listener &quot;Symfony\\Component\\HttpKernel\\EventListener\\ExceptionListener::onKernelException&quot;.\n
657
+ \ </li>\n <li class=\"error\">\n Symfony\\Component\\HttpKernel\\Exception\\MethodNotAllowedHttpException:
658
+ No route found for &quot;POST /v1/applications/resources&quot;: Method Not
659
+ Allowed (Allow: PUT, GET, HEAD) (uncaught exception) at /Users/schubert/workspace/jirafe/api/vendor/symfony/src/Symfony/Bundle/FrameworkBundle/EventListener/RouterListener.php
660
+ line 87\n </li>\n <li>\n Notified event &quot;kernel.request&quot;
661
+ to listener &quot;Symfony\\Component\\HttpKernel\\EventListener\\ProfilerListener::onKernelRequest&quot;.\n
662
+ \ </li>\n <li>\n Notified event &quot;kernel.request&quot;
663
+ to listener &quot;Symfony\\Bundle\\FrameworkBundle\\EventListener\\RouterListener::onEarlyKernelRequest&quot;.\n
664
+ \ </li>\n <li>\n Notified event &quot;kernel.request&quot;
665
+ to listener &quot;Jirafe\\Bundle\\ApiBundle\\Listener\\SessionListener::onKernelRequest&quot;.\n
666
+ \ </li>\n <li>\n Notified event &quot;kernel.request&quot;
667
+ to listener &quot;Symfony\\Component\\Security\\Http\\Firewall::onKernelRequest&quot;.\n
668
+ \ </li>\n <li>\n Notified event &quot;kernel.request&quot;
669
+ to listener &quot;Symfony\\Bundle\\FrameworkBundle\\EventListener\\RouterListener::onKernelRequest&quot;.\n
670
+ \ </li>\n <li>\n Notified event &quot;kernel.request&quot;
671
+ to listener &quot;FOS\\RestBundle\\EventListener\\BodyListener::onKernelRequest&quot;.\n
672
+ \ </li>\n <li>\n Notified event &quot;kernel.request&quot;
673
+ to listener &quot;Jirafe\\Bundle\\ApiBundle\\Listener\\RequestLogListener::onKernelRequest&quot;.\n
674
+ \ </li>\n <li>\n Notified event &quot;kernel.request&quot;
675
+ to listener &quot;Jirafe\\Bundle\\DashboardBundle\\Templating\\Helper\\MenuHelper::onKernelRequest&quot;.\n
676
+ \ </li>\n <li>\n Notified event &quot;kernel.request&quot;
677
+ to listener &quot;Jirafe\\Bundle\\DashboardBundle\\Listener\\ChangeLocaleKernelRequestListener::onKernelRequest&quot;.\n
678
+ \ </li>\n <li>\n Notified event &quot;kernel.request&quot;
679
+ to listener &quot;Jirafe\\Bundle\\DashboardBundle\\Listener\\SaveAppIdInCookieKernelRequestListener::onKernelRequest&quot;.\n
680
+ \ </li>\n <li>\n Notified event &quot;kernel.controller&quot;
681
+ to listener &quot;Symfony\\Bundle\\FrameworkBundle\\DataCollector\\RequestDataCollector::onKernelController&quot;.\n
682
+ \ </li>\n </ol>\n </div>\n\n </div>\n \n \n</div>\n\n<script
683
+ type=\"text/javascript\">//<![CDATA[\n function toggle(id, clazz) {\n var
684
+ el = document.getElementById(id),\n current = el.style.display,\n
685
+ \ i;\n\n if (clazz) {\n var tags = document.getElementsByTagName('*');\n
686
+ \ for (i = tags.length - 1; i >= 0 ; i--) {\n if
687
+ (tags[i].className === clazz) {\n tags[i].style.display
688
+ = 'none';\n }\n }\n }\n\n el.style.display
689
+ = current === 'none' ? 'block' : 'none';\n }\n\n function switchIcons(id1,
690
+ id2) {\n var icon1, icon2, visibility1, visibility2;\n\n icon1
691
+ = document.getElementById(id1);\n icon2 = document.getElementById(id2);\n\n
692
+ \ visibility1 = icon1.style.visibility;\n visibility2 = icon2.style.visibility;\n\n
693
+ \ icon1.style.visibility = visibility2;\n icon2.style.visibility
694
+ = visibility1;\n }\n//]]></script>\n </div>\n \n<div id=\"sfwdt5050d232de0ba\"
695
+ style=\"display: none\"></div><script type=\"text/javascript\">/*<![CDATA[*/
696
+ \ (function () { var wdt, xhr; wdt = document.getElementById('sfwdt5050d232de0ba');
697
+ \ if (window.XMLHttpRequest) { xhr = new XMLHttpRequest();
698
+ \ } else { xhr = new ActiveXObject('Microsoft.XMLHTTP');
699
+ \ } xhr.open('GET', '/_wdt/5050d232de0ba', true); xhr.setRequestHeader('X-Requested-With',
700
+ 'XMLHttpRequest'); xhr.onreadystatechange = function(state) { if
701
+ (4 === xhr.readyState && 200 === xhr.status && -1 !== xhr.responseText.indexOf('sf-toolbarreset'))
702
+ { wdt.innerHTML = xhr.responseText; wdt.style.display
703
+ = 'block'; } }; xhr.send(''); })();/*]]>*/</script>\n</body>\n</html>\n"
704
+ http_version:
705
+ recorded_at: Wed, 12 Sep 2012 18:19:30 GMT
706
+ - request:
707
+ method: post
708
+ uri: http://api.jirafe.dev/v1/applications/1/resources?token=secret_token
709
+ body:
710
+ encoding: US-ASCII
711
+ string: sites[0][description]=My%20Store&sites[0][url]=http%3A%2F%2Fmynewurl.com&sites[0][currency]=EUR&sites[0][timezone]=Europe%2FParis&sites[0][external_id]=1&sites[0][site_id]=1&users[0][email]=user%40example.com&users[0][first_name]=Test&users[0][last_name]=User
712
+ headers: {}
713
+ response:
714
+ status:
715
+ code: 200
716
+ message: OK
717
+ headers:
718
+ Server:
719
+ - nginx/1.2.2
720
+ Content-Type:
721
+ - application/json
722
+ Transfer-Encoding:
723
+ - chunked
724
+ Connection:
725
+ - keep-alive
726
+ Keep-Alive:
727
+ - timeout=10
728
+ X-Powered-By:
729
+ - PHP/5.3.15
730
+ Cache-Control:
731
+ - no-cache
732
+ Date:
733
+ - Wed, 12 Sep 2012 18:55:32 GMT
734
+ X-Debug-Token:
735
+ - 5050daa4b85dd
736
+ body:
737
+ encoding: US-ASCII
738
+ string: ! '{"sites":[{"site_id":1,"app_id":1,"description":"My Store","url":"http:\/\/mynewurl.com","timezone":"Europe\/Paris","currency":"EUR","external_id":"1","store_api_url":null,"store_cart_url":null}],"users":[{"email":"user@example.com","username":null,"first_name":"Test","last_name":"User","mobile_phone":null,"token":"c2785280dffad7835195b7a44829a103"}]}'
739
+ http_version:
740
+ recorded_at: Wed, 12 Sep 2012 18:55:32 GMT
741
+ recorded_with: VCR 2.2.4