{"action":"created","comment":{"url":"https://api.github.com/repos/hostnet/webpack-bundle/pulls/comments/41551115","id":41551115,"diff_hunk":"@@ -62,12 +62,20 @@ public function getFunctions()\n      */\n     public function webpackAsset($asset)\n     {\n-        $asset_id      = rtrim($this->public_path, '/') . '/' . Compiler::getAliasId($asset);\n-        $document_root = isset($_SERVER['DOCUMENT_ROOT']) ? $_SERVER['DOCUMENT_ROOT'] : '';\n+        // @FIXME: This method is used by the compiler which may or may not run from a CLI-environment. In this case the\n+        //         variable DOCUMENT_ROOT isn't available and this method may produce unexpected behavior.\n+\n+        $asset_id        = rtrim($this->public_path, '/') . '/' . Compiler::getAliasId($asset);\n+        $document_root   = isset($_SERVER['DOCUMENT_ROOT']) ? $_SERVER['DOCUMENT_ROOT'] : '';\n+        $full_asset_path = $document_root . '/' . $asset_id;","path":"src/Bundle/Twig/TwigExtension.php","position":11,"original_position":11,"commit_id":"2a4b4f84a9a314205f3416415582ba1fcce4768d","original_commit_id":"2a4b4f84a9a314205f3416415582ba1fcce4768d","user":{"login":"haroldiedema","id":567518,"avatar_url":"https://avatars.githubusercontent.com/u/567518?v=3","gravatar_id":"","url":"https://api.github.com/users/haroldiedema","html_url":"https://github.com/haroldiedema","followers_url":"https://api.github.com/users/haroldiedema/followers","following_url":"https://api.github.com/users/haroldiedema/following{/other_user}","gists_url":"https://api.github.com/users/haroldiedema/gists{/gist_id}","starred_url":"https://api.github.com/users/haroldiedema/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haroldiedema/subscriptions","organizations_url":"https://api.github.com/users/haroldiedema/orgs","repos_url":"https://api.github.com/users/haroldiedema/repos","events_url":"https://api.github.com/users/haroldiedema/events{/privacy}","received_events_url":"https://api.github.com/users/haroldiedema/received_events","type":"User","site_admin":false},"body":"Making sure a compiled file exists. Otherwise you'd be spammed with 404-messages in the console in your browser :')\r\n","created_at":"2015-10-08T18:38:00Z","updated_at":"2015-10-08T18:38:00Z","html_url":"https://github.com/hostnet/webpack-bundle/pull/14#discussion_r41551115","pull_request_url":"https://api.github.com/repos/hostnet/webpack-bundle/pulls/14","_links":{"self":{"href":"https://api.github.com/repos/hostnet/webpack-bundle/pulls/comments/41551115"},"html":{"href":"https://github.com/hostnet/webpack-bundle/pull/14#discussion_r41551115"},"pull_request":{"href":"https://api.github.com/repos/hostnet/webpack-bundle/pulls/14"}}},"pull_request":{"url":"https://api.github.com/repos/hostnet/webpack-bundle/pulls/14","id":47187284,"html_url":"https://github.com/hostnet/webpack-bundle/pull/14","diff_url":"https://github.com/hostnet/webpack-bundle/pull/14.diff","patch_url":"https://github.com/hostnet/webpack-bundle/pull/14.patch","issue_url":"https://api.github.com/repos/hostnet/webpack-bundle/issues/14","number":14,"state":"open","locked":false,"title":"Feature/inline extensions","user":{"login":"haroldiedema","id":567518,"avatar_url":"https://avatars.githubusercontent.com/u/567518?v=3","gravatar_id":"","url":"https://api.github.com/users/haroldiedema","html_url":"https://github.com/haroldiedema","followers_url":"https://api.github.com/users/haroldiedema/followers","following_url":"https://api.github.com/users/haroldiedema/following{/other_user}","gists_url":"https://api.github.com/users/haroldiedema/gists{/gist_id}","starred_url":"https://api.github.com/users/haroldiedema/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haroldiedema/subscriptions","organizations_url":"https://api.github.com/users/haroldiedema/orgs","repos_url":"https://api.github.com/users/haroldiedema/repos","events_url":"https://api.github.com/users/haroldiedema/events{/privacy}","received_events_url":"https://api.github.com/users/haroldiedema/received_events","type":"User","site_admin":false},"body":"Allows for optionally specified languages in the `inline` variant of the `webpack` twig-block. See readme update for info & example.\r\n\r\nThere are no BC-breaks in this update.","created_at":"2015-10-08T18:17:04Z","updated_at":"2015-10-08T18:38:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fffee152082ac5aed544fa1d904076749aa8a776","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hostnet/webpack-bundle/pulls/14/commits","review_comments_url":"https://api.github.com/repos/hostnet/webpack-bundle/pulls/14/comments","review_comment_url":"https://api.github.com/repos/hostnet/webpack-bundle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hostnet/webpack-bundle/issues/14/comments","statuses_url":"https://api.github.com/repos/hostnet/webpack-bundle/statuses/2a4b4f84a9a314205f3416415582ba1fcce4768d","head":{"label":"haroldiedema:feature/inline-extensions","ref":"feature/inline-extensions","sha":"2a4b4f84a9a314205f3416415582ba1fcce4768d","user":{"login":"haroldiedema","id":567518,"avatar_url":"https://avatars.githubusercontent.com/u/567518?v=3","gravatar_id":"","url":"https://api.github.com/users/haroldiedema","html_url":"https://github.com/haroldiedema","followers_url":"https://api.github.com/users/haroldiedema/followers","following_url":"https://api.github.com/users/haroldiedema/following{/other_user}","gists_url":"https://api.github.com/users/haroldiedema/gists{/gist_id}","starred_url":"https://api.github.com/users/haroldiedema/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haroldiedema/subscriptions","organizations_url":"https://api.github.com/users/haroldiedema/orgs","repos_url":"https://api.github.com/users/haroldiedema/repos","events_url":"https://api.github.com/users/haroldiedema/events{/privacy}","received_events_url":"https://api.github.com/users/haroldiedema/received_events","type":"User","site_admin":false},"repo":{"id":43839334,"name":"webpack-bundle","full_name":"haroldiedema/webpack-bundle","owner":{"login":"haroldiedema","id":567518,"avatar_url":"https://avatars.githubusercontent.com/u/567518?v=3","gravatar_id":"","url":"https://api.github.com/users/haroldiedema","html_url":"https://github.com/haroldiedema","followers_url":"https://api.github.com/users/haroldiedema/followers","following_url":"https://api.github.com/users/haroldiedema/following{/other_user}","gists_url":"https://api.github.com/users/haroldiedema/gists{/gist_id}","starred_url":"https://api.github.com/users/haroldiedema/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haroldiedema/subscriptions","organizations_url":"https://api.github.com/users/haroldiedema/orgs","repos_url":"https://api.github.com/users/haroldiedema/repos","events_url":"https://api.github.com/users/haroldiedema/events{/privacy}","received_events_url":"https://api.github.com/users/haroldiedema/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/haroldiedema/webpack-bundle","description":"","fork":true,"url":"https://api.github.com/repos/haroldiedema/webpack-bundle","forks_url":"https://api.github.com/repos/haroldiedema/webpack-bundle/forks","keys_url":"https://api.github.com/repos/haroldiedema/webpack-bundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/haroldiedema/webpack-bundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/haroldiedema/webpack-bundle/teams","hooks_url":"https://api.github.com/repos/haroldiedema/webpack-bundle/hooks","issue_events_url":"https://api.github.com/repos/haroldiedema/webpack-bundle/issues/events{/number}","events_url":"https://api.github.com/repos/haroldiedema/webpack-bundle/events","assignees_url":"https://api.github.com/repos/haroldiedema/webpack-bundle/assignees{/user}","branches_url":"https://api.github.com/repos/haroldiedema/webpack-bundle/branches{/branch}","tags_url":"https://api.github.com/repos/haroldiedema/webpack-bundle/tags","blobs_url":"https://api.github.com/repos/haroldiedema/webpack-bundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/haroldiedema/webpack-bundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/haroldiedema/webpack-bundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/haroldiedema/webpack-bundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/haroldiedema/webpack-bundle/statuses/{sha}","languages_url":"https://api.github.com/repos/haroldiedema/webpack-bundle/languages","stargazers_url":"https://api.github.com/repos/haroldiedema/webpack-bundle/stargazers","contributors_url":"https://api.github.com/repos/haroldiedema/webpack-bundle/contributors","subscribers_url":"https://api.github.com/repos/haroldiedema/webpack-bundle/subscribers","subscription_url":"https://api.github.com/repos/haroldiedema/webpack-bundle/subscription","commits_url":"https://api.github.com/repos/haroldiedema/webpack-bundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/haroldiedema/webpack-bundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/haroldiedema/webpack-bundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/haroldiedema/webpack-bundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/haroldiedema/webpack-bundle/contents/{+path}","compare_url":"https://api.github.com/repos/haroldiedema/webpack-bundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/haroldiedema/webpack-bundle/merges","archive_url":"https://api.github.com/repos/haroldiedema/webpack-bundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/haroldiedema/webpack-bundle/downloads","issues_url":"https://api.github.com/repos/haroldiedema/webpack-bundle/issues{/number}","pulls_url":"https://api.github.com/repos/haroldiedema/webpack-bundle/pulls{/number}","milestones_url":"https://api.github.com/repos/haroldiedema/webpack-bundle/milestones{/number}","notifications_url":"https://api.github.com/repos/haroldiedema/webpack-bundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/haroldiedema/webpack-bundle/labels{/name}","releases_url":"https://api.github.com/repos/haroldiedema/webpack-bundle/releases{/id}","created_at":"2015-10-07T19:18:25Z","updated_at":"2015-10-07T19:18:26Z","pushed_at":"2015-10-08T18:15:47Z","git_url":"git://github.com/haroldiedema/webpack-bundle.git","ssh_url":"git@github.com:haroldiedema/webpack-bundle.git","clone_url":"https://github.com/haroldiedema/webpack-bundle.git","svn_url":"https://github.com/haroldiedema/webpack-bundle","homepage":null,"size":298,"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":"master"}},"base":{"label":"hostnet:master","ref":"master","sha":"73b8e21d4fb70e7fb44381f6a23c0c2c0ec68030","user":{"login":"hostnet","id":1465011,"avatar_url":"https://avatars.githubusercontent.com/u/1465011?v=3","gravatar_id":"","url":"https://api.github.com/users/hostnet","html_url":"https://github.com/hostnet","followers_url":"https://api.github.com/users/hostnet/followers","following_url":"https://api.github.com/users/hostnet/following{/other_user}","gists_url":"https://api.github.com/users/hostnet/gists{/gist_id}","starred_url":"https://api.github.com/users/hostnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hostnet/subscriptions","organizations_url":"https://api.github.com/users/hostnet/orgs","repos_url":"https://api.github.com/users/hostnet/repos","events_url":"https://api.github.com/users/hostnet/events{/privacy}","received_events_url":"https://api.github.com/users/hostnet/received_events","type":"Organization","site_admin":false},"repo":{"id":41296415,"name":"webpack-bundle","full_name":"hostnet/webpack-bundle","owner":{"login":"hostnet","id":1465011,"avatar_url":"https://avatars.githubusercontent.com/u/1465011?v=3","gravatar_id":"","url":"https://api.github.com/users/hostnet","html_url":"https://github.com/hostnet","followers_url":"https://api.github.com/users/hostnet/followers","following_url":"https://api.github.com/users/hostnet/following{/other_user}","gists_url":"https://api.github.com/users/hostnet/gists{/gist_id}","starred_url":"https://api.github.com/users/hostnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hostnet/subscriptions","organizations_url":"https://api.github.com/users/hostnet/orgs","repos_url":"https://api.github.com/users/hostnet/repos","events_url":"https://api.github.com/users/hostnet/events{/privacy}","received_events_url":"https://api.github.com/users/hostnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hostnet/webpack-bundle","description":"","fork":false,"url":"https://api.github.com/repos/hostnet/webpack-bundle","forks_url":"https://api.github.com/repos/hostnet/webpack-bundle/forks","keys_url":"https://api.github.com/repos/hostnet/webpack-bundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hostnet/webpack-bundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hostnet/webpack-bundle/teams","hooks_url":"https://api.github.com/repos/hostnet/webpack-bundle/hooks","issue_events_url":"https://api.github.com/repos/hostnet/webpack-bundle/issues/events{/number}","events_url":"https://api.github.com/repos/hostnet/webpack-bundle/events","assignees_url":"https://api.github.com/repos/hostnet/webpack-bundle/assignees{/user}","branches_url":"https://api.github.com/repos/hostnet/webpack-bundle/branches{/branch}","tags_url":"https://api.github.com/repos/hostnet/webpack-bundle/tags","blobs_url":"https://api.github.com/repos/hostnet/webpack-bundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hostnet/webpack-bundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hostnet/webpack-bundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/hostnet/webpack-bundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hostnet/webpack-bundle/statuses/{sha}","languages_url":"https://api.github.com/repos/hostnet/webpack-bundle/languages","stargazers_url":"https://api.github.com/repos/hostnet/webpack-bundle/stargazers","contributors_url":"https://api.github.com/repos/hostnet/webpack-bundle/contributors","subscribers_url":"https://api.github.com/repos/hostnet/webpack-bundle/subscribers","subscription_url":"https://api.github.com/repos/hostnet/webpack-bundle/subscription","commits_url":"https://api.github.com/repos/hostnet/webpack-bundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/hostnet/webpack-bundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/hostnet/webpack-bundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/hostnet/webpack-bundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/hostnet/webpack-bundle/contents/{+path}","compare_url":"https://api.github.com/repos/hostnet/webpack-bundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hostnet/webpack-bundle/merges","archive_url":"https://api.github.com/repos/hostnet/webpack-bundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hostnet/webpack-bundle/downloads","issues_url":"https://api.github.com/repos/hostnet/webpack-bundle/issues{/number}","pulls_url":"https://api.github.com/repos/hostnet/webpack-bundle/pulls{/number}","milestones_url":"https://api.github.com/repos/hostnet/webpack-bundle/milestones{/number}","notifications_url":"https://api.github.com/repos/hostnet/webpack-bundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hostnet/webpack-bundle/labels{/name}","releases_url":"https://api.github.com/repos/hostnet/webpack-bundle/releases{/id}","created_at":"2015-08-24T10:09:51Z","updated_at":"2015-10-07T19:52:41Z","pushed_at":"2015-10-08T18:17:05Z","git_url":"git://github.com/hostnet/webpack-bundle.git","ssh_url":"git@github.com:hostnet/webpack-bundle.git","clone_url":"https://github.com/hostnet/webpack-bundle.git","svn_url":"https://github.com/hostnet/webpack-bundle","homepage":null,"size":298,"stargazers_count":4,"watchers_count":4,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":3,"forks":3,"open_issues":3,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hostnet/webpack-bundle/pulls/14"},"html":{"href":"https://github.com/hostnet/webpack-bundle/pull/14"},"issue":{"href":"https://api.github.com/repos/hostnet/webpack-bundle/issues/14"},"comments":{"href":"https://api.github.com/repos/hostnet/webpack-bundle/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/hostnet/webpack-bundle/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/hostnet/webpack-bundle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hostnet/webpack-bundle/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/hostnet/webpack-bundle/statuses/2a4b4f84a9a314205f3416415582ba1fcce4768d"}}}}