{"action":"created","issue":{"url":"https://api.github.com/repos/contao/core-bundle/issues/215","labels_url":"https://api.github.com/repos/contao/core-bundle/issues/215/labels{/name}","comments_url":"https://api.github.com/repos/contao/core-bundle/issues/215/comments","events_url":"https://api.github.com/repos/contao/core-bundle/issues/215/events","html_url":"https://github.com/contao/core-bundle/pull/215","id":68903320,"number":215,"title":"[RTM] Fix symlinks command","user":{"login":"bytehead","id":754921,"avatar_url":"https://avatars.githubusercontent.com/u/754921?v=3","gravatar_id":"","url":"https://api.github.com/users/bytehead","html_url":"https://github.com/bytehead","followers_url":"https://api.github.com/users/bytehead/followers","following_url":"https://api.github.com/users/bytehead/following{/other_user}","gists_url":"https://api.github.com/users/bytehead/gists{/gist_id}","starred_url":"https://api.github.com/users/bytehead/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bytehead/subscriptions","organizations_url":"https://api.github.com/users/bytehead/orgs","repos_url":"https://api.github.com/users/bytehead/repos","events_url":"https://api.github.com/users/bytehead/events{/privacy}","received_events_url":"https://api.github.com/users/bytehead/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/contao/core-bundle/labels/defect","name":"defect","color":"bd2c00"}],"state":"closed","locked":false,"assignee":{"login":"leofeyer","id":1192057,"avatar_url":"https://avatars.githubusercontent.com/u/1192057?v=3","gravatar_id":"","url":"https://api.github.com/users/leofeyer","html_url":"https://github.com/leofeyer","followers_url":"https://api.github.com/users/leofeyer/followers","following_url":"https://api.github.com/users/leofeyer/following{/other_user}","gists_url":"https://api.github.com/users/leofeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/leofeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leofeyer/subscriptions","organizations_url":"https://api.github.com/users/leofeyer/orgs","repos_url":"https://api.github.com/users/leofeyer/repos","events_url":"https://api.github.com/users/leofeyer/events{/privacy}","received_events_url":"https://api.github.com/users/leofeyer/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/contao/core-bundle/milestones/1","html_url":"https://github.com/contao/core-bundle/milestones/4.0.0","labels_url":"https://api.github.com/repos/contao/core-bundle/milestones/1/labels","id":748885,"number":1,"title":"4.0.0","description":"Contao 4.0.0 (major release)","creator":{"login":"leofeyer","id":1192057,"avatar_url":"https://avatars.githubusercontent.com/u/1192057?v=3","gravatar_id":"","url":"https://api.github.com/users/leofeyer","html_url":"https://github.com/leofeyer","followers_url":"https://api.github.com/users/leofeyer/followers","following_url":"https://api.github.com/users/leofeyer/following{/other_user}","gists_url":"https://api.github.com/users/leofeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/leofeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leofeyer/subscriptions","organizations_url":"https://api.github.com/users/leofeyer/orgs","repos_url":"https://api.github.com/users/leofeyer/repos","events_url":"https://api.github.com/users/leofeyer/events{/privacy}","received_events_url":"https://api.github.com/users/leofeyer/received_events","type":"User","site_admin":false},"open_issues":16,"closed_issues":136,"state":"open","created_at":"2014-08-10T18:11:38Z","updated_at":"2015-04-16T18:21:29Z","due_on":"2015-05-25T07:00:00Z","closed_at":null},"comments":6,"created_at":"2015-04-16T11:24:07Z","updated_at":"2015-04-16T18:21:29Z","closed_at":"2015-04-16T18:21:29Z","pull_request":{"url":"https://api.github.com/repos/contao/core-bundle/pulls/215","html_url":"https://github.com/contao/core-bundle/pull/215","diff_url":"https://github.com/contao/core-bundle/pull/215.diff","patch_url":"https://github.com/contao/core-bundle/pull/215.patch"},"body":"This commit fixes an issue with the symlink command (`php app/console contao:symlinks`) to symlink the `files`-directory (upload directory).\r\n\r\n**Before (e.g. `$uploadPath = 'files'`):**\r\n`files` gets a `/` added and the result is `../../files` and ends up with\r\n\r\n```bash\r\n[Symfony\\Component\\Filesystem\\Exception\\IOException]                                                                                              \r\n  Failed to create symbolic link from \"../../files/\" to \"/var/www/dev/contao-4/standard-edition-develop/web/files/\".\r\n```\r\n\r\n**After (same `$uploadPath`):**\r\n```bash\r\nAdded web/files as symlink to ../files.\r\nAdded system/themes/flexible as symlink to ../../vendor/contao/core-bundle/src/Resources/contao/themes/flexible.\r\nAdded web/assets as symlink to ../assets.\r\nAdded web/system/themes as symlink to ../../system/themes.\r\nAdded system/logs as symlink to ../app/logs.\r\n```\r\nSecondary, I changed some code style within the same file."},"comment":{"url":"https://api.github.com/repos/contao/core-bundle/issues/comments/93807269","html_url":"https://github.com/contao/core-bundle/pull/215#issuecomment-93807269","issue_url":"https://api.github.com/repos/contao/core-bundle/issues/215","id":93807269,"user":{"login":"leofeyer","id":1192057,"avatar_url":"https://avatars.githubusercontent.com/u/1192057?v=3","gravatar_id":"","url":"https://api.github.com/users/leofeyer","html_url":"https://github.com/leofeyer","followers_url":"https://api.github.com/users/leofeyer/followers","following_url":"https://api.github.com/users/leofeyer/following{/other_user}","gists_url":"https://api.github.com/users/leofeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/leofeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leofeyer/subscriptions","organizations_url":"https://api.github.com/users/leofeyer/orgs","repos_url":"https://api.github.com/users/leofeyer/repos","events_url":"https://api.github.com/users/leofeyer/events{/privacy}","received_events_url":"https://api.github.com/users/leofeyer/received_events","type":"User","site_admin":false},"created_at":"2015-04-16T18:21:29Z","updated_at":"2015-04-16T18:21:29Z","body":"Fixed in c81b36c288509153a8e1ce7ffe0b151f5ab50234. I used `rtrim($path, '/')` to make sure there is never a trailing slash."}}