{"action":"created","issue":{"url":"https://api.github.com/repos/bobthecow/psysh/issues/165","labels_url":"https://api.github.com/repos/bobthecow/psysh/issues/165/labels{/name}","comments_url":"https://api.github.com/repos/bobthecow/psysh/issues/165/comments","events_url":"https://api.github.com/repos/bobthecow/psysh/issues/165/events","html_url":"https://github.com/bobthecow/psysh/issues/165","id":59034484,"number":165,"title":"Presenters vs dump (and VarDumper)","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},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-02-26T08:03:03Z","updated_at":"2015-02-26T11:08:17Z","closed_at":null,"body":"As I understand it, Presenters are a way to present an object in a simple way, right? Which is pretty cool because if (in Laravel for example) just do `$app = app()` the shell always displays the object. And that would be pretty large without the Presenter.\r\n\r\nBut when I run `dump $app`, shouldn't that give me more information? Eg, private properties, methods etc etc.\r\n\r\nA cool way to do this would be the new Symfony VarDumper component: http://symfony.com/doc/current/components/var_dumper/introduction.html (and http://symfony.com/doc/current/components/var_dumper/advanced.html for some more customisation).\r\n\r\nIt also already has a CLI Dumper but could also dump to plain text. And doesn't have any external dependancies.\r\n\r\nThis is a better alternative then var_dump(), because it handles recursion/depth better, and is a bit prettier. You can try this in Laravel/Symfony with just calling `dump($var)`, but I would think that the dump command should be more like that. \r\n\r\n(And you can always just use the presenter by just calling the variable, without `dump`)"},"comment":{"url":"https://api.github.com/repos/bobthecow/psysh/issues/comments/76160342","html_url":"https://github.com/bobthecow/psysh/issues/165#issuecomment-76160342","issue_url":"https://api.github.com/repos/bobthecow/psysh/issues/165","id":76160342,"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-02-26T11:08:17Z","updated_at":"2015-02-26T11:08:17Z","body":"Yes but it doesn't give the current state and nested properties etc, right?\r\nThe `dump` method is just a different thing then the `list` command."}}