{"action":"created","comment":{"url":"https://api.github.com/repos/prooph/standard-projections/pulls/comments/88891831","pull_request_review_id":9449222,"id":88891831,"diff_hunk":"@@ -0,0 +1,132 @@\n+<?php\n+/**\n+ * This file is part of the prooph/standard-projections.\n+ * (c) 2016-2016 prooph software GmbH <contact@prooph.de>\n+ * (c) 2016-2016 Sascha-Oliver Prolic <saschaprolic@googlemail.com>\n+ *\n+ * For the full copyright and license information, please view the LICENSE\n+ * file that was distributed with this source code.\n+ */\n+\n+declare(strict_types=1);\n+\n+namespace Prooph\\StandardProjections\\Container;\n+\n+use Interop\\Config\\ConfigurationTrait;\n+use Interop\\Config\\ProvidesDefaultOptions;\n+use Interop\\Config\\RequiresConfig;\n+use Interop\\Config\\RequiresMandatoryOptions;\n+use Interop\\Container\\ContainerInterface;\n+use PDO;\n+use Prooph\\StandardProjections\\AllStreamProjection;\n+\n+final class AllStreamProjectionFactory implements ProvidesDefaultOptions, RequiresConfig, RequiresMandatoryOptions\n+{\n+    use ConfigurationTrait;\n+\n+    /**\n+     * @var array\n+     */\n+    private $pdoDriverSchemeAliases = [\n+        'pdo_mysql' => 'mysql',\n+        'pdo_pgsql' => 'pgsql',\n+    ];\n+\n+    private $pdoDriverSchemeSeparators = [\n+        'pdo_mysql' => ';',\n+        'pdo_pgsql' => ' ',\n+    ];\n+\n+    public function __invoke(ContainerInterface $container): AllStreamProjection\n+    {\n+        $config = $container->get('config');\n+        $config = $this->options($config);\n+\n+        $eventStore = $container->get($config['event_store']);\n+\n+        switch (strtolower($config['type'])) {\n+            case 'mysql':\n+                $projection = new \\Prooph\\EventStore\\PDO\\Projection\\MySQLEventStoreProjection(","path":"src/Container/AllStreamProjectionFactory.php","position":49,"original_position":49,"commit_id":"34d41a15b90de0122079b906e75b651d3e108b34","original_commit_id":"34d41a15b90de0122079b906e75b651d3e108b34","user":{"login":"basz","id":143068,"avatar_url":"https://avatars.githubusercontent.com/u/143068?v=3","gravatar_id":"","url":"https://api.github.com/users/basz","html_url":"https://github.com/basz","followers_url":"https://api.github.com/users/basz/followers","following_url":"https://api.github.com/users/basz/following{/other_user}","gists_url":"https://api.github.com/users/basz/gists{/gist_id}","starred_url":"https://api.github.com/users/basz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basz/subscriptions","organizations_url":"https://api.github.com/users/basz/orgs","repos_url":"https://api.github.com/users/basz/repos","events_url":"https://api.github.com/users/basz/events{/privacy}","received_events_url":"https://api.github.com/users/basz/received_events","type":"User","site_admin":false},"body":"would need a suggestion or a requirement in composer.json","created_at":"2016-11-21T13:19:19Z","updated_at":"2016-11-21T13:19:19Z","html_url":"https://github.com/prooph/standard-projections/pull/1#discussion_r88891831","pull_request_url":"https://api.github.com/repos/prooph/standard-projections/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/prooph/standard-projections/pulls/comments/88891831"},"html":{"href":"https://github.com/prooph/standard-projections/pull/1#discussion_r88891831"},"pull_request":{"href":"https://api.github.com/repos/prooph/standard-projections/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/prooph/standard-projections/pulls/1","id":94581068,"html_url":"https://github.com/prooph/standard-projections/pull/1","diff_url":"https://github.com/prooph/standard-projections/pull/1.diff","patch_url":"https://github.com/prooph/standard-projections/pull/1.patch","issue_url":"https://api.github.com/repos/prooph/standard-projections/issues/1","number":1,"state":"open","locked":false,"title":"add all stream projection","user":{"login":"prolic","id":394428,"avatar_url":"https://avatars.githubusercontent.com/u/394428?v=3","gravatar_id":"","url":"https://api.github.com/users/prolic","html_url":"https://github.com/prolic","followers_url":"https://api.github.com/users/prolic/followers","following_url":"https://api.github.com/users/prolic/following{/other_user}","gists_url":"https://api.github.com/users/prolic/gists{/gist_id}","starred_url":"https://api.github.com/users/prolic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prolic/subscriptions","organizations_url":"https://api.github.com/users/prolic/orgs","repos_url":"https://api.github.com/users/prolic/repos","events_url":"https://api.github.com/users/prolic/events{/privacy}","received_events_url":"https://api.github.com/users/prolic/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-21T09:41:24Z","updated_at":"2016-11-21T13:21:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e28d845b9aabfde112285ea87ab094f6dafa2166","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/prooph/standard-projections/pulls/1/commits","review_comments_url":"https://api.github.com/repos/prooph/standard-projections/pulls/1/comments","review_comment_url":"https://api.github.com/repos/prooph/standard-projections/pulls/comments{/number}","comments_url":"https://api.github.com/repos/prooph/standard-projections/issues/1/comments","statuses_url":"https://api.github.com/repos/prooph/standard-projections/statuses/34d41a15b90de0122079b906e75b651d3e108b34","head":{"label":"prooph:all_stream","ref":"all_stream","sha":"34d41a15b90de0122079b906e75b651d3e108b34","user":{"login":"prooph","id":7341005,"avatar_url":"https://avatars.githubusercontent.com/u/7341005?v=3","gravatar_id":"","url":"https://api.github.com/users/prooph","html_url":"https://github.com/prooph","followers_url":"https://api.github.com/users/prooph/followers","following_url":"https://api.github.com/users/prooph/following{/other_user}","gists_url":"https://api.github.com/users/prooph/gists{/gist_id}","starred_url":"https://api.github.com/users/prooph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prooph/subscriptions","organizations_url":"https://api.github.com/users/prooph/orgs","repos_url":"https://api.github.com/users/prooph/repos","events_url":"https://api.github.com/users/prooph/events{/privacy}","received_events_url":"https://api.github.com/users/prooph/received_events","type":"Organization","site_admin":false},"repo":{"id":74342282,"name":"standard-projections","full_name":"prooph/standard-projections","owner":{"login":"prooph","id":7341005,"avatar_url":"https://avatars.githubusercontent.com/u/7341005?v=3","gravatar_id":"","url":"https://api.github.com/users/prooph","html_url":"https://github.com/prooph","followers_url":"https://api.github.com/users/prooph/followers","following_url":"https://api.github.com/users/prooph/following{/other_user}","gists_url":"https://api.github.com/users/prooph/gists{/gist_id}","starred_url":"https://api.github.com/users/prooph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prooph/subscriptions","organizations_url":"https://api.github.com/users/prooph/orgs","repos_url":"https://api.github.com/users/prooph/repos","events_url":"https://api.github.com/users/prooph/events{/privacy}","received_events_url":"https://api.github.com/users/prooph/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/prooph/standard-projections","description":"Standard projections to use with Prooph EventStore","fork":false,"url":"https://api.github.com/repos/prooph/standard-projections","forks_url":"https://api.github.com/repos/prooph/standard-projections/forks","keys_url":"https://api.github.com/repos/prooph/standard-projections/keys{/key_id}","collaborators_url":"https://api.github.com/repos/prooph/standard-projections/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/prooph/standard-projections/teams","hooks_url":"https://api.github.com/repos/prooph/standard-projections/hooks","issue_events_url":"https://api.github.com/repos/prooph/standard-projections/issues/events{/number}","events_url":"https://api.github.com/repos/prooph/standard-projections/events","assignees_url":"https://api.github.com/repos/prooph/standard-projections/assignees{/user}","branches_url":"https://api.github.com/repos/prooph/standard-projections/branches{/branch}","tags_url":"https://api.github.com/repos/prooph/standard-projections/tags","blobs_url":"https://api.github.com/repos/prooph/standard-projections/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/prooph/standard-projections/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/prooph/standard-projections/git/refs{/sha}","trees_url":"https://api.github.com/repos/prooph/standard-projections/git/trees{/sha}","statuses_url":"https://api.github.com/repos/prooph/standard-projections/statuses/{sha}","languages_url":"https://api.github.com/repos/prooph/standard-projections/languages","stargazers_url":"https://api.github.com/repos/prooph/standard-projections/stargazers","contributors_url":"https://api.github.com/repos/prooph/standard-projections/contributors","subscribers_url":"https://api.github.com/repos/prooph/standard-projections/subscribers","subscription_url":"https://api.github.com/repos/prooph/standard-projections/subscription","commits_url":"https://api.github.com/repos/prooph/standard-projections/commits{/sha}","git_commits_url":"https://api.github.com/repos/prooph/standard-projections/git/commits{/sha}","comments_url":"https://api.github.com/repos/prooph/standard-projections/comments{/number}","issue_comment_url":"https://api.github.com/repos/prooph/standard-projections/issues/comments{/number}","contents_url":"https://api.github.com/repos/prooph/standard-projections/contents/{+path}","compare_url":"https://api.github.com/repos/prooph/standard-projections/compare/{base}...{head}","merges_url":"https://api.github.com/repos/prooph/standard-projections/merges","archive_url":"https://api.github.com/repos/prooph/standard-projections/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/prooph/standard-projections/downloads","issues_url":"https://api.github.com/repos/prooph/standard-projections/issues{/number}","pulls_url":"https://api.github.com/repos/prooph/standard-projections/pulls{/number}","milestones_url":"https://api.github.com/repos/prooph/standard-projections/milestones{/number}","notifications_url":"https://api.github.com/repos/prooph/standard-projections/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/prooph/standard-projections/labels{/name}","releases_url":"https://api.github.com/repos/prooph/standard-projections/releases{/id}","deployments_url":"https://api.github.com/repos/prooph/standard-projections/deployments","created_at":"2016-11-21T08:29:05Z","updated_at":"2016-11-21T08:29:05Z","pushed_at":"2016-11-21T10:00:41Z","git_url":"git://github.com/prooph/standard-projections.git","ssh_url":"git@github.com:prooph/standard-projections.git","clone_url":"https://github.com/prooph/standard-projections.git","svn_url":"https://github.com/prooph/standard-projections","homepage":null,"size":9,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"prooph:master","ref":"master","sha":"989c8fbf4e6f1fb37a01a3989cbc74e1e875317d","user":{"login":"prooph","id":7341005,"avatar_url":"https://avatars.githubusercontent.com/u/7341005?v=3","gravatar_id":"","url":"https://api.github.com/users/prooph","html_url":"https://github.com/prooph","followers_url":"https://api.github.com/users/prooph/followers","following_url":"https://api.github.com/users/prooph/following{/other_user}","gists_url":"https://api.github.com/users/prooph/gists{/gist_id}","starred_url":"https://api.github.com/users/prooph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prooph/subscriptions","organizations_url":"https://api.github.com/users/prooph/orgs","repos_url":"https://api.github.com/users/prooph/repos","events_url":"https://api.github.com/users/prooph/events{/privacy}","received_events_url":"https://api.github.com/users/prooph/received_events","type":"Organization","site_admin":false},"repo":{"id":74342282,"name":"standard-projections","full_name":"prooph/standard-projections","owner":{"login":"prooph","id":7341005,"avatar_url":"https://avatars.githubusercontent.com/u/7341005?v=3","gravatar_id":"","url":"https://api.github.com/users/prooph","html_url":"https://github.com/prooph","followers_url":"https://api.github.com/users/prooph/followers","following_url":"https://api.github.com/users/prooph/following{/other_user}","gists_url":"https://api.github.com/users/prooph/gists{/gist_id}","starred_url":"https://api.github.com/users/prooph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prooph/subscriptions","organizations_url":"https://api.github.com/users/prooph/orgs","repos_url":"https://api.github.com/users/prooph/repos","events_url":"https://api.github.com/users/prooph/events{/privacy}","received_events_url":"https://api.github.com/users/prooph/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/prooph/standard-projections","description":"Standard projections to use with Prooph EventStore","fork":false,"url":"https://api.github.com/repos/prooph/standard-projections","forks_url":"https://api.github.com/repos/prooph/standard-projections/forks","keys_url":"https://api.github.com/repos/prooph/standard-projections/keys{/key_id}","collaborators_url":"https://api.github.com/repos/prooph/standard-projections/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/prooph/standard-projections/teams","hooks_url":"https://api.github.com/repos/prooph/standard-projections/hooks","issue_events_url":"https://api.github.com/repos/prooph/standard-projections/issues/events{/number}","events_url":"https://api.github.com/repos/prooph/standard-projections/events","assignees_url":"https://api.github.com/repos/prooph/standard-projections/assignees{/user}","branches_url":"https://api.github.com/repos/prooph/standard-projections/branches{/branch}","tags_url":"https://api.github.com/repos/prooph/standard-projections/tags","blobs_url":"https://api.github.com/repos/prooph/standard-projections/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/prooph/standard-projections/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/prooph/standard-projections/git/refs{/sha}","trees_url":"https://api.github.com/repos/prooph/standard-projections/git/trees{/sha}","statuses_url":"https://api.github.com/repos/prooph/standard-projections/statuses/{sha}","languages_url":"https://api.github.com/repos/prooph/standard-projections/languages","stargazers_url":"https://api.github.com/repos/prooph/standard-projections/stargazers","contributors_url":"https://api.github.com/repos/prooph/standard-projections/contributors","subscribers_url":"https://api.github.com/repos/prooph/standard-projections/subscribers","subscription_url":"https://api.github.com/repos/prooph/standard-projections/subscription","commits_url":"https://api.github.com/repos/prooph/standard-projections/commits{/sha}","git_commits_url":"https://api.github.com/repos/prooph/standard-projections/git/commits{/sha}","comments_url":"https://api.github.com/repos/prooph/standard-projections/comments{/number}","issue_comment_url":"https://api.github.com/repos/prooph/standard-projections/issues/comments{/number}","contents_url":"https://api.github.com/repos/prooph/standard-projections/contents/{+path}","compare_url":"https://api.github.com/repos/prooph/standard-projections/compare/{base}...{head}","merges_url":"https://api.github.com/repos/prooph/standard-projections/merges","archive_url":"https://api.github.com/repos/prooph/standard-projections/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/prooph/standard-projections/downloads","issues_url":"https://api.github.com/repos/prooph/standard-projections/issues{/number}","pulls_url":"https://api.github.com/repos/prooph/standard-projections/pulls{/number}","milestones_url":"https://api.github.com/repos/prooph/standard-projections/milestones{/number}","notifications_url":"https://api.github.com/repos/prooph/standard-projections/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/prooph/standard-projections/labels{/name}","releases_url":"https://api.github.com/repos/prooph/standard-projections/releases{/id}","deployments_url":"https://api.github.com/repos/prooph/standard-projections/deployments","created_at":"2016-11-21T08:29:05Z","updated_at":"2016-11-21T08:29:05Z","pushed_at":"2016-11-21T10:00:41Z","git_url":"git://github.com/prooph/standard-projections.git","ssh_url":"git@github.com:prooph/standard-projections.git","clone_url":"https://github.com/prooph/standard-projections.git","svn_url":"https://github.com/prooph/standard-projections","homepage":null,"size":9,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/prooph/standard-projections/pulls/1"},"html":{"href":"https://github.com/prooph/standard-projections/pull/1"},"issue":{"href":"https://api.github.com/repos/prooph/standard-projections/issues/1"},"comments":{"href":"https://api.github.com/repos/prooph/standard-projections/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/prooph/standard-projections/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/prooph/standard-projections/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/prooph/standard-projections/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/prooph/standard-projections/statuses/34d41a15b90de0122079b906e75b651d3e108b34"}}}}
{"actor":{"display_login":"basz"}}