jirafe 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.autotest +5 -0
- data/.gitignore +23 -0
- data/.rbenv-version +1 -0
- data/.rspec +2 -0
- data/.travis.yml +11 -0
- data/Gemfile +8 -0
- data/LICENSE +13 -0
- data/README.md +104 -0
- data/Rakefile +27 -0
- data/fixtures/responses/application_get_with_cloud_token.yml +40 -0
- data/fixtures/responses/application_get_with_invalid_token.yml +41 -0
- data/fixtures/responses/application_get_with_master_token.yml +784 -0
- data/fixtures/responses/application_get_with_reporting_token.yml +38 -0
- data/fixtures/responses/application_post_with_app_token.yml +38 -0
- data/fixtures/responses/application_post_with_cloud_token.yml +76 -0
- data/fixtures/responses/application_post_with_invalid_token.yml +79 -0
- data/fixtures/responses/application_post_with_master_token.yml +784 -0
- data/fixtures/responses/application_post_with_master_token_blank_name.yml +79 -0
- data/fixtures/responses/application_post_with_master_token_dupe_name.yml +76 -0
- data/fixtures/responses/application_post_with_master_token_no_name.yml +79 -0
- data/fixtures/responses/application_post_with_reporting_token.yml +76 -0
- data/fixtures/responses/application_put_with_cloud_token.yml +68 -0
- data/fixtures/responses/application_put_with_invalid_token.yml +145 -0
- data/fixtures/responses/application_put_with_master_token.yml +68 -0
- data/fixtures/responses/application_put_with_reporting_token.yml +68 -0
- data/fixtures/responses/application_sites_get_with_master_token.yml +38 -0
- data/fixtures/responses/callback_event_post_event.yml +2000 -0
- data/fixtures/responses/callback_event_post_event_fetch_token.yml +1473 -0
- data/fixtures/responses/jirafe_resource_get_status_url.yml +38 -0
- data/fixtures/responses/jirafe_resource_get_status_url_with_query_param.yml +38 -0
- data/fixtures/responses/site_abandon_rate_get_with_master_token.yml +49 -0
- data/fixtures/responses/site_abandoned_average_ordervalue_get_with_master_token.yml +49 -0
- data/fixtures/responses/site_abandoned_carts_get_with_master_token.yml +49 -0
- data/fixtures/responses/site_abandoned_revenue_get_with_master_token.yml +49 -0
- data/fixtures/responses/site_average_order_value_get_with_master_token.yml +49 -0
- data/fixtures/responses/site_bounces_rate_get_with_master_token.yml +49 -0
- data/fixtures/responses/site_cart_segmentation_get_with_master_token.yml +38 -0
- data/fixtures/responses/site_conversion_rate_get_with_master_token.yml +49 -0
- data/fixtures/responses/site_conversions_get_with_master_token.yml +49 -0
- data/fixtures/responses/site_customers_get_with_master_token.yml +49 -0
- data/fixtures/responses/site_dashboard_get_with_master_token.yml +60 -0
- data/fixtures/responses/site_get_with_master_token.yml +73 -0
- data/fixtures/responses/site_keywords_get_with_master_token.yml +38 -0
- data/fixtures/responses/site_orders_status_get_with_master_token.yml +38 -0
- data/fixtures/responses/site_origins_get_with_master_token.yml +38 -0
- data/fixtures/responses/site_period_data_get_with_master_token.yml +38 -0
- data/fixtures/responses/site_post_with_app_token.yml +727 -0
- data/fixtures/responses/site_post_with_master_token.yml +1569 -0
- data/fixtures/responses/site_products_get_with_master_token.yml +38 -0
- data/fixtures/responses/site_referers_get_with_master_token.yml +38 -0
- data/fixtures/responses/site_revenues_average_get_with_master_token.yml +49 -0
- data/fixtures/responses/site_revenues_get_with_master_token.yml +49 -0
- data/fixtures/responses/site_segments_carts_get_with_admin_token.yml +108 -0
- data/fixtures/responses/site_segments_sales_get_with_admin_token.yml +143 -0
- data/fixtures/responses/site_total_carts_get_with_master_token.yml +49 -0
- data/fixtures/responses/site_translations__get_with_master_token.yml +155 -0
- data/fixtures/responses/site_translations_de_get_with_master_token.yml +156 -0
- data/fixtures/responses/site_translations_es_get_with_master_token.yml +155 -0
- data/fixtures/responses/site_translations_fr_get_with_master_token.yml +178 -0
- data/fixtures/responses/site_translations_german_get_with_master_token.yml +156 -0
- data/fixtures/responses/site_translations_get_with_master_token.yml +865 -0
- data/fixtures/responses/site_translations_xx_get_with_master_token.yml +155 -0
- data/fixtures/responses/site_visits_get_with_master_token.yml +49 -0
- data/fixtures/responses/status_get.yml +38 -0
- data/fixtures/responses/status_get_500.yml +31 -0
- data/fixtures/responses/test.yml +7364 -0
- data/fixtures/responses/version_get.yml +38 -0
- data/jirafe.gemspec +29 -0
- data/lib/jirafe.rb +64 -0
- data/lib/jirafe/callback/event.rb +57 -0
- data/lib/jirafe/callback/events/order.rb +48 -0
- data/lib/jirafe/callback/events/refund.rb +32 -0
- data/lib/jirafe/callback/jirafe_callback.rb +50 -0
- data/lib/jirafe/configuration.rb +47 -0
- data/lib/jirafe/error.rb +57 -0
- data/lib/jirafe/resource/application.rb +18 -0
- data/lib/jirafe/resource/jirafe_resource.rb +188 -0
- data/lib/jirafe/resource/site.rb +21 -0
- data/lib/jirafe/resource/sites/abandon_rate.rb +16 -0
- data/lib/jirafe/resource/sites/abandoned_average_order_value.rb +17 -0
- data/lib/jirafe/resource/sites/abandoned_carts.rb +16 -0
- data/lib/jirafe/resource/sites/abandoned_revenue.rb +16 -0
- data/lib/jirafe/resource/sites/average_order_value.rb +16 -0
- data/lib/jirafe/resource/sites/bounces_rate.rb +16 -0
- data/lib/jirafe/resource/sites/cart_segmentation.rb +11 -0
- data/lib/jirafe/resource/sites/conversion_rate.rb +16 -0
- data/lib/jirafe/resource/sites/conversions.rb +17 -0
- data/lib/jirafe/resource/sites/customers.rb +16 -0
- data/lib/jirafe/resource/sites/dashboard.rb +27 -0
- data/lib/jirafe/resource/sites/keywords.rb +11 -0
- data/lib/jirafe/resource/sites/orders_status.rb +15 -0
- data/lib/jirafe/resource/sites/origins.rb +11 -0
- data/lib/jirafe/resource/sites/period_data.rb +16 -0
- data/lib/jirafe/resource/sites/products.rb +12 -0
- data/lib/jirafe/resource/sites/referers.rb +12 -0
- data/lib/jirafe/resource/sites/revenues.rb +16 -0
- data/lib/jirafe/resource/sites/revenues_average.rb +16 -0
- data/lib/jirafe/resource/sites/segments_carts.rb +14 -0
- data/lib/jirafe/resource/sites/segments_sales.rb +14 -0
- data/lib/jirafe/resource/sites/total_carts.rb +16 -0
- data/lib/jirafe/resource/sites/translations.rb +18 -0
- data/lib/jirafe/resource/sites/visitors_interest.rb +14 -0
- data/lib/jirafe/resource/sites/visits.rb +16 -0
- data/lib/jirafe/resource/status.rb +19 -0
- data/lib/jirafe/resource/sync_service.rb +1 -0
- data/lib/jirafe/resource/time_series.rb +29 -0
- data/lib/jirafe/resource/user.rb +32 -0
- data/lib/jirafe/resource/version.rb +9 -0
- data/spec/jirafe/callback/event_spec.rb +85 -0
- data/spec/jirafe/configuration_spec.rb +150 -0
- data/spec/jirafe/jirafe_spec.rb +23 -0
- data/spec/jirafe/resource/application_spec.rb +220 -0
- data/spec/jirafe/resource/jirafe_resource_spec.rb +188 -0
- data/spec/jirafe/resource/site_spec.rb +61 -0
- data/spec/jirafe/resource/sites/abandon_rate_spec.rb +11 -0
- data/spec/jirafe/resource/sites/abandoned_average_order_value_spec.rb +11 -0
- data/spec/jirafe/resource/sites/abandoned_carts_spec.rb +11 -0
- data/spec/jirafe/resource/sites/abandoned_revenue_spec.rb +11 -0
- data/spec/jirafe/resource/sites/average_order_value_spec.rb +11 -0
- data/spec/jirafe/resource/sites/bounces_rate_spec.rb +11 -0
- data/spec/jirafe/resource/sites/cart_segmentation_spec.rb +11 -0
- data/spec/jirafe/resource/sites/conversion_rate_spec.rb +11 -0
- data/spec/jirafe/resource/sites/conversions_spec.rb +11 -0
- data/spec/jirafe/resource/sites/customers_spec.rb +11 -0
- data/spec/jirafe/resource/sites/dashboard_spec.rb +29 -0
- data/spec/jirafe/resource/sites/keywords_spec.rb +11 -0
- data/spec/jirafe/resource/sites/orders_status_spec.rb +34 -0
- data/spec/jirafe/resource/sites/origins_spec.rb +11 -0
- data/spec/jirafe/resource/sites/period_data_spec.rb +22 -0
- data/spec/jirafe/resource/sites/products_spec.rb +11 -0
- data/spec/jirafe/resource/sites/referers_spec.rb +11 -0
- data/spec/jirafe/resource/sites/revenues_average_spec.rb +11 -0
- data/spec/jirafe/resource/sites/revenues_spec.rb +11 -0
- data/spec/jirafe/resource/sites/segments_carts_spec.rb +29 -0
- data/spec/jirafe/resource/sites/segments_sales_spec.rb +29 -0
- data/spec/jirafe/resource/sites/total_carts_spec.rb +11 -0
- data/spec/jirafe/resource/sites/translations_spec.rb +76 -0
- data/spec/jirafe/resource/sites/visitors_interest_spec.rb +8 -0
- data/spec/jirafe/resource/sites/visits_spec.rb +11 -0
- data/spec/jirafe/resource/status_spec.rb +31 -0
- data/spec/jirafe/resource/version_spec.rb +15 -0
- data/spec/spec_helper.rb +58 -0
- data/spec/support/callback_server.rb +11 -0
- data/spec/support/response_helper.rb +31 -0
- data/spec/support/shared_examples/empty_resource.rb +17 -0
- data/spec/support/shared_examples/time_series.rb +31 -0
- data/spec/test_configuration.rb +15 -0
- metadata +360 -0
data/.autotest
ADDED
data/.gitignore
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
.bundle
|
4
|
+
.config
|
5
|
+
coverage
|
6
|
+
InstalledFiles
|
7
|
+
lib/bundler/man
|
8
|
+
pkg
|
9
|
+
rdoc
|
10
|
+
spec/reports
|
11
|
+
test/tmp
|
12
|
+
test/version_tmp
|
13
|
+
tmp
|
14
|
+
|
15
|
+
Gemfile.lock
|
16
|
+
|
17
|
+
tmp/
|
18
|
+
cookbooks/
|
19
|
+
|
20
|
+
# YARD artifacts
|
21
|
+
.yardoc
|
22
|
+
_yardoc
|
23
|
+
doc/
|
data/.rbenv-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.9.3-p125
|
data/.rspec
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
Copyright 2012, Jirafe, Inc.
|
2
|
+
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
you may not use this file except in compliance with the License.
|
5
|
+
You may obtain a copy of the License at
|
6
|
+
|
7
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
|
9
|
+
Unless required by applicable law or agreed to in writing, software
|
10
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
See the License for the specific language governing permissions and
|
13
|
+
limitations under the License.
|
data/README.md
ADDED
@@ -0,0 +1,104 @@
|
|
1
|
+
# Jirafe Analytics Ruby Client
|
2
|
+
|
3
|
+
This is the official [Jirafe](http://jirafe.com/) rubygem.
|
4
|
+
It fully wraps Jirafe's [API](http://api.jirafe.com).
|
5
|
+
|
6
|
+
This client library can be used to add Jirafe analytics to your eCommerce software.
|
7
|
+
|
8
|
+
## Installation
|
9
|
+
|
10
|
+
Note: If you are using ruby 1.8.x. You will also need to install a JSON library.
|
11
|
+
|
12
|
+
```bash
|
13
|
+
gem install jirafe
|
14
|
+
```
|
15
|
+
|
16
|
+
Or, add the jirafe gem to your project's [Gemfile](http://gembundler.com/)
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
gem "jirafe"
|
20
|
+
```
|
21
|
+
|
22
|
+
Then from your project's root, run:
|
23
|
+
|
24
|
+
```bash
|
25
|
+
bundle
|
26
|
+
```
|
27
|
+
|
28
|
+
If you're using Jirafe in a rails app, drop this into `config/initializers/jirafe.rb`:
|
29
|
+
|
30
|
+
```ruby
|
31
|
+
Jirafe.configure do |config|
|
32
|
+
config.api_key = '12345abcde' # required
|
33
|
+
config.logger = Logger.new('/dev/null') # defaults to Rails.logger or Logger.new(STDOUT).
|
34
|
+
# Set to Logger.new('/dev/null') to disable logging.
|
35
|
+
end
|
36
|
+
```
|
37
|
+
|
38
|
+
## Use
|
39
|
+
|
40
|
+
Each resource in the Jirafe API is represented by an object e.g:
|
41
|
+
* Jirafe::Resource::Application
|
42
|
+
* Jirafe::Resource::Site
|
43
|
+
* Jirafe::Resource::Sites::Products
|
44
|
+
|
45
|
+
To register a new application with Jirafe:
|
46
|
+
|
47
|
+
```ruby
|
48
|
+
application = Jirafe::Resource::Application.create!(:name => "My New Account")
|
49
|
+
```
|
50
|
+
|
51
|
+
To get all sites associated with this application:
|
52
|
+
|
53
|
+
```ruby
|
54
|
+
application.sites
|
55
|
+
```
|
56
|
+
|
57
|
+
## Development
|
58
|
+
|
59
|
+
Specs
|
60
|
+
-----
|
61
|
+
|
62
|
+
* Source is hosted on [Github](http://github.com/jirafe/jirafe-ruby-client/)
|
63
|
+
* [Developer Documentation](http://dev.jirafe.com/)
|
64
|
+
|
65
|
+
The Jirafe gem uses rspec 2 for tests. To run the test suite, just type `rake` or `bundle exec rake spec`
|
66
|
+
in the gem's base directory.
|
67
|
+
|
68
|
+
For troubleshooting you can set the following environment variables:
|
69
|
+
|
70
|
+
```bash
|
71
|
+
DEBUG_JIRAFE=true # prints out httparty details
|
72
|
+
CALLTHROUGH=true # Ignore VCR fixtures and call through to underlying service. For internal development only.
|
73
|
+
```
|
74
|
+
|
75
|
+
## Contributing
|
76
|
+
|
77
|
+
1. Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
|
78
|
+
1. Check out the [issue tracker](http://github.com/jirafe/jirafe-ruby-client/issues) to make sure someone already hasn't requested it and/or contributed it.
|
79
|
+
1. Fork the project.
|
80
|
+
1. Start a feature/bugfix branch
|
81
|
+
1. Commit and push until you are happy with your contribution. Make sure to add tests so the change does not cause a regression.
|
82
|
+
1. Send a pull request.
|
83
|
+
|
84
|
+
## Notes
|
85
|
+
|
86
|
+
Test on Ruby 1.9.3-p194 and Ruby 1.8.7-p370
|
87
|
+
|
88
|
+
## License
|
89
|
+
|
90
|
+
Copyright 2012, Jirafe, Inc.
|
91
|
+
|
92
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
93
|
+
you may not use this file except in compliance with the License.
|
94
|
+
You may obtain a copy of the License at
|
95
|
+
|
96
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
97
|
+
|
98
|
+
Unless required by applicable law or agreed to in writing, software
|
99
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
100
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
101
|
+
See the License for the specific language governing permissions and
|
102
|
+
limitations under the License.
|
103
|
+
|
104
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
require 'rake'
|
2
|
+
require 'rspec/core'
|
3
|
+
require 'rspec/core/rake_task'
|
4
|
+
|
5
|
+
require 'bundler'
|
6
|
+
Bundler::GemHelper.install_tasks
|
7
|
+
|
8
|
+
task :default => [:spec, :travis_lint]
|
9
|
+
|
10
|
+
desc "Check .travis.yml for correctness"
|
11
|
+
task :travis_lint do
|
12
|
+
sh "travis-lint"
|
13
|
+
end
|
14
|
+
|
15
|
+
desc "Run all specs in spec directory (excluding plugin specs)"
|
16
|
+
RSpec::Core::RakeTask.new do |t|
|
17
|
+
t.pattern = FileList['spec/**/*_spec.rb']
|
18
|
+
end
|
19
|
+
|
20
|
+
task :console do
|
21
|
+
require File.join(File.dirname(__FILE__), "lib/jirafe")
|
22
|
+
require File.join(File.dirname(__FILE__), "spec/test_configuration")
|
23
|
+
require "ruby-debug"
|
24
|
+
jirafe_test_configuration
|
25
|
+
debugger
|
26
|
+
puts "Type irb to begin"
|
27
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.jirafe.dev/v1/applications/1?token=user_cloud_app_token
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 403
|
13
|
+
message: Forbidden
|
14
|
+
headers:
|
15
|
+
Server:
|
16
|
+
- nginx/1.2.2
|
17
|
+
Content-Type:
|
18
|
+
- text/html; charset=UTF-8
|
19
|
+
Transfer-Encoding:
|
20
|
+
- chunked
|
21
|
+
Connection:
|
22
|
+
- keep-alive
|
23
|
+
Keep-Alive:
|
24
|
+
- timeout=10
|
25
|
+
X-Powered-By:
|
26
|
+
- PHP/5.3.15
|
27
|
+
Cache-Control:
|
28
|
+
- no-cache
|
29
|
+
Date:
|
30
|
+
- Wed, 05 Sep 2012 19:49:43 GMT
|
31
|
+
X-Debug-Token:
|
32
|
+
- 5047acd7158bb
|
33
|
+
body:
|
34
|
+
encoding: US-ASCII
|
35
|
+
string: ! '{"error":{"code":403,"message":"Access denied."}}
|
36
|
+
|
37
|
+
'
|
38
|
+
http_version:
|
39
|
+
recorded_at: Wed, 05 Sep 2012 19:49:43 GMT
|
40
|
+
recorded_with: VCR 2.2.4
|
@@ -0,0 +1,41 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.jirafe.dev/v1/applications/1?token=__invalid_token__
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 401
|
13
|
+
message: Unauthorized
|
14
|
+
headers:
|
15
|
+
Server:
|
16
|
+
- nginx/1.2.2
|
17
|
+
Content-Type:
|
18
|
+
- text/html; charset=UTF-8
|
19
|
+
Transfer-Encoding:
|
20
|
+
- chunked
|
21
|
+
Connection:
|
22
|
+
- keep-alive
|
23
|
+
Keep-Alive:
|
24
|
+
- timeout=10
|
25
|
+
X-Powered-By:
|
26
|
+
- PHP/5.3.15
|
27
|
+
Cache-Control:
|
28
|
+
- no-cache
|
29
|
+
Date:
|
30
|
+
- Wed, 05 Sep 2012 19:49:43 GMT
|
31
|
+
X-Debug-Token:
|
32
|
+
- 5047acd7266b9
|
33
|
+
body:
|
34
|
+
encoding: US-ASCII
|
35
|
+
string: ! '{"error":{"code":401,"message":"Jirafe API authentication failed
|
36
|
+
using token '__invalid_token__'."}}
|
37
|
+
|
38
|
+
'
|
39
|
+
http_version:
|
40
|
+
recorded_at: Wed, 05 Sep 2012 19:49:43 GMT
|
41
|
+
recorded_with: VCR 2.2.4
|
@@ -0,0 +1,784 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.jirafe.dev/v1/applications?token=user_master_token
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
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, 05 Sep 2012 16:00:21 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
|
+
- POST
|
31
|
+
Cache-Control:
|
32
|
+
- no-cache
|
33
|
+
X-Debug-Token:
|
34
|
+
- 504777154d8b3
|
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 "GET /v1/applications":
|
40
|
+
Method Not Allowed (Allow: POST) (405 Method Not Allowed)\n</title>\n <link
|
41
|
+
href=\"/bundles/framework/css/exception_layout.css\" rel=\"stylesheet\" type=\"text/css\"
|
42
|
+
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 "GET /v1/applications": Method Not Allowed (Allow: POST)\n
|
65
|
+
\ </h1>\n\n <div>\n <strong>405</strong>
|
66
|
+
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');\">»</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 "GET /v1/applications": Method Not Allowed (Allow:
|
80
|
+
POST) \n <a href=\"#\" onclick=\"toggle('traces_0', 'traces');
|
81
|
+
switchIcons('icon_traces_0_open', 'icon_traces_0_close'); return false;\"><img
|
82
|
+
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 \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> } catch (<span
|
94
|
+
style=\"color: #0000BB\">MethodNotAllowedException $e</span><span style=\"color:
|
95
|
+
#007700\">) {</span></code></li>\n<li><code> <span
|
96
|
+
style=\"color: #0000BB\">$message </span><span style=\"color: #007700\">= </span><span
|
97
|
+
style=\"color: #0000BB\">sprintf</span><span style=\"color: #007700\">(</span><span
|
98
|
+
style=\"color: #DD0000\">'No route found for \"%s %s\": Method Not Allowed (Allow: %s)'</span><span
|
99
|
+
style=\"color: #007700\">, </span><span style=\"color: #0000BB\">$request</span><span
|
100
|
+
style=\"color: #007700\">-></span><span style=\"color: #0000BB\">getMethod</span><span
|
101
|
+
style=\"color: #007700\">(), </span><span style=\"color: #0000BB\">$request</span><span
|
102
|
+
style=\"color: #007700\">-></span><span style=\"color: #0000BB\">getPathInfo</span><span
|
103
|
+
style=\"color: #007700\">(), </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\">', '</span><span
|
106
|
+
style=\"color: #007700\">, </span><span style=\"color: #0000BB\">$e</span><span
|
107
|
+
style=\"color: #007700\">-></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> throw new <span
|
110
|
+
style=\"color: #0000BB\">MethodNotAllowedHttpException</span><span style=\"color:
|
111
|
+
#007700\">(</span><span style=\"color: #0000BB\">$e</span><span style=\"color:
|
112
|
+
#007700\">-></span><span style=\"color: #0000BB\">getAllowedMethods</span><span
|
113
|
+
style=\"color: #007700\">(), </span><span style=\"color: #0000BB\">$message</span><span
|
114
|
+
style=\"color: #007700\">, </span><span style=\"color: #0000BB\">$e</span><span
|
115
|
+
style=\"color: #007700\">);</span></code></li>\n<li><code> }</code></li>\n<li><code></code></li>\n<li><code> if (<span
|
116
|
+
style=\"color: #0000BB\">HttpKernelInterface</span><span style=\"color: #007700\">::</span><span
|
117
|
+
style=\"color: #0000BB\">MASTER_REQUEST </span><span style=\"color: #007700\">=== </span><span
|
118
|
+
style=\"color: #0000BB\">$event</span><span style=\"color: #007700\">-></span><span
|
119
|
+
style=\"color: #0000BB\">getRequestType</span><span style=\"color: #007700\">()) {</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
|
+
\ ->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 \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> <span
|
134
|
+
style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">-></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\">]] = </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> <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\">, </span><span
|
144
|
+
style=\"color: #0000BB\">$event</span><span style=\"color: #007700\">);</span></code></li>\n<li><code></code></li>\n<li><code> if (<span
|
145
|
+
style=\"color: #0000BB\">$event</span><span style=\"color: #007700\">-></span><span
|
146
|
+
style=\"color: #0000BB\">isPropagationStopped</span><span style=\"color: #007700\">()) {</span></code></li>\n<li><code> if (<span
|
147
|
+
style=\"color: #0000BB\">null </span><span style=\"color: #007700\">!== </span><span
|
148
|
+
style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">-></span><span
|
149
|
+
style=\"color: #0000BB\">logger</span><span style=\"color: #007700\">) {</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
|
+
\ ->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 \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> <span
|
171
|
+
style=\"color: #0000BB\">$event </span><span style=\"color: #007700\">= new </span><span
|
172
|
+
style=\"color: #0000BB\">Event</span><span style=\"color: #007700\">();</span></code></li>\n<li><code> }</code></li>\n<li><code></code></li>\n<li
|
173
|
+
class=\"selected\"><code> <span
|
174
|
+
style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">-></span><span
|
175
|
+
style=\"color: #0000BB\">doDispatch</span><span style=\"color: #007700\">(</span><span
|
176
|
+
style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">-></span><span
|
177
|
+
style=\"color: #0000BB\">getListeners</span><span style=\"color: #007700\">(</span><span
|
178
|
+
style=\"color: #0000BB\">$eventName</span><span style=\"color: #007700\">), </span><span
|
179
|
+
style=\"color: #0000BB\">$eventName</span><span style=\"color: #007700\">, </span><span
|
180
|
+
style=\"color: #0000BB\">$event</span><span style=\"color: #007700\">);</span></code></li>\n<li><code> }</code></li>\n<li><code></code></li>\n<li><code> <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
|
+
\ ->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 \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> {</code></li>\n<li><code> <span
|
193
|
+
style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">-></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> <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\">, </span><span
|
200
|
+
style=\"color: #0000BB\">$event</span><span style=\"color: #007700\">);</span></code></li>\n<li><code> }</code></li>\n<li><code></code></li>\n<li><code> <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
|
+
\ ->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 \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> {</code></li>\n<li><code> <span
|
213
|
+
style=\"color: #FF8000\">// request</span></code></li>\n<li><code> <span
|
214
|
+
style=\"color: #0000BB\">$event </span><span style=\"color: #007700\">= new </span><span
|
215
|
+
style=\"color: #0000BB\">GetResponseEvent</span><span style=\"color: #007700\">(</span><span
|
216
|
+
style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">, </span><span
|
217
|
+
style=\"color: #0000BB\">$request</span><span style=\"color: #007700\">, </span><span
|
218
|
+
style=\"color: #0000BB\">$type</span><span style=\"color: #007700\">);</span></code></li>\n<li
|
219
|
+
class=\"selected\"><code> <span
|
220
|
+
style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">-></span><span
|
221
|
+
style=\"color: #0000BB\">dispatcher</span><span style=\"color: #007700\">-></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\">, </span><span
|
225
|
+
style=\"color: #0000BB\">$event</span><span style=\"color: #007700\">);</span></code></li>\n<li><code></code></li>\n<li><code> if (<span
|
226
|
+
style=\"color: #0000BB\">$event</span><span style=\"color: #007700\">-></span><span
|
227
|
+
style=\"color: #0000BB\">hasResponse</span><span style=\"color: #007700\">()) {</span></code></li>\n<li><code> return <span
|
228
|
+
style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">-></span><span
|
229
|
+
style=\"color: #0000BB\">filterResponse</span><span style=\"color: #007700\">(</span><span
|
230
|
+
style=\"color: #0000BB\">$event</span><span style=\"color: #007700\">-></span><span
|
231
|
+
style=\"color: #0000BB\">getResponse</span><span style=\"color: #007700\">(), </span><span
|
232
|
+
style=\"color: #0000BB\">$request</span><span style=\"color: #007700\">, </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
|
+
\ ->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 \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> <span
|
244
|
+
style=\"color: #007700\">public function </span><span style=\"color:
|
245
|
+
#0000BB\">handle</span><span style=\"color: #007700\">(</span><span style=\"color:
|
246
|
+
#0000BB\">Request $request</span><span style=\"color: #007700\">, </span><span
|
247
|
+
style=\"color: #0000BB\">$type </span><span style=\"color: #007700\">= </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\">, </span><span
|
250
|
+
style=\"color: #0000BB\">$catch </span><span style=\"color: #007700\">= </span><span
|
251
|
+
style=\"color: #0000BB\">true</span><span style=\"color: #007700\">)</span></code></li>\n<li><code> {</code></li>\n<li><code> try {</code></li>\n<li
|
252
|
+
class=\"selected\"><code> return <span
|
253
|
+
style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">-></span><span
|
254
|
+
style=\"color: #0000BB\">handleRaw</span><span style=\"color: #007700\">(</span><span
|
255
|
+
style=\"color: #0000BB\">$request</span><span style=\"color: #007700\">, </span><span
|
256
|
+
style=\"color: #0000BB\">$type</span><span style=\"color: #007700\">);</span></code></li>\n<li><code> } catch (\\<span
|
257
|
+
style=\"color: #0000BB\">Exception $e</span><span style=\"color: #007700\">) {</span></code></li>\n<li><code> if (<span
|
258
|
+
style=\"color: #0000BB\">false </span><span style=\"color: #007700\">=== </span><span
|
259
|
+
style=\"color: #0000BB\">$catch</span><span style=\"color: #007700\">) {</span></code></li>\n<li><code> throw <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
|
+
\ ->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 \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> <span
|
271
|
+
style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">-></span><span
|
272
|
+
style=\"color: #0000BB\">container</span><span style=\"color: #007700\">-></span><span
|
273
|
+
style=\"color: #0000BB\">set</span><span style=\"color: #007700\">(</span><span
|
274
|
+
style=\"color: #DD0000\">'request'</span><span style=\"color: #007700\">, </span><span
|
275
|
+
style=\"color: #0000BB\">$request</span><span style=\"color: #007700\">, </span><span
|
276
|
+
style=\"color: #DD0000\">'request'</span><span style=\"color: #007700\">);</span></code></li>\n<li><code></code></li>\n<li><code> try {</code></li>\n<li
|
277
|
+
class=\"selected\"><code> <span
|
278
|
+
style=\"color: #0000BB\">$response </span><span style=\"color: #007700\">= </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\">, </span><span
|
282
|
+
style=\"color: #0000BB\">$type</span><span style=\"color: #007700\">, </span><span
|
283
|
+
style=\"color: #0000BB\">$catch</span><span style=\"color: #007700\">);</span></code></li>\n<li><code> } catch (\\<span
|
284
|
+
style=\"color: #0000BB\">Exception $e</span><span style=\"color: #007700\">) {</span></code></li>\n<li><code> <span
|
285
|
+
style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">-></span><span
|
286
|
+
style=\"color: #0000BB\">container</span><span style=\"color: #007700\">-></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
|
+
\ ->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 \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> <span
|
299
|
+
style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">-></span><span
|
300
|
+
style=\"color: #0000BB\">boot</span><span style=\"color: #007700\">();</span></code></li>\n<li><code> }</code></li>\n<li><code></code></li>\n<li
|
301
|
+
class=\"selected\"><code> return <span
|
302
|
+
style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">-></span><span
|
303
|
+
style=\"color: #0000BB\">getHttpKernel</span><span style=\"color: #007700\">()-></span><span
|
304
|
+
style=\"color: #0000BB\">handle</span><span style=\"color: #007700\">(</span><span
|
305
|
+
style=\"color: #0000BB\">$request</span><span style=\"color: #007700\">, </span><span
|
306
|
+
style=\"color: #0000BB\">$type</span><span style=\"color: #007700\">, </span><span
|
307
|
+
style=\"color: #0000BB\">$catch</span><span style=\"color: #007700\">);</span></code></li>\n<li><code> }</code></li>\n<li><code></code></li>\n<li><code> </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
|
+
\ ->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 \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 <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 </span><span style=\"color: #007700\">= new </span><span
|
323
|
+
style=\"color: #0000BB\">AppKernel</span><span style=\"color: #007700\">(</span><span
|
324
|
+
style=\"color: #DD0000\">'dev'</span><span style=\"color: #007700\">, </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\">-></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\">())-></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
|
+
\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 \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> }</code></li>\n<li><code></code></li>\n<li
|
349
|
+
class=\"selected\"><code> throw <span
|
350
|
+
style=\"color: #0000BB\">0 </span><span style=\"color: #007700\">< </span><span
|
351
|
+
style=\"color: #0000BB\">count</span><span style=\"color: #007700\">(</span><span
|
352
|
+
style=\"color: #0000BB\">$allow</span><span style=\"color: #007700\">) ? new </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\">)) : new </span><span style=\"color:
|
357
|
+
#0000BB\">ResourceNotFoundException</span><span style=\"color: #007700\">();</span></code></li>\n<li><code> }</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
|
+
\ ->match\n </strong>\n ('/v1/applications')\n\n <br />\n
|
361
|
+
\ in /Users/schubert/workspace/jirafe/api/vendor/symfony/src/Symfony/Component/Routing/Router.php
|
362
|
+
at line 195 \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> */</code></li>\n<li><code> <span
|
368
|
+
style=\"color: #007700\">public function </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> {</code></li>\n<li
|
371
|
+
class=\"selected\"><code> return <span
|
372
|
+
style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">-></span><span
|
373
|
+
style=\"color: #0000BB\">getMatcher</span><span style=\"color: #007700\">()-></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> }</code></li>\n<li><code></code></li>\n<li><code> <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 ->match\n
|
379
|
+
\ </strong>\n ('/v1/applications')\n\n <br />\n in /Users/schubert/workspace/jirafe/api/vendor/symfony/src/Symfony/Bundle/FrameworkBundle/EventListener/RouterListener.php
|
380
|
+
at line 73 \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> <span
|
386
|
+
style=\"color: #FF8000\">// add attributes based on the path info (routing)</span></code></li>\n<li><code> <span
|
387
|
+
style=\"color: #007700\">try {</span></code></li>\n<li class=\"selected\"><code> <span
|
388
|
+
style=\"color: #0000BB\">$parameters </span><span style=\"color: #007700\">= </span><span
|
389
|
+
style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">-></span><span
|
390
|
+
style=\"color: #0000BB\">router</span><span style=\"color: #007700\">-></span><span
|
391
|
+
style=\"color: #0000BB\">match</span><span style=\"color: #007700\">(</span><span
|
392
|
+
style=\"color: #0000BB\">$request</span><span style=\"color: #007700\">-></span><span
|
393
|
+
style=\"color: #0000BB\">getPathInfo</span><span style=\"color: #007700\">());</span></code></li>\n<li><code></code></li>\n<li><code> if (<span
|
394
|
+
style=\"color: #0000BB\">null </span><span style=\"color: #007700\">!== </span><span
|
395
|
+
style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">-></span><span
|
396
|
+
style=\"color: #0000BB\">logger</span><span style=\"color: #007700\">) {</span></code></li>\n<li><code> <span
|
397
|
+
style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">-></span><span
|
398
|
+
style=\"color: #0000BB\">logger</span><span style=\"color: #007700\">-></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 route \"%s\" (parameters: %s)'</span><span
|
402
|
+
style=\"color: #007700\">, </span><span style=\"color: #0000BB\">$parameters</span><span
|
403
|
+
style=\"color: #007700\">[</span><span style=\"color: #DD0000\">'_route'</span><span
|
404
|
+
style=\"color: #007700\">], </span><span style=\"color: #0000BB\">$this</span><span
|
405
|
+
style=\"color: #007700\">-></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
|
+
\ ->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 \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> <span
|
422
|
+
style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">-></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\">]] = </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> <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\">, </span><span
|
432
|
+
style=\"color: #0000BB\">$event</span><span style=\"color: #007700\">);</span></code></li>\n<li><code></code></li>\n<li><code> if (<span
|
433
|
+
style=\"color: #0000BB\">$event</span><span style=\"color: #007700\">-></span><span
|
434
|
+
style=\"color: #0000BB\">isPropagationStopped</span><span style=\"color: #007700\">()) {</span></code></li>\n<li><code> if (<span
|
435
|
+
style=\"color: #0000BB\">null </span><span style=\"color: #007700\">!== </span><span
|
436
|
+
style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">-></span><span
|
437
|
+
style=\"color: #0000BB\">logger</span><span style=\"color: #007700\">) {</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
|
+
\ ->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 \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> <span
|
459
|
+
style=\"color: #0000BB\">$event </span><span style=\"color: #007700\">= new </span><span
|
460
|
+
style=\"color: #0000BB\">Event</span><span style=\"color: #007700\">();</span></code></li>\n<li><code> }</code></li>\n<li><code></code></li>\n<li
|
461
|
+
class=\"selected\"><code> <span
|
462
|
+
style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">-></span><span
|
463
|
+
style=\"color: #0000BB\">doDispatch</span><span style=\"color: #007700\">(</span><span
|
464
|
+
style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">-></span><span
|
465
|
+
style=\"color: #0000BB\">getListeners</span><span style=\"color: #007700\">(</span><span
|
466
|
+
style=\"color: #0000BB\">$eventName</span><span style=\"color: #007700\">), </span><span
|
467
|
+
style=\"color: #0000BB\">$eventName</span><span style=\"color: #007700\">, </span><span
|
468
|
+
style=\"color: #0000BB\">$event</span><span style=\"color: #007700\">);</span></code></li>\n<li><code> }</code></li>\n<li><code></code></li>\n<li><code> <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
|
+
\ ->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 \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> {</code></li>\n<li><code> <span
|
481
|
+
style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">-></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> <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\">, </span><span
|
488
|
+
style=\"color: #0000BB\">$event</span><span style=\"color: #007700\">);</span></code></li>\n<li><code> }</code></li>\n<li><code></code></li>\n<li><code> <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
|
+
\ ->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 \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> {</code></li>\n<li><code> <span
|
501
|
+
style=\"color: #FF8000\">// request</span></code></li>\n<li><code> <span
|
502
|
+
style=\"color: #0000BB\">$event </span><span style=\"color: #007700\">= new </span><span
|
503
|
+
style=\"color: #0000BB\">GetResponseEvent</span><span style=\"color: #007700\">(</span><span
|
504
|
+
style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">, </span><span
|
505
|
+
style=\"color: #0000BB\">$request</span><span style=\"color: #007700\">, </span><span
|
506
|
+
style=\"color: #0000BB\">$type</span><span style=\"color: #007700\">);</span></code></li>\n<li
|
507
|
+
class=\"selected\"><code> <span
|
508
|
+
style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">-></span><span
|
509
|
+
style=\"color: #0000BB\">dispatcher</span><span style=\"color: #007700\">-></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\">, </span><span
|
513
|
+
style=\"color: #0000BB\">$event</span><span style=\"color: #007700\">);</span></code></li>\n<li><code></code></li>\n<li><code> if (<span
|
514
|
+
style=\"color: #0000BB\">$event</span><span style=\"color: #007700\">-></span><span
|
515
|
+
style=\"color: #0000BB\">hasResponse</span><span style=\"color: #007700\">()) {</span></code></li>\n<li><code> return <span
|
516
|
+
style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">-></span><span
|
517
|
+
style=\"color: #0000BB\">filterResponse</span><span style=\"color: #007700\">(</span><span
|
518
|
+
style=\"color: #0000BB\">$event</span><span style=\"color: #007700\">-></span><span
|
519
|
+
style=\"color: #0000BB\">getResponse</span><span style=\"color: #007700\">(), </span><span
|
520
|
+
style=\"color: #0000BB\">$request</span><span style=\"color: #007700\">, </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
|
+
\ ->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 \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> <span
|
532
|
+
style=\"color: #007700\">public function </span><span style=\"color:
|
533
|
+
#0000BB\">handle</span><span style=\"color: #007700\">(</span><span style=\"color:
|
534
|
+
#0000BB\">Request $request</span><span style=\"color: #007700\">, </span><span
|
535
|
+
style=\"color: #0000BB\">$type </span><span style=\"color: #007700\">= </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\">, </span><span
|
538
|
+
style=\"color: #0000BB\">$catch </span><span style=\"color: #007700\">= </span><span
|
539
|
+
style=\"color: #0000BB\">true</span><span style=\"color: #007700\">)</span></code></li>\n<li><code> {</code></li>\n<li><code> try {</code></li>\n<li
|
540
|
+
class=\"selected\"><code> return <span
|
541
|
+
style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">-></span><span
|
542
|
+
style=\"color: #0000BB\">handleRaw</span><span style=\"color: #007700\">(</span><span
|
543
|
+
style=\"color: #0000BB\">$request</span><span style=\"color: #007700\">, </span><span
|
544
|
+
style=\"color: #0000BB\">$type</span><span style=\"color: #007700\">);</span></code></li>\n<li><code> } catch (\\<span
|
545
|
+
style=\"color: #0000BB\">Exception $e</span><span style=\"color: #007700\">) {</span></code></li>\n<li><code> if (<span
|
546
|
+
style=\"color: #0000BB\">false </span><span style=\"color: #007700\">=== </span><span
|
547
|
+
style=\"color: #0000BB\">$catch</span><span style=\"color: #007700\">) {</span></code></li>\n<li><code> throw <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
|
+
\ ->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 \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> <span
|
559
|
+
style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">-></span><span
|
560
|
+
style=\"color: #0000BB\">container</span><span style=\"color: #007700\">-></span><span
|
561
|
+
style=\"color: #0000BB\">set</span><span style=\"color: #007700\">(</span><span
|
562
|
+
style=\"color: #DD0000\">'request'</span><span style=\"color: #007700\">, </span><span
|
563
|
+
style=\"color: #0000BB\">$request</span><span style=\"color: #007700\">, </span><span
|
564
|
+
style=\"color: #DD0000\">'request'</span><span style=\"color: #007700\">);</span></code></li>\n<li><code></code></li>\n<li><code> try {</code></li>\n<li
|
565
|
+
class=\"selected\"><code> <span
|
566
|
+
style=\"color: #0000BB\">$response </span><span style=\"color: #007700\">= </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\">, </span><span
|
570
|
+
style=\"color: #0000BB\">$type</span><span style=\"color: #007700\">, </span><span
|
571
|
+
style=\"color: #0000BB\">$catch</span><span style=\"color: #007700\">);</span></code></li>\n<li><code> } catch (\\<span
|
572
|
+
style=\"color: #0000BB\">Exception $e</span><span style=\"color: #007700\">) {</span></code></li>\n<li><code> <span
|
573
|
+
style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">-></span><span
|
574
|
+
style=\"color: #0000BB\">container</span><span style=\"color: #007700\">-></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
|
+
\ ->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 \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> <span
|
587
|
+
style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">-></span><span
|
588
|
+
style=\"color: #0000BB\">boot</span><span style=\"color: #007700\">();</span></code></li>\n<li><code> }</code></li>\n<li><code></code></li>\n<li
|
589
|
+
class=\"selected\"><code> return <span
|
590
|
+
style=\"color: #0000BB\">$this</span><span style=\"color: #007700\">-></span><span
|
591
|
+
style=\"color: #0000BB\">getHttpKernel</span><span style=\"color: #007700\">()-></span><span
|
592
|
+
style=\"color: #0000BB\">handle</span><span style=\"color: #007700\">(</span><span
|
593
|
+
style=\"color: #0000BB\">$request</span><span style=\"color: #007700\">, </span><span
|
594
|
+
style=\"color: #0000BB\">$type</span><span style=\"color: #007700\">, </span><span
|
595
|
+
style=\"color: #0000BB\">$catch</span><span style=\"color: #007700\">);</span></code></li>\n<li><code> }</code></li>\n<li><code></code></li>\n<li><code> </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
|
+
\ ->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 \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 <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 </span><span style=\"color: #007700\">= new </span><span
|
611
|
+
style=\"color: #0000BB\">AppKernel</span><span style=\"color: #007700\">(</span><span
|
612
|
+
style=\"color: #DD0000\">'dev'</span><span style=\"color: #007700\">, </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\">-></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\">())-></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 \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 "kernel.request"
|
632
|
+
to listener "Symfony\\Component\\HttpKernel\\EventListener\\ProfilerListener::onKernelRequest".\n
|
633
|
+
\ </li>\n <li>\n Notified event "kernel.request"
|
634
|
+
to listener "Symfony\\Bundle\\FrameworkBundle\\EventListener\\RouterListener::onEarlyKernelRequest".\n
|
635
|
+
\ </li>\n <li>\n Notified event "kernel.request"
|
636
|
+
to listener "Jirafe\\Bundle\\ApiBundle\\Listener\\SessionListener::onKernelRequest".\n
|
637
|
+
\ </li>\n <li>\n Notified event "kernel.request"
|
638
|
+
to listener "Symfony\\Component\\Security\\Http\\Firewall::onKernelRequest".\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 ({"token":"user_master_token"})\n </li>\n
|
647
|
+
\ <li>\n SELECT\n t.token,\n a.application_id,
|
648
|
+
a.name, a.platform_type, a.platform_version,\n a.platform_admin_username,
|
649
|
+
a.plugin_version,\n u.user_id\n FROM tokens AS t\n INNER
|
650
|
+
JOIN applications AS a ON a.application_id = t.application_id\n INNER
|
651
|
+
JOIN users AS u ON u.user_id = t.user_id\n WHERE t.user_id = :user_id
|
652
|
+
({"user_id":1})\n </li>\n <li>\n Notified
|
653
|
+
event "kernel.request" to listener "Symfony\\Bundle\\FrameworkBundle\\EventListener\\RouterListener::onKernelRequest".\n
|
654
|
+
\ </li>\n <li>\n Notified event "kernel.exception"
|
655
|
+
to listener "Jirafe\\Bundle\\ApiBundle\\Listener\\ExceptionListener::onKernelException".\n
|
656
|
+
\ </li>\n <li>\n Notified event "kernel.exception"
|
657
|
+
to listener "Symfony\\Component\\Security\\Http\\Firewall\\ExceptionListener::onKernelException".\n
|
658
|
+
\ </li>\n <li>\n Notified event "kernel.exception"
|
659
|
+
to listener "Symfony\\Component\\HttpKernel\\EventListener\\ProfilerListener::onKernelException".\n
|
660
|
+
\ </li>\n <li>\n Notified event "kernel.exception"
|
661
|
+
to listener "Symfony\\Component\\HttpKernel\\EventListener\\ExceptionListener::onKernelException".\n
|
662
|
+
\ </li>\n <li class=\"error\">\n Symfony\\Component\\HttpKernel\\Exception\\MethodNotAllowedHttpException:
|
663
|
+
No route found for "GET /v1/applications": Method Not Allowed (Allow:
|
664
|
+
POST) (uncaught exception) at /Users/schubert/workspace/jirafe/api/vendor/symfony/src/Symfony/Bundle/FrameworkBundle/EventListener/RouterListener.php
|
665
|
+
line 87\n </li>\n <li>\n Notified event "kernel.request"
|
666
|
+
to listener "Symfony\\Component\\HttpKernel\\EventListener\\ProfilerListener::onKernelRequest".\n
|
667
|
+
\ </li>\n <li>\n Notified event "kernel.request"
|
668
|
+
to listener "Symfony\\Bundle\\FrameworkBundle\\EventListener\\RouterListener::onEarlyKernelRequest".\n
|
669
|
+
\ </li>\n <li>\n Notified event "kernel.request"
|
670
|
+
to listener "Jirafe\\Bundle\\ApiBundle\\Listener\\SessionListener::onKernelRequest".\n
|
671
|
+
\ </li>\n <li>\n Notified event "kernel.request"
|
672
|
+
to listener "Symfony\\Component\\Security\\Http\\Firewall::onKernelRequest".\n
|
673
|
+
\ </li>\n <li>\n Notified event "kernel.request"
|
674
|
+
to listener "Symfony\\Bundle\\FrameworkBundle\\EventListener\\RouterListener::onKernelRequest".\n
|
675
|
+
\ </li>\n <li>\n Notified event "kernel.request"
|
676
|
+
to listener "FOS\\RestBundle\\EventListener\\BodyListener::onKernelRequest".\n
|
677
|
+
\ </li>\n <li>\n Notified event "kernel.request"
|
678
|
+
to listener "Jirafe\\Bundle\\ApiBundle\\Listener\\RequestLogListener::onKernelRequest".\n
|
679
|
+
\ </li>\n <li>\n Notified event "kernel.request"
|
680
|
+
to listener "Jirafe\\Bundle\\DashboardBundle\\Templating\\Helper\\MenuHelper::onKernelRequest".\n
|
681
|
+
\ </li>\n <li>\n Notified event "kernel.request"
|
682
|
+
to listener "Jirafe\\Bundle\\DashboardBundle\\Listener\\ChangeLocaleKernelRequestListener::onKernelRequest".\n
|
683
|
+
\ </li>\n <li>\n Notified event "kernel.request"
|
684
|
+
to listener "Jirafe\\Bundle\\DashboardBundle\\Listener\\SaveAppIdInCookieKernelRequestListener::onKernelRequest".\n
|
685
|
+
\ </li>\n <li>\n Notified event "kernel.controller"
|
686
|
+
to listener "Symfony\\Bundle\\FrameworkBundle\\DataCollector\\RequestDataCollector::onKernelController".\n
|
687
|
+
\ </li>\n </ol>\n </div>\n\n </div>\n \n \n</div>\n\n<script
|
688
|
+
type=\"text/javascript\">//<![CDATA[\n function toggle(id, clazz) {\n var
|
689
|
+
el = document.getElementById(id),\n current = el.style.display,\n
|
690
|
+
\ i;\n\n if (clazz) {\n var tags = document.getElementsByTagName('*');\n
|
691
|
+
\ for (i = tags.length - 1; i >= 0 ; i--) {\n if
|
692
|
+
(tags[i].className === clazz) {\n tags[i].style.display
|
693
|
+
= 'none';\n }\n }\n }\n\n el.style.display
|
694
|
+
= current === 'none' ? 'block' : 'none';\n }\n\n function switchIcons(id1,
|
695
|
+
id2) {\n var icon1, icon2, visibility1, visibility2;\n\n icon1
|
696
|
+
= document.getElementById(id1);\n icon2 = document.getElementById(id2);\n\n
|
697
|
+
\ visibility1 = icon1.style.visibility;\n visibility2 = icon2.style.visibility;\n\n
|
698
|
+
\ icon1.style.visibility = visibility2;\n icon2.style.visibility
|
699
|
+
= visibility1;\n }\n//]]></script>\n </div>\n \n<div id=\"sfwdt504777154d8b3\"
|
700
|
+
style=\"display: none\"></div><script type=\"text/javascript\">/*<![CDATA[*/
|
701
|
+
\ (function () { var wdt, xhr; wdt = document.getElementById('sfwdt504777154d8b3');
|
702
|
+
\ if (window.XMLHttpRequest) { xhr = new XMLHttpRequest();
|
703
|
+
\ } else { xhr = new ActiveXObject('Microsoft.XMLHTTP');
|
704
|
+
\ } xhr.open('GET', '/_wdt/504777154d8b3', true); xhr.setRequestHeader('X-Requested-With',
|
705
|
+
'XMLHttpRequest'); xhr.onreadystatechange = function(state) { if
|
706
|
+
(4 === xhr.readyState && 200 === xhr.status && -1 !== xhr.responseText.indexOf('sf-toolbarreset'))
|
707
|
+
{ wdt.innerHTML = xhr.responseText; wdt.style.display
|
708
|
+
= 'block'; } }; xhr.send(''); })();/*]]>*/</script>\n</body>\n</html>\n"
|
709
|
+
http_version:
|
710
|
+
recorded_at: Wed, 05 Sep 2012 16:00:21 GMT
|
711
|
+
- request:
|
712
|
+
method: get
|
713
|
+
uri: http://api.jirafe.dev/v1/applications/1?token=user_master_token
|
714
|
+
body:
|
715
|
+
encoding: US-ASCII
|
716
|
+
string: ''
|
717
|
+
headers: {}
|
718
|
+
response:
|
719
|
+
status:
|
720
|
+
code: 200
|
721
|
+
message: OK
|
722
|
+
headers:
|
723
|
+
Server:
|
724
|
+
- nginx/1.2.2
|
725
|
+
Content-Type:
|
726
|
+
- application/json
|
727
|
+
Transfer-Encoding:
|
728
|
+
- chunked
|
729
|
+
Connection:
|
730
|
+
- keep-alive
|
731
|
+
Keep-Alive:
|
732
|
+
- timeout=10
|
733
|
+
X-Powered-By:
|
734
|
+
- PHP/5.3.15
|
735
|
+
Cache-Control:
|
736
|
+
- no-cache
|
737
|
+
Date:
|
738
|
+
- Wed, 05 Sep 2012 19:49:42 GMT
|
739
|
+
X-Debug-Token:
|
740
|
+
- 5047acd6a7d50
|
741
|
+
body:
|
742
|
+
encoding: US-ASCII
|
743
|
+
string: ! '{"app_id":1,"name":"my application"}'
|
744
|
+
http_version:
|
745
|
+
recorded_at: Wed, 05 Sep 2012 19:49:42 GMT
|
746
|
+
- request:
|
747
|
+
method: get
|
748
|
+
uri: http://api.jirafe.dev/v1/applications/-1?token=user_master_token
|
749
|
+
body:
|
750
|
+
encoding: US-ASCII
|
751
|
+
string: ''
|
752
|
+
headers: {}
|
753
|
+
response:
|
754
|
+
status:
|
755
|
+
code: 404
|
756
|
+
message: Not Found
|
757
|
+
headers:
|
758
|
+
Server:
|
759
|
+
- nginx/1.2.2
|
760
|
+
Content-Type:
|
761
|
+
- text/html; charset=UTF-8
|
762
|
+
Transfer-Encoding:
|
763
|
+
- chunked
|
764
|
+
Connection:
|
765
|
+
- keep-alive
|
766
|
+
Keep-Alive:
|
767
|
+
- timeout=10
|
768
|
+
X-Powered-By:
|
769
|
+
- PHP/5.3.15
|
770
|
+
Cache-Control:
|
771
|
+
- no-cache
|
772
|
+
Date:
|
773
|
+
- Wed, 05 Sep 2012 19:49:42 GMT
|
774
|
+
X-Debug-Token:
|
775
|
+
- 5047acd6be469
|
776
|
+
body:
|
777
|
+
encoding: US-ASCII
|
778
|
+
string: ! '{"error":{"code":404,"message":"Application with id '-1'
|
779
|
+
not found."}}
|
780
|
+
|
781
|
+
'
|
782
|
+
http_version:
|
783
|
+
recorded_at: Wed, 05 Sep 2012 19:49:42 GMT
|
784
|
+
recorded_with: VCR 2.2.4
|