{"action":"created","issue":{"url":"https://api.github.com/repos/maximebf/php-debugbar/issues/102","labels_url":"https://api.github.com/repos/maximebf/php-debugbar/issues/102/labels{/name}","comments_url":"https://api.github.com/repos/maximebf/php-debugbar/issues/102/comments","events_url":"https://api.github.com/repos/maximebf/php-debugbar/issues/102/events","html_url":"https://github.com/maximebf/php-debugbar/issues/102","id":29981032,"number":102,"title":"Have the possibility to execute commands on the server from the debugbar","user":{"login":"maximebf","id":305740,"avatar_url":"https://avatars.githubusercontent.com/u/305740?v=3","gravatar_id":"","url":"https://api.github.com/users/maximebf","html_url":"https://github.com/maximebf","followers_url":"https://api.github.com/users/maximebf/followers","following_url":"https://api.github.com/users/maximebf/following{/other_user}","gists_url":"https://api.github.com/users/maximebf/gists{/gist_id}","starred_url":"https://api.github.com/users/maximebf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maximebf/subscriptions","organizations_url":"https://api.github.com/users/maximebf/orgs","repos_url":"https://api.github.com/users/maximebf/repos","events_url":"https://api.github.com/users/maximebf/events{/privacy}","received_events_url":"https://api.github.com/users/maximebf/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/maximebf/php-debugbar/labels/0+-+Backlog","name":"0 - Backlog","color":"CCCCCC"},{"url":"https://api.github.com/repos/maximebf/php-debugbar/labels/v2","name":"v2","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2014-03-23T04:49:34Z","updated_at":"2015-01-22T12:48:04Z","closed_at":null,"body":"I created a new branch \"serverhandler\" where the goal is to have the possibility to execute commands on the server from the debugbar.\r\n\r\nThe code is already implemented but I would love some feedback before merging.\r\nThe open handler is moved to the new architecture.\r\nThe Bridge\\CacheCache\\CacheCacheCollector (moved from Bridge\\CacheCacheCollector) also implements the new ServerHandler\\ServerHandlerFactoryInterface\r\n\r\nCollectors which implement one of the interfaces in the ServerHandler namespace will automatically be registered as handlers when a ServerHandler\\Server is instanciated\r\n\r\nCombined with the new AssetProvider interface, collectors can provide their own javascript interface and server handlers. This can lead to very powerful widgets.\r\n\r\nFor example, the CacheCache collector, uses the cache widgets which has a \"clear\" and \"clear key\" buttons.\r\n\r\nIn javascript, you can use PhpDebugBar.DebugBar.instance.callServer('handlername', 'commandname', {...data...}, callback) to call the server\r\n\r\nJavascriptRenderer::setServerHandlerUrl() must be called before these features become available.\r\n\r\nThe demo is also updated.\r\n\r\n<!---\r\n@huboard:{\"order\":102.0,\"milestone_order\":102,\"custom_state\":\"\"}\n-->\r\n"},"comment":{"url":"https://api.github.com/repos/maximebf/php-debugbar/issues/comments/71015363","html_url":"https://github.com/maximebf/php-debugbar/issues/102#issuecomment-71015363","issue_url":"https://api.github.com/repos/maximebf/php-debugbar/issues/102","id":71015363,"user":{"login":"barryvdh","id":973269,"avatar_url":"https://avatars.githubusercontent.com/u/973269?v=3","gravatar_id":"","url":"https://api.github.com/users/barryvdh","html_url":"https://github.com/barryvdh","followers_url":"https://api.github.com/users/barryvdh/followers","following_url":"https://api.github.com/users/barryvdh/following{/other_user}","gists_url":"https://api.github.com/users/barryvdh/gists{/gist_id}","starred_url":"https://api.github.com/users/barryvdh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barryvdh/subscriptions","organizations_url":"https://api.github.com/users/barryvdh/orgs","repos_url":"https://api.github.com/users/barryvdh/repos","events_url":"https://api.github.com/users/barryvdh/events{/privacy}","received_events_url":"https://api.github.com/users/barryvdh/received_events","type":"User","site_admin":false},"created_at":"2015-01-22T12:48:04Z","updated_at":"2015-01-22T12:48:04Z","body":"Not sure, it's a lot behind now. But will give it a try if I get the chance soon."}}