{"action":"created","comment":{"url":"https://api.github.com/repos/phpbb/phpbb/pulls/comments/29550803","id":29550803,"diff_hunk":"@@ -0,0 +1,80 @@\n+<?php\n+/**\n+ *\n+ * This file is part of the phpBB Forum Software package.\n+ *\n+ * @copyright (c) phpBB Limited <https://www.phpbb.com>\n+ * @license GNU General Public License, version 2 (GPL-2.0)\n+ *\n+ * For full copyright and license information, please see\n+ * the docs/CREDITS.txt file.\n+ *\n+ */\n+\n+/**\n+ * @ignore\n+ */\n+define('IN_PHPBB', true);\n+define('IN_INSTALL', true);\n+define('PHPBB_ENVIRONMENT', 'production');\n+$phpbb_root_path = '../';\n+$phpEx = substr(strrchr(__FILE__, '.'), 1);\n+\n+//\n+// Let's do the common.php logic\n+//\n+require($phpbb_root_path . 'includes/startup.' . $phpEx);\n+require($phpbb_root_path . 'phpbb/class_loader.' . $phpEx);\n+\n+$phpbb_class_loader = new \\phpbb\\class_loader('phpbb\\\\install\\\\', \"{$phpbb_root_path}install/\", $phpEx);\n+$phpbb_class_loader->register();\n+\n+$phpbb_class_loader = new \\phpbb\\class_loader('phpbb\\\\', \"{$phpbb_root_path}phpbb/\", $phpEx);\n+$phpbb_class_loader->register();\n+\n+// In case $phpbb_adm_relative_path is not set (in case of an update), use the default.\n+$phpbb_adm_relative_path = (isset($phpbb_adm_relative_path)) ? $phpbb_adm_relative_path : 'adm/';\n+$phpbb_admin_path = (defined('PHPBB_ADMIN_PATH')) ? PHPBB_ADMIN_PATH : $phpbb_root_path . $phpbb_adm_relative_path;\n+\n+// Include files\n+require($phpbb_root_path . 'includes/functions.' . $phpEx);\n+require($phpbb_root_path . 'includes/functions_content.' . $phpEx);\n+include($phpbb_root_path . 'includes/functions_compatibility.' . $phpEx);\n+require($phpbb_root_path . 'includes/functions_user.' . $phpEx);\n+require($phpbb_root_path . 'includes/utf/utf_tools.' . $phpEx);\n+\n+// Set PHP error handler to ours\n+set_error_handler(defined('PHPBB_MSG_HANDLER') ? PHPBB_MSG_HANDLER : 'msg_handler');\n+\n+$phpbb_installer_container_builder = new \\phpbb\\di\\container_builder($phpbb_root_path, $phpEx);\n+$phpbb_installer_container = $phpbb_installer_container_builder\n+\t->with_environment('installer')\n+\t->without_extensions()\n+\t->without_cache()","path":"phpBB/install/app.php","position":53,"original_position":53,"commit_id":"6ee0590a24f8a817ed63115f4825dc09af90817c","original_commit_id":"6ee0590a24f8a817ed63115f4825dc09af90817c","user":{"login":"Nicofuma","id":591456,"avatar_url":"https://avatars.githubusercontent.com/u/591456?v=3","gravatar_id":"","url":"https://api.github.com/users/Nicofuma","html_url":"https://github.com/Nicofuma","followers_url":"https://api.github.com/users/Nicofuma/followers","following_url":"https://api.github.com/users/Nicofuma/following{/other_user}","gists_url":"https://api.github.com/users/Nicofuma/gists{/gist_id}","starred_url":"https://api.github.com/users/Nicofuma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nicofuma/subscriptions","organizations_url":"https://api.github.com/users/Nicofuma/orgs","repos_url":"https://api.github.com/users/Nicofuma/repos","events_url":"https://api.github.com/users/Nicofuma/events{/privacy}","received_events_url":"https://api.github.com/users/Nicofuma/received_events","type":"User","site_admin":false},"body":"you can use the cache for the installer env I think","created_at":"2015-05-02T21:16:17Z","updated_at":"2015-05-02T21:16:17Z","html_url":"https://github.com/phpbb/phpbb/pull/3514#discussion_r29550803","pull_request_url":"https://api.github.com/repos/phpbb/phpbb/pulls/3514","_links":{"self":{"href":"https://api.github.com/repos/phpbb/phpbb/pulls/comments/29550803"},"html":{"href":"https://github.com/phpbb/phpbb/pull/3514#discussion_r29550803"},"pull_request":{"href":"https://api.github.com/repos/phpbb/phpbb/pulls/3514"}}},"pull_request":{"url":"https://api.github.com/repos/phpbb/phpbb/pulls/3514","id":32552582,"html_url":"https://github.com/phpbb/phpbb/pull/3514","diff_url":"https://github.com/phpbb/phpbb/pull/3514.diff","patch_url":"https://github.com/phpbb/phpbb/pull/3514.patch","issue_url":"https://api.github.com/repos/phpbb/phpbb/issues/3514","number":3514,"state":"open","locked":false,"title":"[ticket/13740] Refactoring installer","user":{"login":"MateBartus","id":10946388,"avatar_url":"https://avatars.githubusercontent.com/u/10946388?v=3","gravatar_id":"","url":"https://api.github.com/users/MateBartus","html_url":"https://github.com/MateBartus","followers_url":"https://api.github.com/users/MateBartus/followers","following_url":"https://api.github.com/users/MateBartus/following{/other_user}","gists_url":"https://api.github.com/users/MateBartus/gists{/gist_id}","starred_url":"https://api.github.com/users/MateBartus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MateBartus/subscriptions","organizations_url":"https://api.github.com/users/MateBartus/orgs","repos_url":"https://api.github.com/users/MateBartus/repos","events_url":"https://api.github.com/users/MateBartus/events{/privacy}","received_events_url":"https://api.github.com/users/MateBartus/received_events","type":"User","site_admin":false},"body":"Please note that this is a work in progress.\r\n\r\nThe description of this idea can be found in the [ticket](https://tracker.phpbb.com/browse/PHPBB3-13740).\r\n\r\n**Dependencies that has to be merged before this**:\r\n - ~~#3487~~ - Moving filesystem related functions into a service (**merged**)\r\n - ~~#3535~~  - Moving language related functionality into a service (**merged**)\r\n - #3552 - Moving module managing functionality into a service\r\n - #3554 - Wither interface for container_builder\r\n\r\nTODO:\r\n - [x] Moving and refactoring old installer\r\n - [ ] Moving and refactoring old updater\r\n - [ ] Moving and refactoring old converter\r\n - [ ] Implement frontend user interface\r\n - [ ] Add install config environment and install service config files\r\n - [ ] Add/implement new installer helpers\r\n - [ ] Add tests","created_at":"2015-04-02T21:34:26Z","updated_at":"2015-05-02T21:16:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0317a1fbcd88c3ee6f9336c42801c86598175d74","assignee":null,"milestone":{"url":"https://api.github.com/repos/phpbb/phpbb/milestones/2","html_url":"https://github.com/phpbb/phpbb/milestones/3.2.0","labels_url":"https://api.github.com/repos/phpbb/phpbb/milestones/2/labels","id":835770,"number":2,"title":"3.2.0","description":"","creator":{"login":"nickvergessen","id":213943,"avatar_url":"https://avatars.githubusercontent.com/u/213943?v=3","gravatar_id":"","url":"https://api.github.com/users/nickvergessen","html_url":"https://github.com/nickvergessen","followers_url":"https://api.github.com/users/nickvergessen/followers","following_url":"https://api.github.com/users/nickvergessen/following{/other_user}","gists_url":"https://api.github.com/users/nickvergessen/gists{/gist_id}","starred_url":"https://api.github.com/users/nickvergessen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickvergessen/subscriptions","organizations_url":"https://api.github.com/users/nickvergessen/orgs","repos_url":"https://api.github.com/users/nickvergessen/repos","events_url":"https://api.github.com/users/nickvergessen/events{/privacy}","received_events_url":"https://api.github.com/users/nickvergessen/received_events","type":"User","site_admin":false},"open_issues":51,"closed_issues":56,"state":"open","created_at":"2014-10-22T10:41:02Z","updated_at":"2015-05-02T21:02:54Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/phpbb/phpbb/pulls/3514/commits","review_comments_url":"https://api.github.com/repos/phpbb/phpbb/pulls/3514/comments","review_comment_url":"https://api.github.com/repos/phpbb/phpbb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/phpbb/phpbb/issues/3514/comments","statuses_url":"https://api.github.com/repos/phpbb/phpbb/statuses/6ee0590a24f8a817ed63115f4825dc09af90817c","head":{"label":"MateBartus:ticket/13740","ref":"ticket/13740","sha":"6ee0590a24f8a817ed63115f4825dc09af90817c","user":{"login":"MateBartus","id":10946388,"avatar_url":"https://avatars.githubusercontent.com/u/10946388?v=3","gravatar_id":"","url":"https://api.github.com/users/MateBartus","html_url":"https://github.com/MateBartus","followers_url":"https://api.github.com/users/MateBartus/followers","following_url":"https://api.github.com/users/MateBartus/following{/other_user}","gists_url":"https://api.github.com/users/MateBartus/gists{/gist_id}","starred_url":"https://api.github.com/users/MateBartus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MateBartus/subscriptions","organizations_url":"https://api.github.com/users/MateBartus/orgs","repos_url":"https://api.github.com/users/MateBartus/repos","events_url":"https://api.github.com/users/MateBartus/events{/privacy}","received_events_url":"https://api.github.com/users/MateBartus/received_events","type":"User","site_admin":false},"repo":{"id":31021414,"name":"phpbb","full_name":"MateBartus/phpbb","owner":{"login":"MateBartus","id":10946388,"avatar_url":"https://avatars.githubusercontent.com/u/10946388?v=3","gravatar_id":"","url":"https://api.github.com/users/MateBartus","html_url":"https://github.com/MateBartus","followers_url":"https://api.github.com/users/MateBartus/followers","following_url":"https://api.github.com/users/MateBartus/following{/other_user}","gists_url":"https://api.github.com/users/MateBartus/gists{/gist_id}","starred_url":"https://api.github.com/users/MateBartus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MateBartus/subscriptions","organizations_url":"https://api.github.com/users/MateBartus/orgs","repos_url":"https://api.github.com/users/MateBartus/repos","events_url":"https://api.github.com/users/MateBartus/events{/privacy}","received_events_url":"https://api.github.com/users/MateBartus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MateBartus/phpbb","description":" phpBB 3 Development: phpBB is a popular open-source bulletin board written in PHP. This repository also contains the history of version 2.","fork":true,"url":"https://api.github.com/repos/MateBartus/phpbb","forks_url":"https://api.github.com/repos/MateBartus/phpbb/forks","keys_url":"https://api.github.com/repos/MateBartus/phpbb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MateBartus/phpbb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MateBartus/phpbb/teams","hooks_url":"https://api.github.com/repos/MateBartus/phpbb/hooks","issue_events_url":"https://api.github.com/repos/MateBartus/phpbb/issues/events{/number}","events_url":"https://api.github.com/repos/MateBartus/phpbb/events","assignees_url":"https://api.github.com/repos/MateBartus/phpbb/assignees{/user}","branches_url":"https://api.github.com/repos/MateBartus/phpbb/branches{/branch}","tags_url":"https://api.github.com/repos/MateBartus/phpbb/tags","blobs_url":"https://api.github.com/repos/MateBartus/phpbb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MateBartus/phpbb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MateBartus/phpbb/git/refs{/sha}","trees_url":"https://api.github.com/repos/MateBartus/phpbb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MateBartus/phpbb/statuses/{sha}","languages_url":"https://api.github.com/repos/MateBartus/phpbb/languages","stargazers_url":"https://api.github.com/repos/MateBartus/phpbb/stargazers","contributors_url":"https://api.github.com/repos/MateBartus/phpbb/contributors","subscribers_url":"https://api.github.com/repos/MateBartus/phpbb/subscribers","subscription_url":"https://api.github.com/repos/MateBartus/phpbb/subscription","commits_url":"https://api.github.com/repos/MateBartus/phpbb/commits{/sha}","git_commits_url":"https://api.github.com/repos/MateBartus/phpbb/git/commits{/sha}","comments_url":"https://api.github.com/repos/MateBartus/phpbb/comments{/number}","issue_comment_url":"https://api.github.com/repos/MateBartus/phpbb/issues/comments{/number}","contents_url":"https://api.github.com/repos/MateBartus/phpbb/contents/{+path}","compare_url":"https://api.github.com/repos/MateBartus/phpbb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MateBartus/phpbb/merges","archive_url":"https://api.github.com/repos/MateBartus/phpbb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MateBartus/phpbb/downloads","issues_url":"https://api.github.com/repos/MateBartus/phpbb/issues{/number}","pulls_url":"https://api.github.com/repos/MateBartus/phpbb/pulls{/number}","milestones_url":"https://api.github.com/repos/MateBartus/phpbb/milestones{/number}","notifications_url":"https://api.github.com/repos/MateBartus/phpbb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MateBartus/phpbb/labels{/name}","releases_url":"https://api.github.com/repos/MateBartus/phpbb/releases{/id}","created_at":"2015-02-19T15:25:22Z","updated_at":"2015-04-14T00:31:51Z","pushed_at":"2015-05-02T21:15:50Z","git_url":"git://github.com/MateBartus/phpbb.git","ssh_url":"git@github.com:MateBartus/phpbb.git","clone_url":"https://github.com/MateBartus/phpbb.git","svn_url":"https://github.com/MateBartus/phpbb","homepage":"http://www.phpbb.com","size":54666,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"phpbb:master","ref":"master","sha":"85967425795773b7cb4116bb05adef810fb8bc07","user":{"login":"phpbb","id":176697,"avatar_url":"https://avatars.githubusercontent.com/u/176697?v=3","gravatar_id":"","url":"https://api.github.com/users/phpbb","html_url":"https://github.com/phpbb","followers_url":"https://api.github.com/users/phpbb/followers","following_url":"https://api.github.com/users/phpbb/following{/other_user}","gists_url":"https://api.github.com/users/phpbb/gists{/gist_id}","starred_url":"https://api.github.com/users/phpbb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phpbb/subscriptions","organizations_url":"https://api.github.com/users/phpbb/orgs","repos_url":"https://api.github.com/users/phpbb/repos","events_url":"https://api.github.com/users/phpbb/events{/privacy}","received_events_url":"https://api.github.com/users/phpbb/received_events","type":"Organization","site_admin":false},"repo":{"id":541983,"name":"phpbb","full_name":"phpbb/phpbb","owner":{"login":"phpbb","id":176697,"avatar_url":"https://avatars.githubusercontent.com/u/176697?v=3","gravatar_id":"","url":"https://api.github.com/users/phpbb","html_url":"https://github.com/phpbb","followers_url":"https://api.github.com/users/phpbb/followers","following_url":"https://api.github.com/users/phpbb/following{/other_user}","gists_url":"https://api.github.com/users/phpbb/gists{/gist_id}","starred_url":"https://api.github.com/users/phpbb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phpbb/subscriptions","organizations_url":"https://api.github.com/users/phpbb/orgs","repos_url":"https://api.github.com/users/phpbb/repos","events_url":"https://api.github.com/users/phpbb/events{/privacy}","received_events_url":"https://api.github.com/users/phpbb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/phpbb/phpbb","description":" phpBB 3 Development: phpBB is a popular open-source bulletin board written in PHP. This repository also contains the history of version 2.","fork":false,"url":"https://api.github.com/repos/phpbb/phpbb","forks_url":"https://api.github.com/repos/phpbb/phpbb/forks","keys_url":"https://api.github.com/repos/phpbb/phpbb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/phpbb/phpbb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/phpbb/phpbb/teams","hooks_url":"https://api.github.com/repos/phpbb/phpbb/hooks","issue_events_url":"https://api.github.com/repos/phpbb/phpbb/issues/events{/number}","events_url":"https://api.github.com/repos/phpbb/phpbb/events","assignees_url":"https://api.github.com/repos/phpbb/phpbb/assignees{/user}","branches_url":"https://api.github.com/repos/phpbb/phpbb/branches{/branch}","tags_url":"https://api.github.com/repos/phpbb/phpbb/tags","blobs_url":"https://api.github.com/repos/phpbb/phpbb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/phpbb/phpbb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/phpbb/phpbb/git/refs{/sha}","trees_url":"https://api.github.com/repos/phpbb/phpbb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/phpbb/phpbb/statuses/{sha}","languages_url":"https://api.github.com/repos/phpbb/phpbb/languages","stargazers_url":"https://api.github.com/repos/phpbb/phpbb/stargazers","contributors_url":"https://api.github.com/repos/phpbb/phpbb/contributors","subscribers_url":"https://api.github.com/repos/phpbb/phpbb/subscribers","subscription_url":"https://api.github.com/repos/phpbb/phpbb/subscription","commits_url":"https://api.github.com/repos/phpbb/phpbb/commits{/sha}","git_commits_url":"https://api.github.com/repos/phpbb/phpbb/git/commits{/sha}","comments_url":"https://api.github.com/repos/phpbb/phpbb/comments{/number}","issue_comment_url":"https://api.github.com/repos/phpbb/phpbb/issues/comments{/number}","contents_url":"https://api.github.com/repos/phpbb/phpbb/contents/{+path}","compare_url":"https://api.github.com/repos/phpbb/phpbb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/phpbb/phpbb/merges","archive_url":"https://api.github.com/repos/phpbb/phpbb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/phpbb/phpbb/downloads","issues_url":"https://api.github.com/repos/phpbb/phpbb/issues{/number}","pulls_url":"https://api.github.com/repos/phpbb/phpbb/pulls{/number}","milestones_url":"https://api.github.com/repos/phpbb/phpbb/milestones{/number}","notifications_url":"https://api.github.com/repos/phpbb/phpbb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/phpbb/phpbb/labels{/name}","releases_url":"https://api.github.com/repos/phpbb/phpbb/releases{/id}","created_at":"2010-03-01T22:33:17Z","updated_at":"2015-05-02T18:31:06Z","pushed_at":"2015-05-02T21:15:51Z","git_url":"git://github.com/phpbb/phpbb.git","ssh_url":"git@github.com:phpbb/phpbb.git","clone_url":"https://github.com/phpbb/phpbb.git","svn_url":"https://github.com/phpbb/phpbb","homepage":"http://www.phpbb.com","size":190822,"stargazers_count":724,"watchers_count":724,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":456,"mirror_url":null,"open_issues_count":101,"forks":456,"open_issues":101,"watchers":724,"default_branch":"3.1.x"}},"_links":{"self":{"href":"https://api.github.com/repos/phpbb/phpbb/pulls/3514"},"html":{"href":"https://github.com/phpbb/phpbb/pull/3514"},"issue":{"href":"https://api.github.com/repos/phpbb/phpbb/issues/3514"},"comments":{"href":"https://api.github.com/repos/phpbb/phpbb/issues/3514/comments"},"review_comments":{"href":"https://api.github.com/repos/phpbb/phpbb/pulls/3514/comments"},"review_comment":{"href":"https://api.github.com/repos/phpbb/phpbb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/phpbb/phpbb/pulls/3514/commits"},"statuses":{"href":"https://api.github.com/repos/phpbb/phpbb/statuses/6ee0590a24f8a817ed63115f4825dc09af90817c"}}}}