{"action":"closed","number":1722,"pull_request":{"url":"https://api.github.com/repos/api-platform/core/pulls/1722","id":170506779,"html_url":"https://github.com/api-platform/core/pull/1722","diff_url":"https://github.com/api-platform/core/pull/1722.diff","patch_url":"https://github.com/api-platform/core/pull/1722.patch","issue_url":"https://api.github.com/repos/api-platform/core/issues/1722","number":1722,"state":"closed","locked":false,"title":"Fix wrong automatic configuration for Sf flex","user":{"login":"Nek-","id":972456,"avatar_url":"https://avatars1.githubusercontent.com/u/972456?v=4","gravatar_id":"","url":"https://api.github.com/users/Nek-","html_url":"https://github.com/Nek-","followers_url":"https://api.github.com/users/Nek-/followers","following_url":"https://api.github.com/users/Nek-/following{/other_user}","gists_url":"https://api.github.com/users/Nek-/gists{/gist_id}","starred_url":"https://api.github.com/users/Nek-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nek-/subscriptions","organizations_url":"https://api.github.com/users/Nek-/orgs","repos_url":"https://api.github.com/users/Nek-/repos","events_url":"https://api.github.com/users/Nek-/events{/privacy}","received_events_url":"https://api.github.com/users/Nek-/received_events","type":"User","site_admin":false},"body":"This was an issue for some people that decided to change the way the folder\r\nof configuration of api platform is defined.\r\n\r\nThe idea of this fix is to not interfer with the user configuration.\r\n\r\n| Q             | A\r\n| ------------- | ---\r\n| Bug fix?      | yes\r\n| New feature?  | no\r\n| BC breaks?    | no\r\n| Deprecations? | no\r\n| Tests pass?   | yes\r\n| Fixed tickets | none, but still an issue\r\n| License       | MIT\r\n| Doc PR        | N/A\r\n\r\n# Reproducer\r\n```yaml\r\n# api platform configuration\r\napi_platform:\r\n    mapping:\r\n        paths: ['%kernel.project_dir%/config/api_platform/resources']\r\n```\r\n\r\n_Then imagine having the `%kernel.project_dir%/config/api_platform/routes` folder._\r\n\r\n# Before the fix\r\nThe dump of resources folders is:\r\n\r\n```\r\narray:2 [\r\n  0 => \"/var/www/apps/cadi-back/config/api_platform/resources\"\r\n  1 => \"/var/www/apps/cadi-back/config/api_platform\"\r\n]\r\n```\r\n\r\n# After the fix\r\nThe dump of resources folder is:\r\n```\r\narray:1 [\r\n  0 => \"/var/www/apps/cadi-back/config/api_platform/resources\"\r\n]\r\n```","created_at":"2018-02-21T15:42:16Z","updated_at":"2018-02-22T21:00:40Z","closed_at":"2018-02-22T21:00:40Z","merged_at":"2018-02-22T21:00:40Z","merge_commit_sha":"8e30e66c31dfc154d633a0fcd5850ac11783433a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/api-platform/core/pulls/1722/commits","review_comments_url":"https://api.github.com/repos/api-platform/core/pulls/1722/comments","review_comment_url":"https://api.github.com/repos/api-platform/core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/api-platform/core/issues/1722/comments","statuses_url":"https://api.github.com/repos/api-platform/core/statuses/6bffa90f52f5437379896ef03c63a51d092d8650","head":{"label":"Nek-:fix/bc-break-sf-flex","ref":"fix/bc-break-sf-flex","sha":"6bffa90f52f5437379896ef03c63a51d092d8650","user":{"login":"Nek-","id":972456,"avatar_url":"https://avatars1.githubusercontent.com/u/972456?v=4","gravatar_id":"","url":"https://api.github.com/users/Nek-","html_url":"https://github.com/Nek-","followers_url":"https://api.github.com/users/Nek-/followers","following_url":"https://api.github.com/users/Nek-/following{/other_user}","gists_url":"https://api.github.com/users/Nek-/gists{/gist_id}","starred_url":"https://api.github.com/users/Nek-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nek-/subscriptions","organizations_url":"https://api.github.com/users/Nek-/orgs","repos_url":"https://api.github.com/users/Nek-/repos","events_url":"https://api.github.com/users/Nek-/events{/privacy}","received_events_url":"https://api.github.com/users/Nek-/received_events","type":"User","site_admin":false},"repo":{"id":112630993,"name":"core","full_name":"Nek-/core","owner":{"login":"Nek-","id":972456,"avatar_url":"https://avatars1.githubusercontent.com/u/972456?v=4","gravatar_id":"","url":"https://api.github.com/users/Nek-","html_url":"https://github.com/Nek-","followers_url":"https://api.github.com/users/Nek-/followers","following_url":"https://api.github.com/users/Nek-/following{/other_user}","gists_url":"https://api.github.com/users/Nek-/gists{/gist_id}","starred_url":"https://api.github.com/users/Nek-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nek-/subscriptions","organizations_url":"https://api.github.com/users/Nek-/orgs","repos_url":"https://api.github.com/users/Nek-/repos","events_url":"https://api.github.com/users/Nek-/events{/privacy}","received_events_url":"https://api.github.com/users/Nek-/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Nek-/core","description":"The server component of API Platform: hypermedia and GraphQL APIs in minutes","fork":true,"url":"https://api.github.com/repos/Nek-/core","forks_url":"https://api.github.com/repos/Nek-/core/forks","keys_url":"https://api.github.com/repos/Nek-/core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Nek-/core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Nek-/core/teams","hooks_url":"https://api.github.com/repos/Nek-/core/hooks","issue_events_url":"https://api.github.com/repos/Nek-/core/issues/events{/number}","events_url":"https://api.github.com/repos/Nek-/core/events","assignees_url":"https://api.github.com/repos/Nek-/core/assignees{/user}","branches_url":"https://api.github.com/repos/Nek-/core/branches{/branch}","tags_url":"https://api.github.com/repos/Nek-/core/tags","blobs_url":"https://api.github.com/repos/Nek-/core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Nek-/core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Nek-/core/git/refs{/sha}","trees_url":"https://api.github.com/repos/Nek-/core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Nek-/core/statuses/{sha}","languages_url":"https://api.github.com/repos/Nek-/core/languages","stargazers_url":"https://api.github.com/repos/Nek-/core/stargazers","contributors_url":"https://api.github.com/repos/Nek-/core/contributors","subscribers_url":"https://api.github.com/repos/Nek-/core/subscribers","subscription_url":"https://api.github.com/repos/Nek-/core/subscription","commits_url":"https://api.github.com/repos/Nek-/core/commits{/sha}","git_commits_url":"https://api.github.com/repos/Nek-/core/git/commits{/sha}","comments_url":"https://api.github.com/repos/Nek-/core/comments{/number}","issue_comment_url":"https://api.github.com/repos/Nek-/core/issues/comments{/number}","contents_url":"https://api.github.com/repos/Nek-/core/contents/{+path}","compare_url":"https://api.github.com/repos/Nek-/core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Nek-/core/merges","archive_url":"https://api.github.com/repos/Nek-/core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Nek-/core/downloads","issues_url":"https://api.github.com/repos/Nek-/core/issues{/number}","pulls_url":"https://api.github.com/repos/Nek-/core/pulls{/number}","milestones_url":"https://api.github.com/repos/Nek-/core/milestones{/number}","notifications_url":"https://api.github.com/repos/Nek-/core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Nek-/core/labels{/name}","releases_url":"https://api.github.com/repos/Nek-/core/releases{/id}","deployments_url":"https://api.github.com/repos/Nek-/core/deployments","created_at":"2017-11-30T15:59:56Z","updated_at":"2017-11-30T15:59:59Z","pushed_at":"2018-02-22T14:13:11Z","git_url":"git://github.com/Nek-/core.git","ssh_url":"git@github.com:Nek-/core.git","clone_url":"https://github.com/Nek-/core.git","svn_url":"https://github.com/Nek-/core","homepage":"https://api-platform.com","size":7594,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"api-platform:2.2","ref":"2.2","sha":"615dc8882fe6097c3cc626b5422487fc4d3e79a9","user":{"login":"api-platform","id":13420081,"avatar_url":"https://avatars3.githubusercontent.com/u/13420081?v=4","gravatar_id":"","url":"https://api.github.com/users/api-platform","html_url":"https://github.com/api-platform","followers_url":"https://api.github.com/users/api-platform/followers","following_url":"https://api.github.com/users/api-platform/following{/other_user}","gists_url":"https://api.github.com/users/api-platform/gists{/gist_id}","starred_url":"https://api.github.com/users/api-platform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/api-platform/subscriptions","organizations_url":"https://api.github.com/users/api-platform/orgs","repos_url":"https://api.github.com/users/api-platform/repos","events_url":"https://api.github.com/users/api-platform/events{/privacy}","received_events_url":"https://api.github.com/users/api-platform/received_events","type":"Organization","site_admin":false},"repo":{"id":29501260,"name":"core","full_name":"api-platform/core","owner":{"login":"api-platform","id":13420081,"avatar_url":"https://avatars3.githubusercontent.com/u/13420081?v=4","gravatar_id":"","url":"https://api.github.com/users/api-platform","html_url":"https://github.com/api-platform","followers_url":"https://api.github.com/users/api-platform/followers","following_url":"https://api.github.com/users/api-platform/following{/other_user}","gists_url":"https://api.github.com/users/api-platform/gists{/gist_id}","starred_url":"https://api.github.com/users/api-platform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/api-platform/subscriptions","organizations_url":"https://api.github.com/users/api-platform/orgs","repos_url":"https://api.github.com/users/api-platform/repos","events_url":"https://api.github.com/users/api-platform/events{/privacy}","received_events_url":"https://api.github.com/users/api-platform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/api-platform/core","description":"The server component of API Platform: hypermedia and GraphQL APIs in minutes","fork":false,"url":"https://api.github.com/repos/api-platform/core","forks_url":"https://api.github.com/repos/api-platform/core/forks","keys_url":"https://api.github.com/repos/api-platform/core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/api-platform/core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/api-platform/core/teams","hooks_url":"https://api.github.com/repos/api-platform/core/hooks","issue_events_url":"https://api.github.com/repos/api-platform/core/issues/events{/number}","events_url":"https://api.github.com/repos/api-platform/core/events","assignees_url":"https://api.github.com/repos/api-platform/core/assignees{/user}","branches_url":"https://api.github.com/repos/api-platform/core/branches{/branch}","tags_url":"https://api.github.com/repos/api-platform/core/tags","blobs_url":"https://api.github.com/repos/api-platform/core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/api-platform/core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/api-platform/core/git/refs{/sha}","trees_url":"https://api.github.com/repos/api-platform/core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/api-platform/core/statuses/{sha}","languages_url":"https://api.github.com/repos/api-platform/core/languages","stargazers_url":"https://api.github.com/repos/api-platform/core/stargazers","contributors_url":"https://api.github.com/repos/api-platform/core/contributors","subscribers_url":"https://api.github.com/repos/api-platform/core/subscribers","subscription_url":"https://api.github.com/repos/api-platform/core/subscription","commits_url":"https://api.github.com/repos/api-platform/core/commits{/sha}","git_commits_url":"https://api.github.com/repos/api-platform/core/git/commits{/sha}","comments_url":"https://api.github.com/repos/api-platform/core/comments{/number}","issue_comment_url":"https://api.github.com/repos/api-platform/core/issues/comments{/number}","contents_url":"https://api.github.com/repos/api-platform/core/contents/{+path}","compare_url":"https://api.github.com/repos/api-platform/core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/api-platform/core/merges","archive_url":"https://api.github.com/repos/api-platform/core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/api-platform/core/downloads","issues_url":"https://api.github.com/repos/api-platform/core/issues{/number}","pulls_url":"https://api.github.com/repos/api-platform/core/pulls{/number}","milestones_url":"https://api.github.com/repos/api-platform/core/milestones{/number}","notifications_url":"https://api.github.com/repos/api-platform/core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/api-platform/core/labels{/name}","releases_url":"https://api.github.com/repos/api-platform/core/releases{/id}","deployments_url":"https://api.github.com/repos/api-platform/core/deployments","created_at":"2015-01-19T23:05:56Z","updated_at":"2018-02-22T15:45:39Z","pushed_at":"2018-02-22T21:00:40Z","git_url":"git://github.com/api-platform/core.git","ssh_url":"git@github.com:api-platform/core.git","clone_url":"https://github.com/api-platform/core.git","svn_url":"https://github.com/api-platform/core","homepage":"https://api-platform.com","size":7595,"stargazers_count":629,"watchers_count":629,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":208,"mirror_url":null,"archived":false,"open_issues_count":209,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":208,"open_issues":209,"watchers":629,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/api-platform/core/pulls/1722"},"html":{"href":"https://github.com/api-platform/core/pull/1722"},"issue":{"href":"https://api.github.com/repos/api-platform/core/issues/1722"},"comments":{"href":"https://api.github.com/repos/api-platform/core/issues/1722/comments"},"review_comments":{"href":"https://api.github.com/repos/api-platform/core/pulls/1722/comments"},"review_comment":{"href":"https://api.github.com/repos/api-platform/core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/api-platform/core/pulls/1722/commits"},"statuses":{"href":"https://api.github.com/repos/api-platform/core/statuses/6bffa90f52f5437379896ef03c63a51d092d8650"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"dunglas","id":57224,"avatar_url":"https://avatars2.githubusercontent.com/u/57224?v=4","gravatar_id":"","url":"https://api.github.com/users/dunglas","html_url":"https://github.com/dunglas","followers_url":"https://api.github.com/users/dunglas/followers","following_url":"https://api.github.com/users/dunglas/following{/other_user}","gists_url":"https://api.github.com/users/dunglas/gists{/gist_id}","starred_url":"https://api.github.com/users/dunglas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dunglas/subscriptions","organizations_url":"https://api.github.com/users/dunglas/orgs","repos_url":"https://api.github.com/users/dunglas/repos","events_url":"https://api.github.com/users/dunglas/events{/privacy}","received_events_url":"https://api.github.com/users/dunglas/received_events","type":"User","site_admin":false},"comments":7,"review_comments":9,"maintainer_can_modify":false,"commits":1,"additions":6,"deletions":21,"changed_files":2}}
{"actor":{"display_login":"dunglas"}}