{"action":"created","comment":{"url":"https://api.github.com/repos/symfony/symfony-docs/pulls/comments/150409053","pull_request_review_id":75957801,"id":150409053,"diff_hunk":"@@ -6,179 +6,52 @@\n The Bundle System\n =================\n \n-A bundle is similar to a plugin in other software, but even better. The key\n-difference is that *everything* is a bundle in Symfony, including both the\n-core framework functionality and the code written for your application.\n-Bundles are first-class citizens in Symfony. This gives you the flexibility\n-to use pre-built features packaged in `third-party bundles`_ or to distribute\n-your own bundles. It makes it easy to pick and choose which features to enable\n-in your application and to optimize them the way you want.\n-\n-.. note::\n-\n-    While you'll learn the basics here, an entire article is devoted to the\n-    organization and best practices of :doc:`bundles </bundles/best_practices>`.\n-\n-A bundle is simply a structured set of files within a directory that implement\n-a single feature. You might create a BlogBundle, a ForumBundle or\n-a bundle for user management (many of these exist already as open source\n-bundles). Each directory contains everything related to that feature, including\n-PHP files, templates, stylesheets, JavaScript files, tests and anything else.\n-Every aspect of a feature exists in a bundle and every feature lives in a\n-bundle.\n-\n-Bundles used in your applications must be enabled by registering them in\n-the ``registerBundles()`` method of the ``AppKernel`` class::\n-\n-    // app/AppKernel.php\n-    public function registerBundles()\n-    {\n-        $bundles = array(\n-            new Symfony\\Bundle\\FrameworkBundle\\FrameworkBundle(),\n-            new Symfony\\Bundle\\SecurityBundle\\SecurityBundle(),\n-            new Symfony\\Bundle\\TwigBundle\\TwigBundle(),\n-            new Symfony\\Bundle\\MonologBundle\\MonologBundle(),\n-            new Symfony\\Bundle\\SwiftmailerBundle\\SwiftmailerBundle(),\n-            new Symfony\\Bundle\\DoctrineBundle\\DoctrineBundle(),\n-            new Sensio\\Bundle\\FrameworkExtraBundle\\SensioFrameworkExtraBundle(),\n-            new AppBundle\\AppBundle(),\n-        );\n-\n-        if (in_array($this->getEnvironment(), array('dev', 'test'))) {\n-            $bundles[] = new Symfony\\Bundle\\WebProfilerBundle\\WebProfilerBundle();\n-            $bundles[] = new Sensio\\Bundle\\DistributionBundle\\SensioDistributionBundle();\n-            $bundles[] = new Sensio\\Bundle\\GeneratorBundle\\SensioGeneratorBundle();\n-        }\n-\n-        return $bundles;\n-    }\n-\n-With the ``registerBundles()`` method, you have total control over which bundles\n-are used by your application (including the core Symfony bundles).\n+.. caution::\n+\n+    In Symfony versions prior to 4.0, it was recommended to organize your own\n+    application code using bundles. This is no longer recommended and bundles\n+    should only be used as third-party plugins that add features in your\n+    applications.","path":"bundles.rst","position":58,"original_position":58,"commit_id":"78cced6ad13f90830301b9d7a7085350f21b27d5","original_commit_id":"78cced6ad13f90830301b9d7a7085350f21b27d5","user":{"login":"wouterj","id":749025,"avatar_url":"https://avatars2.githubusercontent.com/u/749025?v=4","gravatar_id":"","url":"https://api.github.com/users/wouterj","html_url":"https://github.com/wouterj","followers_url":"https://api.github.com/users/wouterj/followers","following_url":"https://api.github.com/users/wouterj/following{/other_user}","gists_url":"https://api.github.com/users/wouterj/gists{/gist_id}","starred_url":"https://api.github.com/users/wouterj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wouterj/subscriptions","organizations_url":"https://api.github.com/users/wouterj/orgs","repos_url":"https://api.github.com/users/wouterj/repos","events_url":"https://api.github.com/users/wouterj/events{/privacy}","received_events_url":"https://api.github.com/users/wouterj/received_events","type":"User","site_admin":false},"body":"\"third-party\" refers to another party, but it's perfectly fine to use a bundle made by your own company. What about:\r\n\r\n > This is no longer recommended and bundles should only be used to share code and features between multiple applications.","created_at":"2017-11-12T12:35:16Z","updated_at":"2017-11-12T12:36:29Z","html_url":"https://github.com/symfony/symfony-docs/pull/8613#discussion_r150409053","pull_request_url":"https://api.github.com/repos/symfony/symfony-docs/pulls/8613","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/symfony/symfony-docs/pulls/comments/150409053"},"html":{"href":"https://github.com/symfony/symfony-docs/pull/8613#discussion_r150409053"},"pull_request":{"href":"https://api.github.com/repos/symfony/symfony-docs/pulls/8613"}}},"pull_request":{"url":"https://api.github.com/repos/symfony/symfony-docs/pulls/8613","id":151867537,"html_url":"https://github.com/symfony/symfony-docs/pull/8613","diff_url":"https://github.com/symfony/symfony-docs/pull/8613.diff","patch_url":"https://github.com/symfony/symfony-docs/pull/8613.patch","issue_url":"https://api.github.com/repos/symfony/symfony-docs/issues/8613","number":8613,"state":"open","locked":false,"title":"Updated the main bundles article for Symfony 4","user":{"login":"javiereguiluz","id":73419,"avatar_url":"https://avatars3.githubusercontent.com/u/73419?v=4","gravatar_id":"","url":"https://api.github.com/users/javiereguiluz","html_url":"https://github.com/javiereguiluz","followers_url":"https://api.github.com/users/javiereguiluz/followers","following_url":"https://api.github.com/users/javiereguiluz/following{/other_user}","gists_url":"https://api.github.com/users/javiereguiluz/gists{/gist_id}","starred_url":"https://api.github.com/users/javiereguiluz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javiereguiluz/subscriptions","organizations_url":"https://api.github.com/users/javiereguiluz/orgs","repos_url":"https://api.github.com/users/javiereguiluz/repos","events_url":"https://api.github.com/users/javiereguiluz/events{/privacy}","received_events_url":"https://api.github.com/users/javiereguiluz/received_events","type":"User","site_admin":false},"body":"I've removed the `Bundle Directory Structure` contents ... but I plan to move them to other bundle articles in a separate PR.","created_at":"2017-11-10T10:00:29Z","updated_at":"2017-11-12T12:36:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0cfdf539dfb665e02a60ab0bf4cb68e77825f16f","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":{"url":"https://api.github.com/repos/symfony/symfony-docs/milestones/15","html_url":"https://github.com/symfony/symfony-docs/milestone/15","labels_url":"https://api.github.com/repos/symfony/symfony-docs/milestones/15/labels","id":2458689,"number":15,"title":"4.0","description":"","creator":{"login":"javiereguiluz","id":73419,"avatar_url":"https://avatars3.githubusercontent.com/u/73419?v=4","gravatar_id":"","url":"https://api.github.com/users/javiereguiluz","html_url":"https://github.com/javiereguiluz","followers_url":"https://api.github.com/users/javiereguiluz/followers","following_url":"https://api.github.com/users/javiereguiluz/following{/other_user}","gists_url":"https://api.github.com/users/javiereguiluz/gists{/gist_id}","starred_url":"https://api.github.com/users/javiereguiluz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javiereguiluz/subscriptions","organizations_url":"https://api.github.com/users/javiereguiluz/orgs","repos_url":"https://api.github.com/users/javiereguiluz/repos","events_url":"https://api.github.com/users/javiereguiluz/events{/privacy}","received_events_url":"https://api.github.com/users/javiereguiluz/received_events","type":"User","site_admin":false},"open_issues":11,"closed_issues":7,"state":"open","created_at":"2017-04-15T17:43:42Z","updated_at":"2017-11-10T15:14:57Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/symfony/symfony-docs/pulls/8613/commits","review_comments_url":"https://api.github.com/repos/symfony/symfony-docs/pulls/8613/comments","review_comment_url":"https://api.github.com/repos/symfony/symfony-docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/symfony/symfony-docs/issues/8613/comments","statuses_url":"https://api.github.com/repos/symfony/symfony-docs/statuses/78cced6ad13f90830301b9d7a7085350f21b27d5","head":{"label":"javiereguiluz:update_bundles","ref":"update_bundles","sha":"78cced6ad13f90830301b9d7a7085350f21b27d5","user":{"login":"javiereguiluz","id":73419,"avatar_url":"https://avatars3.githubusercontent.com/u/73419?v=4","gravatar_id":"","url":"https://api.github.com/users/javiereguiluz","html_url":"https://github.com/javiereguiluz","followers_url":"https://api.github.com/users/javiereguiluz/followers","following_url":"https://api.github.com/users/javiereguiluz/following{/other_user}","gists_url":"https://api.github.com/users/javiereguiluz/gists{/gist_id}","starred_url":"https://api.github.com/users/javiereguiluz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javiereguiluz/subscriptions","organizations_url":"https://api.github.com/users/javiereguiluz/orgs","repos_url":"https://api.github.com/users/javiereguiluz/repos","events_url":"https://api.github.com/users/javiereguiluz/events{/privacy}","received_events_url":"https://api.github.com/users/javiereguiluz/received_events","type":"User","site_admin":false},"repo":{"id":26866700,"name":"symfony-docs","full_name":"javiereguiluz/symfony-docs","owner":{"login":"javiereguiluz","id":73419,"avatar_url":"https://avatars3.githubusercontent.com/u/73419?v=4","gravatar_id":"","url":"https://api.github.com/users/javiereguiluz","html_url":"https://github.com/javiereguiluz","followers_url":"https://api.github.com/users/javiereguiluz/followers","following_url":"https://api.github.com/users/javiereguiluz/following{/other_user}","gists_url":"https://api.github.com/users/javiereguiluz/gists{/gist_id}","starred_url":"https://api.github.com/users/javiereguiluz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javiereguiluz/subscriptions","organizations_url":"https://api.github.com/users/javiereguiluz/orgs","repos_url":"https://api.github.com/users/javiereguiluz/repos","events_url":"https://api.github.com/users/javiereguiluz/events{/privacy}","received_events_url":"https://api.github.com/users/javiereguiluz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/javiereguiluz/symfony-docs","description":"The Symfony2 documentation","fork":true,"url":"https://api.github.com/repos/javiereguiluz/symfony-docs","forks_url":"https://api.github.com/repos/javiereguiluz/symfony-docs/forks","keys_url":"https://api.github.com/repos/javiereguiluz/symfony-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/javiereguiluz/symfony-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/javiereguiluz/symfony-docs/teams","hooks_url":"https://api.github.com/repos/javiereguiluz/symfony-docs/hooks","issue_events_url":"https://api.github.com/repos/javiereguiluz/symfony-docs/issues/events{/number}","events_url":"https://api.github.com/repos/javiereguiluz/symfony-docs/events","assignees_url":"https://api.github.com/repos/javiereguiluz/symfony-docs/assignees{/user}","branches_url":"https://api.github.com/repos/javiereguiluz/symfony-docs/branches{/branch}","tags_url":"https://api.github.com/repos/javiereguiluz/symfony-docs/tags","blobs_url":"https://api.github.com/repos/javiereguiluz/symfony-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/javiereguiluz/symfony-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/javiereguiluz/symfony-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/javiereguiluz/symfony-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/javiereguiluz/symfony-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/javiereguiluz/symfony-docs/languages","stargazers_url":"https://api.github.com/repos/javiereguiluz/symfony-docs/stargazers","contributors_url":"https://api.github.com/repos/javiereguiluz/symfony-docs/contributors","subscribers_url":"https://api.github.com/repos/javiereguiluz/symfony-docs/subscribers","subscription_url":"https://api.github.com/repos/javiereguiluz/symfony-docs/subscription","commits_url":"https://api.github.com/repos/javiereguiluz/symfony-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/javiereguiluz/symfony-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/javiereguiluz/symfony-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/javiereguiluz/symfony-docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/javiereguiluz/symfony-docs/contents/{+path}","compare_url":"https://api.github.com/repos/javiereguiluz/symfony-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/javiereguiluz/symfony-docs/merges","archive_url":"https://api.github.com/repos/javiereguiluz/symfony-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/javiereguiluz/symfony-docs/downloads","issues_url":"https://api.github.com/repos/javiereguiluz/symfony-docs/issues{/number}","pulls_url":"https://api.github.com/repos/javiereguiluz/symfony-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/javiereguiluz/symfony-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/javiereguiluz/symfony-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/javiereguiluz/symfony-docs/labels{/name}","releases_url":"https://api.github.com/repos/javiereguiluz/symfony-docs/releases{/id}","deployments_url":"https://api.github.com/repos/javiereguiluz/symfony-docs/deployments","created_at":"2014-11-19T15:08:31Z","updated_at":"2016-09-05T13:02:18Z","pushed_at":"2017-11-12T10:58:11Z","git_url":"git://github.com/javiereguiluz/symfony-docs.git","ssh_url":"git@github.com:javiereguiluz/symfony-docs.git","clone_url":"https://github.com/javiereguiluz/symfony-docs.git","svn_url":"https://github.com/javiereguiluz/symfony-docs","homepage":"http://symfony.com/doc/current/","size":41741,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"symfony:master","ref":"master","sha":"724e5c4f4a4a2632fc890287c3ea40d606d5ce35","user":{"login":"symfony","id":143937,"avatar_url":"https://avatars3.githubusercontent.com/u/143937?v=4","gravatar_id":"","url":"https://api.github.com/users/symfony","html_url":"https://github.com/symfony","followers_url":"https://api.github.com/users/symfony/followers","following_url":"https://api.github.com/users/symfony/following{/other_user}","gists_url":"https://api.github.com/users/symfony/gists{/gist_id}","starred_url":"https://api.github.com/users/symfony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/symfony/subscriptions","organizations_url":"https://api.github.com/users/symfony/orgs","repos_url":"https://api.github.com/users/symfony/repos","events_url":"https://api.github.com/users/symfony/events{/privacy}","received_events_url":"https://api.github.com/users/symfony/received_events","type":"Organization","site_admin":false},"repo":{"id":521583,"name":"symfony-docs","full_name":"symfony/symfony-docs","owner":{"login":"symfony","id":143937,"avatar_url":"https://avatars3.githubusercontent.com/u/143937?v=4","gravatar_id":"","url":"https://api.github.com/users/symfony","html_url":"https://github.com/symfony","followers_url":"https://api.github.com/users/symfony/followers","following_url":"https://api.github.com/users/symfony/following{/other_user}","gists_url":"https://api.github.com/users/symfony/gists{/gist_id}","starred_url":"https://api.github.com/users/symfony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/symfony/subscriptions","organizations_url":"https://api.github.com/users/symfony/orgs","repos_url":"https://api.github.com/users/symfony/repos","events_url":"https://api.github.com/users/symfony/events{/privacy}","received_events_url":"https://api.github.com/users/symfony/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/symfony/symfony-docs","description":"The Symfony documentation","fork":false,"url":"https://api.github.com/repos/symfony/symfony-docs","forks_url":"https://api.github.com/repos/symfony/symfony-docs/forks","keys_url":"https://api.github.com/repos/symfony/symfony-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/symfony/symfony-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/symfony/symfony-docs/teams","hooks_url":"https://api.github.com/repos/symfony/symfony-docs/hooks","issue_events_url":"https://api.github.com/repos/symfony/symfony-docs/issues/events{/number}","events_url":"https://api.github.com/repos/symfony/symfony-docs/events","assignees_url":"https://api.github.com/repos/symfony/symfony-docs/assignees{/user}","branches_url":"https://api.github.com/repos/symfony/symfony-docs/branches{/branch}","tags_url":"https://api.github.com/repos/symfony/symfony-docs/tags","blobs_url":"https://api.github.com/repos/symfony/symfony-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/symfony/symfony-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/symfony/symfony-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/symfony/symfony-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/symfony/symfony-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/symfony/symfony-docs/languages","stargazers_url":"https://api.github.com/repos/symfony/symfony-docs/stargazers","contributors_url":"https://api.github.com/repos/symfony/symfony-docs/contributors","subscribers_url":"https://api.github.com/repos/symfony/symfony-docs/subscribers","subscription_url":"https://api.github.com/repos/symfony/symfony-docs/subscription","commits_url":"https://api.github.com/repos/symfony/symfony-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/symfony/symfony-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/symfony/symfony-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/symfony/symfony-docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/symfony/symfony-docs/contents/{+path}","compare_url":"https://api.github.com/repos/symfony/symfony-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/symfony/symfony-docs/merges","archive_url":"https://api.github.com/repos/symfony/symfony-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/symfony/symfony-docs/downloads","issues_url":"https://api.github.com/repos/symfony/symfony-docs/issues{/number}","pulls_url":"https://api.github.com/repos/symfony/symfony-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/symfony/symfony-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/symfony/symfony-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/symfony/symfony-docs/labels{/name}","releases_url":"https://api.github.com/repos/symfony/symfony-docs/releases{/id}","deployments_url":"https://api.github.com/repos/symfony/symfony-docs/deployments","created_at":"2010-02-17T08:43:51Z","updated_at":"2017-11-09T22:07:03Z","pushed_at":"2017-11-12T12:29:29Z","git_url":"git://github.com/symfony/symfony-docs.git","ssh_url":"git@github.com:symfony/symfony-docs.git","clone_url":"https://github.com/symfony/symfony-docs.git","svn_url":"https://github.com/symfony/symfony-docs","homepage":"http://symfony.com/doc","size":42269,"stargazers_count":1283,"watchers_count":1283,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":3186,"mirror_url":null,"archived":false,"open_issues_count":425,"forks":3186,"open_issues":425,"watchers":1283,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/symfony/symfony-docs/pulls/8613"},"html":{"href":"https://github.com/symfony/symfony-docs/pull/8613"},"issue":{"href":"https://api.github.com/repos/symfony/symfony-docs/issues/8613"},"comments":{"href":"https://api.github.com/repos/symfony/symfony-docs/issues/8613/comments"},"review_comments":{"href":"https://api.github.com/repos/symfony/symfony-docs/pulls/8613/comments"},"review_comment":{"href":"https://api.github.com/repos/symfony/symfony-docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/symfony/symfony-docs/pulls/8613/commits"},"statuses":{"href":"https://api.github.com/repos/symfony/symfony-docs/statuses/78cced6ad13f90830301b9d7a7085350f21b27d5"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"wouterj"}}