{"action":"created","comment":{"url":"https://api.github.com/repos/claroline/Distribution/pulls/comments/63861929","id":63861929,"diff_hunk":"@@ -1152,4 +1119,38 @@ public function getLogger()\n     {\n         return $this->logger;\n     }\n+\n+    public function getTemplateData(File $file, $refresh = false)\n+    {\n+        //from cache\n+        if (!$refresh) {\n+            return $this->importData;\n+        }\n+\n+        $archive = new \\ZipArchive();\n+        $fileName = $file->getBaseName();\n+        $extractPath = $this->templateDir.$fileName;\n+\n+        if ($archive->open($file->getPathname())) {\n+            $res = ;","path":"main/core/Manager/WorkspaceManager.php","position":null,"original_position":138,"commit_id":"a198be218f0dc79ca3e3055de19c4051cfade7e5","original_commit_id":"f0c73afab8f3e404cdb7159423fa78d6cf27ca80","user":{"login":"ngodfraind","id":1397430,"avatar_url":"https://avatars.githubusercontent.com/u/1397430?v=3","gravatar_id":"","url":"https://api.github.com/users/ngodfraind","html_url":"https://github.com/ngodfraind","followers_url":"https://api.github.com/users/ngodfraind/followers","following_url":"https://api.github.com/users/ngodfraind/following{/other_user}","gists_url":"https://api.github.com/users/ngodfraind/gists{/gist_id}","starred_url":"https://api.github.com/users/ngodfraind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngodfraind/subscriptions","organizations_url":"https://api.github.com/users/ngodfraind/orgs","repos_url":"https://api.github.com/users/ngodfraind/repos","events_url":"https://api.github.com/users/ngodfraind/events{/privacy}","received_events_url":"https://api.github.com/users/ngodfraind/received_events","type":"User","site_admin":false},"body":"File was not saved properly lol.","created_at":"2016-05-19T11:28:18Z","updated_at":"2016-05-19T11:28:18Z","html_url":"https://github.com/claroline/Distribution/pull/332#discussion_r63861929","pull_request_url":"https://api.github.com/repos/claroline/Distribution/pulls/332","_links":{"self":{"href":"https://api.github.com/repos/claroline/Distribution/pulls/comments/63861929"},"html":{"href":"https://github.com/claroline/Distribution/pull/332#discussion_r63861929"},"pull_request":{"href":"https://api.github.com/repos/claroline/Distribution/pulls/332"}}},"pull_request":{"url":"https://api.github.com/repos/claroline/Distribution/pulls/332","id":70556572,"html_url":"https://github.com/claroline/Distribution/pull/332","diff_url":"https://github.com/claroline/Distribution/pull/332.diff","patch_url":"https://github.com/claroline/Distribution/pull/332.patch","issue_url":"https://api.github.com/repos/claroline/Distribution/issues/332","number":332,"state":"open","locked":false,"title":"[CoreBundle] Refactoring workspace creation.","user":{"login":"ngodfraind","id":1397430,"avatar_url":"https://avatars.githubusercontent.com/u/1397430?v=3","gravatar_id":"","url":"https://api.github.com/users/ngodfraind","html_url":"https://github.com/ngodfraind","followers_url":"https://api.github.com/users/ngodfraind/followers","following_url":"https://api.github.com/users/ngodfraind/following{/other_user}","gists_url":"https://api.github.com/users/ngodfraind/gists{/gist_id}","starred_url":"https://api.github.com/users/ngodfraind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngodfraind/subscriptions","organizations_url":"https://api.github.com/users/ngodfraind/orgs","repos_url":"https://api.github.com/users/ngodfraind/repos","events_url":"https://api.github.com/users/ngodfraind/events{/privacy}","received_events_url":"https://api.github.com/users/ngodfraind/received_events","type":"User","site_admin":false},"body":"There are still some minor optimizations that could be done but it's much better overall.\r\n\r\n- Fix Blog tag import\r\n- Removes the Workspace\\Configuration class\r\n- Adds tests to the workspace API (and fix the old weird broken stuff)\r\n- Much cleaner import overall (no more $this->data and $this->workspace in services).\r\n- A lot of dead code removed\r\n- TransfertManager changed to TransferManager\r\n- Fixing rich text parser for cli import\r\n\r\ntodo:\r\n- Test the cursus [done]\r\n- double check everything is working [done]\r\n- clean the template directory after import [done]\r\n- Fix the tests for travis","created_at":"2016-05-18T16:10:40Z","updated_at":"2016-05-19T11:28:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0f307ba25e0795c0450d810ab8a7ae8b4affc791","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/claroline/Distribution/pulls/332/commits","review_comments_url":"https://api.github.com/repos/claroline/Distribution/pulls/332/comments","review_comment_url":"https://api.github.com/repos/claroline/Distribution/pulls/comments{/number}","comments_url":"https://api.github.com/repos/claroline/Distribution/issues/332/comments","statuses_url":"https://api.github.com/repos/claroline/Distribution/statuses/a198be218f0dc79ca3e3055de19c4051cfade7e5","head":{"label":"claroline:fixing-personal-workspace-creation","ref":"fixing-personal-workspace-creation","sha":"a198be218f0dc79ca3e3055de19c4051cfade7e5","user":{"login":"claroline","id":897720,"avatar_url":"https://avatars.githubusercontent.com/u/897720?v=3","gravatar_id":"","url":"https://api.github.com/users/claroline","html_url":"https://github.com/claroline","followers_url":"https://api.github.com/users/claroline/followers","following_url":"https://api.github.com/users/claroline/following{/other_user}","gists_url":"https://api.github.com/users/claroline/gists{/gist_id}","starred_url":"https://api.github.com/users/claroline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claroline/subscriptions","organizations_url":"https://api.github.com/users/claroline/orgs","repos_url":"https://api.github.com/users/claroline/repos","events_url":"https://api.github.com/users/claroline/events{/privacy}","received_events_url":"https://api.github.com/users/claroline/received_events","type":"Organization","site_admin":false},"repo":{"id":54133088,"name":"Distribution","full_name":"claroline/Distribution","owner":{"login":"claroline","id":897720,"avatar_url":"https://avatars.githubusercontent.com/u/897720?v=3","gravatar_id":"","url":"https://api.github.com/users/claroline","html_url":"https://github.com/claroline","followers_url":"https://api.github.com/users/claroline/followers","following_url":"https://api.github.com/users/claroline/following{/other_user}","gists_url":"https://api.github.com/users/claroline/gists{/gist_id}","starred_url":"https://api.github.com/users/claroline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claroline/subscriptions","organizations_url":"https://api.github.com/users/claroline/orgs","repos_url":"https://api.github.com/users/claroline/repos","events_url":"https://api.github.com/users/claroline/events{/privacy}","received_events_url":"https://api.github.com/users/claroline/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/claroline/Distribution","description":"Official Claroline Connect LMS Distribution","fork":false,"url":"https://api.github.com/repos/claroline/Distribution","forks_url":"https://api.github.com/repos/claroline/Distribution/forks","keys_url":"https://api.github.com/repos/claroline/Distribution/keys{/key_id}","collaborators_url":"https://api.github.com/repos/claroline/Distribution/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/claroline/Distribution/teams","hooks_url":"https://api.github.com/repos/claroline/Distribution/hooks","issue_events_url":"https://api.github.com/repos/claroline/Distribution/issues/events{/number}","events_url":"https://api.github.com/repos/claroline/Distribution/events","assignees_url":"https://api.github.com/repos/claroline/Distribution/assignees{/user}","branches_url":"https://api.github.com/repos/claroline/Distribution/branches{/branch}","tags_url":"https://api.github.com/repos/claroline/Distribution/tags","blobs_url":"https://api.github.com/repos/claroline/Distribution/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/claroline/Distribution/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/claroline/Distribution/git/refs{/sha}","trees_url":"https://api.github.com/repos/claroline/Distribution/git/trees{/sha}","statuses_url":"https://api.github.com/repos/claroline/Distribution/statuses/{sha}","languages_url":"https://api.github.com/repos/claroline/Distribution/languages","stargazers_url":"https://api.github.com/repos/claroline/Distribution/stargazers","contributors_url":"https://api.github.com/repos/claroline/Distribution/contributors","subscribers_url":"https://api.github.com/repos/claroline/Distribution/subscribers","subscription_url":"https://api.github.com/repos/claroline/Distribution/subscription","commits_url":"https://api.github.com/repos/claroline/Distribution/commits{/sha}","git_commits_url":"https://api.github.com/repos/claroline/Distribution/git/commits{/sha}","comments_url":"https://api.github.com/repos/claroline/Distribution/comments{/number}","issue_comment_url":"https://api.github.com/repos/claroline/Distribution/issues/comments{/number}","contents_url":"https://api.github.com/repos/claroline/Distribution/contents/{+path}","compare_url":"https://api.github.com/repos/claroline/Distribution/compare/{base}...{head}","merges_url":"https://api.github.com/repos/claroline/Distribution/merges","archive_url":"https://api.github.com/repos/claroline/Distribution/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/claroline/Distribution/downloads","issues_url":"https://api.github.com/repos/claroline/Distribution/issues{/number}","pulls_url":"https://api.github.com/repos/claroline/Distribution/pulls{/number}","milestones_url":"https://api.github.com/repos/claroline/Distribution/milestones{/number}","notifications_url":"https://api.github.com/repos/claroline/Distribution/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/claroline/Distribution/labels{/name}","releases_url":"https://api.github.com/repos/claroline/Distribution/releases{/id}","deployments_url":"https://api.github.com/repos/claroline/Distribution/deployments","created_at":"2016-03-17T16:17:50Z","updated_at":"2016-05-17T10:39:18Z","pushed_at":"2016-05-19T11:27:41Z","git_url":"git://github.com/claroline/Distribution.git","ssh_url":"git@github.com:claroline/Distribution.git","clone_url":"https://github.com/claroline/Distribution.git","svn_url":"https://github.com/claroline/Distribution","homepage":"http://www.claroline.net","size":56510,"stargazers_count":6,"watchers_count":6,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":138,"forks":5,"open_issues":138,"watchers":6,"default_branch":"master"}},"base":{"label":"claroline:master","ref":"master","sha":"222caf34ffda6307f7254420ca08ab828e6284b9","user":{"login":"claroline","id":897720,"avatar_url":"https://avatars.githubusercontent.com/u/897720?v=3","gravatar_id":"","url":"https://api.github.com/users/claroline","html_url":"https://github.com/claroline","followers_url":"https://api.github.com/users/claroline/followers","following_url":"https://api.github.com/users/claroline/following{/other_user}","gists_url":"https://api.github.com/users/claroline/gists{/gist_id}","starred_url":"https://api.github.com/users/claroline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claroline/subscriptions","organizations_url":"https://api.github.com/users/claroline/orgs","repos_url":"https://api.github.com/users/claroline/repos","events_url":"https://api.github.com/users/claroline/events{/privacy}","received_events_url":"https://api.github.com/users/claroline/received_events","type":"Organization","site_admin":false},"repo":{"id":54133088,"name":"Distribution","full_name":"claroline/Distribution","owner":{"login":"claroline","id":897720,"avatar_url":"https://avatars.githubusercontent.com/u/897720?v=3","gravatar_id":"","url":"https://api.github.com/users/claroline","html_url":"https://github.com/claroline","followers_url":"https://api.github.com/users/claroline/followers","following_url":"https://api.github.com/users/claroline/following{/other_user}","gists_url":"https://api.github.com/users/claroline/gists{/gist_id}","starred_url":"https://api.github.com/users/claroline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claroline/subscriptions","organizations_url":"https://api.github.com/users/claroline/orgs","repos_url":"https://api.github.com/users/claroline/repos","events_url":"https://api.github.com/users/claroline/events{/privacy}","received_events_url":"https://api.github.com/users/claroline/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/claroline/Distribution","description":"Official Claroline Connect LMS Distribution","fork":false,"url":"https://api.github.com/repos/claroline/Distribution","forks_url":"https://api.github.com/repos/claroline/Distribution/forks","keys_url":"https://api.github.com/repos/claroline/Distribution/keys{/key_id}","collaborators_url":"https://api.github.com/repos/claroline/Distribution/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/claroline/Distribution/teams","hooks_url":"https://api.github.com/repos/claroline/Distribution/hooks","issue_events_url":"https://api.github.com/repos/claroline/Distribution/issues/events{/number}","events_url":"https://api.github.com/repos/claroline/Distribution/events","assignees_url":"https://api.github.com/repos/claroline/Distribution/assignees{/user}","branches_url":"https://api.github.com/repos/claroline/Distribution/branches{/branch}","tags_url":"https://api.github.com/repos/claroline/Distribution/tags","blobs_url":"https://api.github.com/repos/claroline/Distribution/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/claroline/Distribution/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/claroline/Distribution/git/refs{/sha}","trees_url":"https://api.github.com/repos/claroline/Distribution/git/trees{/sha}","statuses_url":"https://api.github.com/repos/claroline/Distribution/statuses/{sha}","languages_url":"https://api.github.com/repos/claroline/Distribution/languages","stargazers_url":"https://api.github.com/repos/claroline/Distribution/stargazers","contributors_url":"https://api.github.com/repos/claroline/Distribution/contributors","subscribers_url":"https://api.github.com/repos/claroline/Distribution/subscribers","subscription_url":"https://api.github.com/repos/claroline/Distribution/subscription","commits_url":"https://api.github.com/repos/claroline/Distribution/commits{/sha}","git_commits_url":"https://api.github.com/repos/claroline/Distribution/git/commits{/sha}","comments_url":"https://api.github.com/repos/claroline/Distribution/comments{/number}","issue_comment_url":"https://api.github.com/repos/claroline/Distribution/issues/comments{/number}","contents_url":"https://api.github.com/repos/claroline/Distribution/contents/{+path}","compare_url":"https://api.github.com/repos/claroline/Distribution/compare/{base}...{head}","merges_url":"https://api.github.com/repos/claroline/Distribution/merges","archive_url":"https://api.github.com/repos/claroline/Distribution/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/claroline/Distribution/downloads","issues_url":"https://api.github.com/repos/claroline/Distribution/issues{/number}","pulls_url":"https://api.github.com/repos/claroline/Distribution/pulls{/number}","milestones_url":"https://api.github.com/repos/claroline/Distribution/milestones{/number}","notifications_url":"https://api.github.com/repos/claroline/Distribution/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/claroline/Distribution/labels{/name}","releases_url":"https://api.github.com/repos/claroline/Distribution/releases{/id}","deployments_url":"https://api.github.com/repos/claroline/Distribution/deployments","created_at":"2016-03-17T16:17:50Z","updated_at":"2016-05-17T10:39:18Z","pushed_at":"2016-05-19T11:27:41Z","git_url":"git://github.com/claroline/Distribution.git","ssh_url":"git@github.com:claroline/Distribution.git","clone_url":"https://github.com/claroline/Distribution.git","svn_url":"https://github.com/claroline/Distribution","homepage":"http://www.claroline.net","size":56510,"stargazers_count":6,"watchers_count":6,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":138,"forks":5,"open_issues":138,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/claroline/Distribution/pulls/332"},"html":{"href":"https://github.com/claroline/Distribution/pull/332"},"issue":{"href":"https://api.github.com/repos/claroline/Distribution/issues/332"},"comments":{"href":"https://api.github.com/repos/claroline/Distribution/issues/332/comments"},"review_comments":{"href":"https://api.github.com/repos/claroline/Distribution/pulls/332/comments"},"review_comment":{"href":"https://api.github.com/repos/claroline/Distribution/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/claroline/Distribution/pulls/332/commits"},"statuses":{"href":"https://api.github.com/repos/claroline/Distribution/statuses/a198be218f0dc79ca3e3055de19c4051cfade7e5"}}}}