{"action":"created","comment":{"url":"https://api.github.com/repos/sulu/sulu/pulls/comments/62830165","id":62830165,"diff_hunk":"@@ -0,0 +1,77 @@\n+<?php\n+\n+/*\n+ * This file is part of Sulu.\n+ *\n+ * (c) MASSIVE ART WebServices GmbH\n+ *\n+ * This source file is subject to the MIT license that is bundled\n+ * with this source code in the file LICENSE.\n+ */\n+\n+namespace Sulu\\Bundle\\CoreBundle\\Command;\n+\n+use Symfony\\Component\\Console\\Style\\SymfonyStyle;\n+use Symfony\\Component\\DependencyInjection\\ContainerInterface;\n+\n+trait ServerCommandTrait","path":"src/Sulu/Bundle/CoreBundle/Command/ServerCommandTrait.php","position":17,"original_position":17,"commit_id":"0ab2151f696ad6eebb3b79b4dc3790badce43698","original_commit_id":"0ab2151f696ad6eebb3b79b4dc3790badce43698","user":{"login":"wachterjohannes","id":1464615,"avatar_url":"https://avatars.githubusercontent.com/u/1464615?v=3","gravatar_id":"","url":"https://api.github.com/users/wachterjohannes","html_url":"https://github.com/wachterjohannes","followers_url":"https://api.github.com/users/wachterjohannes/followers","following_url":"https://api.github.com/users/wachterjohannes/following{/other_user}","gists_url":"https://api.github.com/users/wachterjohannes/gists{/gist_id}","starred_url":"https://api.github.com/users/wachterjohannes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wachterjohannes/subscriptions","organizations_url":"https://api.github.com/users/wachterjohannes/orgs","repos_url":"https://api.github.com/users/wachterjohannes/repos","events_url":"https://api.github.com/users/wachterjohannes/events{/privacy}","received_events_url":"https://api.github.com/users/wachterjohannes/received_events","type":"User","site_admin":false},"body":"ou sorry i havent seen that (:","created_at":"2016-05-11T11:18:22Z","updated_at":"2016-05-11T11:18:22Z","html_url":"https://github.com/sulu/sulu/pull/2377#discussion_r62830165","pull_request_url":"https://api.github.com/repos/sulu/sulu/pulls/2377","_links":{"self":{"href":"https://api.github.com/repos/sulu/sulu/pulls/comments/62830165"},"html":{"href":"https://github.com/sulu/sulu/pull/2377#discussion_r62830165"},"pull_request":{"href":"https://api.github.com/repos/sulu/sulu/pulls/2377"}}},"pull_request":{"url":"https://api.github.com/repos/sulu/sulu/pulls/2377","id":69529691,"html_url":"https://github.com/sulu/sulu/pull/2377","diff_url":"https://github.com/sulu/sulu/pull/2377.diff","patch_url":"https://github.com/sulu/sulu/pull/2377.patch","issue_url":"https://api.github.com/repos/sulu/sulu/issues/2377","number":2377,"state":"open","locked":false,"title":"Made --router and --env optional when running the console commands server:run and server:start","user":{"login":"webmozart","id":176399,"avatar_url":"https://avatars.githubusercontent.com/u/176399?v=3","gravatar_id":"","url":"https://api.github.com/users/webmozart","html_url":"https://github.com/webmozart","followers_url":"https://api.github.com/users/webmozart/followers","following_url":"https://api.github.com/users/webmozart/following{/other_user}","gists_url":"https://api.github.com/users/webmozart/gists{/gist_id}","starred_url":"https://api.github.com/users/webmozart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webmozart/subscriptions","organizations_url":"https://api.github.com/users/webmozart/orgs","repos_url":"https://api.github.com/users/webmozart/repos","events_url":"https://api.github.com/users/webmozart/events{/privacy}","received_events_url":"https://api.github.com/users/webmozart/received_events","type":"User","site_admin":false},"body":"| Q | A\r\n| --- | ---\r\n| Bug fix? | no\r\n| New feature? | no\r\n| BC breaks? | no\r\n| Deprecations? | no\r\n| Fixed tickets | fixes #2069, fixes #2070\r\n| Related issues/PRs | -\r\n| License | MIT\r\n| Documentation PR | to do\r\n\r\n#### What's in this PR?\r\n\r\nThis PR simplifies running Sulu with PHP's built-in server. Running the server is as simple as:\r\n\r\n~~~\r\n$ app/console server:start\r\n$ app/webconsole server:start\r\n~~~\r\n\r\nThe servers for the admin and the website are started on the ports 8000 respectively 8001.\r\n\r\n#### Why?\r\n\r\nCurrently, a user has to pass the correct values in the `--router`, `--env` and `--port` options of the server:run and server:start commands. This makes getting started with Sulu harder than necessary.","created_at":"2016-05-10T15:46:06Z","updated_at":"2016-05-11T11:18:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3fe4ab7ad0f4f3f0e77256077f28ff22c70e15d9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sulu/sulu/pulls/2377/commits","review_comments_url":"https://api.github.com/repos/sulu/sulu/pulls/2377/comments","review_comment_url":"https://api.github.com/repos/sulu/sulu/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sulu/sulu/issues/2377/comments","statuses_url":"https://api.github.com/repos/sulu/sulu/statuses/0ab2151f696ad6eebb3b79b4dc3790badce43698","head":{"label":"webmozart:simplify-server-run","ref":"simplify-server-run","sha":"0ab2151f696ad6eebb3b79b4dc3790badce43698","user":{"login":"webmozart","id":176399,"avatar_url":"https://avatars.githubusercontent.com/u/176399?v=3","gravatar_id":"","url":"https://api.github.com/users/webmozart","html_url":"https://github.com/webmozart","followers_url":"https://api.github.com/users/webmozart/followers","following_url":"https://api.github.com/users/webmozart/following{/other_user}","gists_url":"https://api.github.com/users/webmozart/gists{/gist_id}","starred_url":"https://api.github.com/users/webmozart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webmozart/subscriptions","organizations_url":"https://api.github.com/users/webmozart/orgs","repos_url":"https://api.github.com/users/webmozart/repos","events_url":"https://api.github.com/users/webmozart/events{/privacy}","received_events_url":"https://api.github.com/users/webmozart/received_events","type":"User","site_admin":false},"repo":{"id":52880843,"name":"sulu","full_name":"webmozart/sulu","owner":{"login":"webmozart","id":176399,"avatar_url":"https://avatars.githubusercontent.com/u/176399?v=3","gravatar_id":"","url":"https://api.github.com/users/webmozart","html_url":"https://github.com/webmozart","followers_url":"https://api.github.com/users/webmozart/followers","following_url":"https://api.github.com/users/webmozart/following{/other_user}","gists_url":"https://api.github.com/users/webmozart/gists{/gist_id}","starred_url":"https://api.github.com/users/webmozart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webmozart/subscriptions","organizations_url":"https://api.github.com/users/webmozart/orgs","repos_url":"https://api.github.com/users/webmozart/repos","events_url":"https://api.github.com/users/webmozart/events{/privacy}","received_events_url":"https://api.github.com/users/webmozart/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/webmozart/sulu","description":"Sulu core bundles & components","fork":true,"url":"https://api.github.com/repos/webmozart/sulu","forks_url":"https://api.github.com/repos/webmozart/sulu/forks","keys_url":"https://api.github.com/repos/webmozart/sulu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/webmozart/sulu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/webmozart/sulu/teams","hooks_url":"https://api.github.com/repos/webmozart/sulu/hooks","issue_events_url":"https://api.github.com/repos/webmozart/sulu/issues/events{/number}","events_url":"https://api.github.com/repos/webmozart/sulu/events","assignees_url":"https://api.github.com/repos/webmozart/sulu/assignees{/user}","branches_url":"https://api.github.com/repos/webmozart/sulu/branches{/branch}","tags_url":"https://api.github.com/repos/webmozart/sulu/tags","blobs_url":"https://api.github.com/repos/webmozart/sulu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/webmozart/sulu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/webmozart/sulu/git/refs{/sha}","trees_url":"https://api.github.com/repos/webmozart/sulu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/webmozart/sulu/statuses/{sha}","languages_url":"https://api.github.com/repos/webmozart/sulu/languages","stargazers_url":"https://api.github.com/repos/webmozart/sulu/stargazers","contributors_url":"https://api.github.com/repos/webmozart/sulu/contributors","subscribers_url":"https://api.github.com/repos/webmozart/sulu/subscribers","subscription_url":"https://api.github.com/repos/webmozart/sulu/subscription","commits_url":"https://api.github.com/repos/webmozart/sulu/commits{/sha}","git_commits_url":"https://api.github.com/repos/webmozart/sulu/git/commits{/sha}","comments_url":"https://api.github.com/repos/webmozart/sulu/comments{/number}","issue_comment_url":"https://api.github.com/repos/webmozart/sulu/issues/comments{/number}","contents_url":"https://api.github.com/repos/webmozart/sulu/contents/{+path}","compare_url":"https://api.github.com/repos/webmozart/sulu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/webmozart/sulu/merges","archive_url":"https://api.github.com/repos/webmozart/sulu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/webmozart/sulu/downloads","issues_url":"https://api.github.com/repos/webmozart/sulu/issues{/number}","pulls_url":"https://api.github.com/repos/webmozart/sulu/pulls{/number}","milestones_url":"https://api.github.com/repos/webmozart/sulu/milestones{/number}","notifications_url":"https://api.github.com/repos/webmozart/sulu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/webmozart/sulu/labels{/name}","releases_url":"https://api.github.com/repos/webmozart/sulu/releases{/id}","deployments_url":"https://api.github.com/repos/webmozart/sulu/deployments","created_at":"2016-03-01T14:01:04Z","updated_at":"2016-03-01T14:01:10Z","pushed_at":"2016-05-11T09:02:15Z","git_url":"git://github.com/webmozart/sulu.git","ssh_url":"git@github.com:webmozart/sulu.git","clone_url":"https://github.com/webmozart/sulu.git","svn_url":"https://github.com/webmozart/sulu","homepage":"sulu.io","size":67671,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"sulu:develop","ref":"develop","sha":"c1809cddf2264af2c6ac48e1d539cf1a3507b46b","user":{"login":"sulu","id":5717006,"avatar_url":"https://avatars.githubusercontent.com/u/5717006?v=3","gravatar_id":"","url":"https://api.github.com/users/sulu","html_url":"https://github.com/sulu","followers_url":"https://api.github.com/users/sulu/followers","following_url":"https://api.github.com/users/sulu/following{/other_user}","gists_url":"https://api.github.com/users/sulu/gists{/gist_id}","starred_url":"https://api.github.com/users/sulu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sulu/subscriptions","organizations_url":"https://api.github.com/users/sulu/orgs","repos_url":"https://api.github.com/users/sulu/repos","events_url":"https://api.github.com/users/sulu/events{/privacy}","received_events_url":"https://api.github.com/users/sulu/received_events","type":"Organization","site_admin":false},"repo":{"id":13678015,"name":"sulu","full_name":"sulu/sulu","owner":{"login":"sulu","id":5717006,"avatar_url":"https://avatars.githubusercontent.com/u/5717006?v=3","gravatar_id":"","url":"https://api.github.com/users/sulu","html_url":"https://github.com/sulu","followers_url":"https://api.github.com/users/sulu/followers","following_url":"https://api.github.com/users/sulu/following{/other_user}","gists_url":"https://api.github.com/users/sulu/gists{/gist_id}","starred_url":"https://api.github.com/users/sulu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sulu/subscriptions","organizations_url":"https://api.github.com/users/sulu/orgs","repos_url":"https://api.github.com/users/sulu/repos","events_url":"https://api.github.com/users/sulu/events{/privacy}","received_events_url":"https://api.github.com/users/sulu/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sulu/sulu","description":"Sulu core bundles & components","fork":false,"url":"https://api.github.com/repos/sulu/sulu","forks_url":"https://api.github.com/repos/sulu/sulu/forks","keys_url":"https://api.github.com/repos/sulu/sulu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sulu/sulu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sulu/sulu/teams","hooks_url":"https://api.github.com/repos/sulu/sulu/hooks","issue_events_url":"https://api.github.com/repos/sulu/sulu/issues/events{/number}","events_url":"https://api.github.com/repos/sulu/sulu/events","assignees_url":"https://api.github.com/repos/sulu/sulu/assignees{/user}","branches_url":"https://api.github.com/repos/sulu/sulu/branches{/branch}","tags_url":"https://api.github.com/repos/sulu/sulu/tags","blobs_url":"https://api.github.com/repos/sulu/sulu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sulu/sulu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sulu/sulu/git/refs{/sha}","trees_url":"https://api.github.com/repos/sulu/sulu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sulu/sulu/statuses/{sha}","languages_url":"https://api.github.com/repos/sulu/sulu/languages","stargazers_url":"https://api.github.com/repos/sulu/sulu/stargazers","contributors_url":"https://api.github.com/repos/sulu/sulu/contributors","subscribers_url":"https://api.github.com/repos/sulu/sulu/subscribers","subscription_url":"https://api.github.com/repos/sulu/sulu/subscription","commits_url":"https://api.github.com/repos/sulu/sulu/commits{/sha}","git_commits_url":"https://api.github.com/repos/sulu/sulu/git/commits{/sha}","comments_url":"https://api.github.com/repos/sulu/sulu/comments{/number}","issue_comment_url":"https://api.github.com/repos/sulu/sulu/issues/comments{/number}","contents_url":"https://api.github.com/repos/sulu/sulu/contents/{+path}","compare_url":"https://api.github.com/repos/sulu/sulu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sulu/sulu/merges","archive_url":"https://api.github.com/repos/sulu/sulu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sulu/sulu/downloads","issues_url":"https://api.github.com/repos/sulu/sulu/issues{/number}","pulls_url":"https://api.github.com/repos/sulu/sulu/pulls{/number}","milestones_url":"https://api.github.com/repos/sulu/sulu/milestones{/number}","notifications_url":"https://api.github.com/repos/sulu/sulu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sulu/sulu/labels{/name}","releases_url":"https://api.github.com/repos/sulu/sulu/releases{/id}","deployments_url":"https://api.github.com/repos/sulu/sulu/deployments","created_at":"2013-10-18T12:57:02Z","updated_at":"2016-05-08T21:38:34Z","pushed_at":"2016-05-11T11:02:03Z","git_url":"git://github.com/sulu/sulu.git","ssh_url":"git@github.com:sulu/sulu.git","clone_url":"https://github.com/sulu/sulu.git","svn_url":"https://github.com/sulu/sulu","homepage":"sulu.io","size":76844,"stargazers_count":118,"watchers_count":118,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":34,"mirror_url":null,"open_issues_count":369,"forks":34,"open_issues":369,"watchers":118,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/sulu/sulu/pulls/2377"},"html":{"href":"https://github.com/sulu/sulu/pull/2377"},"issue":{"href":"https://api.github.com/repos/sulu/sulu/issues/2377"},"comments":{"href":"https://api.github.com/repos/sulu/sulu/issues/2377/comments"},"review_comments":{"href":"https://api.github.com/repos/sulu/sulu/pulls/2377/comments"},"review_comment":{"href":"https://api.github.com/repos/sulu/sulu/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sulu/sulu/pulls/2377/commits"},"statuses":{"href":"https://api.github.com/repos/sulu/sulu/statuses/0ab2151f696ad6eebb3b79b4dc3790badce43698"}}}}