{"action":"created","issue":{"url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/issues/93","labels_url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/issues/93/labels{/name}","comments_url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/issues/93/comments","events_url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/issues/93/events","html_url":"https://github.com/javiereguiluz/EasyAdminBundle/pull/93","id":55996184,"number":93,"title":"Implementing Beautify admin routes","user":{"login":"manuelj555","id":1214013,"avatar_url":"https://avatars.githubusercontent.com/u/1214013?v=3","gravatar_id":"","url":"https://api.github.com/users/manuelj555","html_url":"https://github.com/manuelj555","followers_url":"https://api.github.com/users/manuelj555/followers","following_url":"https://api.github.com/users/manuelj555/following{/other_user}","gists_url":"https://api.github.com/users/manuelj555/gists{/gist_id}","starred_url":"https://api.github.com/users/manuelj555/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manuelj555/subscriptions","organizations_url":"https://api.github.com/users/manuelj555/orgs","repos_url":"https://api.github.com/users/manuelj555/repos","events_url":"https://api.github.com/users/manuelj555/events{/privacy}","received_events_url":"https://api.github.com/users/manuelj555/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/labels/enhancement","name":"enhancement","color":"00994D"},{"url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/labels/wontfix","name":"wontfix","color":"222222"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-01-30T05:25:22Z","updated_at":"2015-01-30T19:39:14Z","closed_at":"2015-01-30T19:22:14Z","pull_request":{"url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/pulls/93","html_url":"https://github.com/javiereguiluz/EasyAdminBundle/pull/93","diff_url":"https://github.com/javiereguiluz/EasyAdminBundle/pull/93.diff","patch_url":"https://github.com/javiereguiluz/EasyAdminBundle/pull/93.patch"},"body":"This change allow to use real routes for Entity Admins\r\n\r\nSee https://github.com/javiereguiluz/EasyAdminBundle/issues/56\r\n\r\nFor each entity defined in **easy_admin.entities** the following routes are created:\r\n\r\n```yml\r\neasy_admin:\r\n    entities:\r\n        'Users': AppBundle\\Entity\\User\r\n        'Taks': AppBundle\\Entity\\Task\r\n```\r\n\r\n|           Route            |            Path                 |\r\n|--------------------------|-----------------------------|\r\n| easy_admin_homepage     |   /admin |\r\n| easy_admin_user_list         |   /admin/user/list |\r\n| easy_admin_user_show     |   /admin/user/show/{id} |\r\n| easy_admin_user_search   |   /admin/user/search |\r\n| easy_admin_user_new       |   /admin/user/new |\r\n| easy_admin_user_edit        |  /admin/user/edit/{id} |\r\n| easy_admin_user_delete    |   /admin/user/delete/{id} |\r\n| easy_admin_task_list         |   /admin/task/list |\r\n| easy_admin_task_show     |   /admin/task/show/{id} |\r\n| easy_admin_task_search   |   /admin/task/search |\r\n| easy_admin_task_new       |   /admin/task/new |\r\n| easy_admin_task_edit        |  /admin/task/edit/{id} |\r\n| easy_admin_task_delete    |   /admin/task/delete/{id} |\r\n\r\nThe route **easy_admin_homepage** is a redirection to the first entity route list.\r\n\r\nFor create a path in the AdminController use the **generateEntityUrl** Method, thid method expected:\r\n\r\n* The entity array config\r\n* The action name\r\n* The parameters array (optional)\r\n\r\nIn twig exists the **entity_path** function and uses the same arguments.\r\n\r\nThe code in de routing.yml has changed for:\r\n\r\n```yml\r\neasy_admin_bundle:\r\n    resource: .\r\n    type:     easy_admin\r\n    prefix:   /admin\r\n```"},"comment":{"url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/issues/comments/72257844","html_url":"https://github.com/javiereguiluz/EasyAdminBundle/pull/93#issuecomment-72257844","issue_url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/issues/93","id":72257844,"user":{"login":"manuelj555","id":1214013,"avatar_url":"https://avatars.githubusercontent.com/u/1214013?v=3","gravatar_id":"","url":"https://api.github.com/users/manuelj555","html_url":"https://github.com/manuelj555","followers_url":"https://api.github.com/users/manuelj555/followers","following_url":"https://api.github.com/users/manuelj555/following{/other_user}","gists_url":"https://api.github.com/users/manuelj555/gists{/gist_id}","starred_url":"https://api.github.com/users/manuelj555/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manuelj555/subscriptions","organizations_url":"https://api.github.com/users/manuelj555/orgs","repos_url":"https://api.github.com/users/manuelj555/repos","events_url":"https://api.github.com/users/manuelj555/events{/privacy}","received_events_url":"https://api.github.com/users/manuelj555/received_events","type":"User","site_admin":false},"created_at":"2015-01-30T19:39:14Z","updated_at":"2015-01-30T19:39:14Z","body":"Oh Javier No problem :) \r\n\r\nBasically my intention was to learn/practice and simultaneously help something\r\n\r\nI am very agree as to which performance can be affected with the creation of many routes only for the backend :)\r\n\r\nAgain, no problem !!!\r\n\r\nDisculpas por mi muy mal ingles :p"}}