{"action":"created","issue":{"url":"https://api.github.com/repos/doctrine/doctrine2/issues/7470","repository_url":"https://api.github.com/repos/doctrine/doctrine2","labels_url":"https://api.github.com/repos/doctrine/doctrine2/issues/7470/labels{/name}","comments_url":"https://api.github.com/repos/doctrine/doctrine2/issues/7470/comments","events_url":"https://api.github.com/repos/doctrine/doctrine2/issues/7470/events","html_url":"https://github.com/doctrine/doctrine2/issues/7470","id":380099415,"node_id":"MDU6SXNzdWUzODAwOTk0MTU=","number":7470,"title":"Class 'Doctrine\\Common\\Annotations\\AnnotationRegistry' not found","user":{"login":"h4r86e32","id":42836563,"node_id":"MDQ6VXNlcjQyODM2NTYz","avatar_url":"https://avatars2.githubusercontent.com/u/42836563?v=4","gravatar_id":"","url":"https://api.github.com/users/h4r86e32","html_url":"https://github.com/h4r86e32","followers_url":"https://api.github.com/users/h4r86e32/followers","following_url":"https://api.github.com/users/h4r86e32/following{/other_user}","gists_url":"https://api.github.com/users/h4r86e32/gists{/gist_id}","starred_url":"https://api.github.com/users/h4r86e32/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h4r86e32/subscriptions","organizations_url":"https://api.github.com/users/h4r86e32/orgs","repos_url":"https://api.github.com/users/h4r86e32/repos","events_url":"https://api.github.com/users/h4r86e32/events{/privacy}","received_events_url":"https://api.github.com/users/h4r86e32/received_events","type":"User","site_admin":false},"labels":[{"id":296201252,"node_id":"MDU6TGFiZWwyOTYyMDEyNTI=","url":"https://api.github.com/repos/doctrine/doctrine2/labels/Bug","name":"Bug","color":"e11d21","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-11-13T07:51:33Z","updated_at":"2018-11-15T20:09:01Z","closed_at":null,"author_association":"NONE","body":"Been battling with this problem for a while. Tried most things such as replacing vendor, running on PHP 7.2 and not sure what the problem is.\r\n\r\nError: \r\n```\r\nFatal error: Uncaught Error: Class 'Doctrine\\Common\\Annotations\\AnnotationRegistry' not found in C:\\Users\\admin\\Dropbox\\workspace\\coding\\projects\\websites\\eshare\\vendor\\doctrine\\orm\\lib\\Doctrine\\ORM\\Configuration.php:156 Stack trace: #0 C:\\Users\\admin\\Dropbox\\workspace\\coding\\projects\\websites\\eshare\\vendor\\doctrine\\orm\\lib\\Doctrine\\ORM\\Tools\\Setup.php(72): Doctrine\\ORM\\Configuration->newDefaultAnnotationDriver(Array, true) #1 C:\\Users\\admin\\Dropbox\\workspace\\coding\\projects\\websites\\eshare\\src\\setup.php(20): Doctrine\\ORM\\Tools\\Setup::createAnnotationMetadataConfiguration(Array, false) #2 C:\\Users\\admin\\Dropbox\\workspace\\coding\\projects\\websites\\eshare\\src\\bootstrap.php(6): include('C:\\\\Users\\\\admin\\\\...') #3 C:\\Users\\admin\\Dropbox\\workspace\\coding\\projects\\websites\\eshare\\public\\index.php(7): require('C:\\\\Users\\\\admin\\\\...') #4 {main} thrown in C:\\Users\\admin\\Dropbox\\workspace\\coding\\projects\\websites\\eshare\\vendor\\doctrine\\orm\\lib\\Doctrine\\ORM\\Configuration.php on line 156\r\n```\r\n\r\nInitialization code:\r\n```\r\n<?php\r\n\r\nuse Doctrine\\ORM\\Tools\\Setup;\r\nuse Doctrine\\ORM\\EntityManager;\r\n\r\n$paths = array();\r\n$config = $container->get('App\\Providers\\Config');\r\n\r\n$container->get('Twig_Environment')->addFunction(new \\Twig_Function('config', function ($key) use($config) {\r\n    return $config->get($key);\r\n}));\r\n\r\n$dbParams = array(\r\n    'driver'   => $config->get('database.driver'),\r\n    'user'     => $config->get('database.user'),\r\n    'password' => $config->get('database.password'),\r\n    'dbname'   => $config->get('database.name'),\r\n);\r\n\r\n$entityConfig = Setup::createAnnotationMetadataConfiguration($paths, false);\r\n$entityManager = EntityManager::create($dbParams, $entityConfig);\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/doctrine/doctrine2/issues/comments/439173605","html_url":"https://github.com/doctrine/doctrine2/issues/7470#issuecomment-439173605","issue_url":"https://api.github.com/repos/doctrine/doctrine2/issues/7470","id":439173605,"node_id":"MDEyOklzc3VlQ29tbWVudDQzOTE3MzYwNQ==","user":{"login":"h4r86e32","id":42836563,"node_id":"MDQ6VXNlcjQyODM2NTYz","avatar_url":"https://avatars2.githubusercontent.com/u/42836563?v=4","gravatar_id":"","url":"https://api.github.com/users/h4r86e32","html_url":"https://github.com/h4r86e32","followers_url":"https://api.github.com/users/h4r86e32/followers","following_url":"https://api.github.com/users/h4r86e32/following{/other_user}","gists_url":"https://api.github.com/users/h4r86e32/gists{/gist_id}","starred_url":"https://api.github.com/users/h4r86e32/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h4r86e32/subscriptions","organizations_url":"https://api.github.com/users/h4r86e32/orgs","repos_url":"https://api.github.com/users/h4r86e32/repos","events_url":"https://api.github.com/users/h4r86e32/events{/privacy}","received_events_url":"https://api.github.com/users/h4r86e32/received_events","type":"User","site_admin":false},"created_at":"2018-11-15T20:09:01Z","updated_at":"2018-11-15T20:09:01Z","author_association":"NONE","body":"Here is a gist of my whole composer.lock file. \r\nhttps://gist.github.com/h4r86e32/f685c8da265b0a35af93a9a63a2e5e4f"}}
{"actor":{"display_login":"h4r86e32"}}