{"action":"created","issue":{"url":"https://api.github.com/repos/laravel-doctrine/extensions/issues/3","labels_url":"https://api.github.com/repos/laravel-doctrine/extensions/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/laravel-doctrine/extensions/issues/3/comments","events_url":"https://api.github.com/repos/laravel-doctrine/extensions/issues/3/events","html_url":"https://github.com/laravel-doctrine/extensions/pull/3","id":99384501,"number":3,"title":"Uploadable extension","user":{"login":"jee7","id":3455815,"avatar_url":"https://avatars.githubusercontent.com/u/3455815?v=3","gravatar_id":"","url":"https://api.github.com/users/jee7","html_url":"https://github.com/jee7","followers_url":"https://api.github.com/users/jee7/followers","following_url":"https://api.github.com/users/jee7/following{/other_user}","gists_url":"https://api.github.com/users/jee7/gists{/gist_id}","starred_url":"https://api.github.com/users/jee7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jee7/subscriptions","organizations_url":"https://api.github.com/users/jee7/orgs","repos_url":"https://api.github.com/users/jee7/repos","events_url":"https://api.github.com/users/jee7/events{/privacy}","received_events_url":"https://api.github.com/users/jee7/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-06T08:25:52Z","updated_at":"2015-08-19T14:52:40Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/laravel-doctrine/extensions/pulls/3","html_url":"https://github.com/laravel-doctrine/extensions/pull/3","diff_url":"https://github.com/laravel-doctrine/extensions/pull/3.diff","patch_url":"https://github.com/laravel-doctrine/extensions/pull/3.patch"},"body":"Uploadable extension implementation.\r\nUploadable extension needs to register the uploadableListener in order to access it from the app (see use: https://github.com/Atlantic18/DoctrineExtensions/blob/master/doc/uploadable.md ).\r\nI also added a facade for easier access. Users can register the facade if they prefer that."},"comment":{"url":"https://api.github.com/repos/laravel-doctrine/extensions/issues/comments/132626183","html_url":"https://github.com/laravel-doctrine/extensions/pull/3#issuecomment-132626183","issue_url":"https://api.github.com/repos/laravel-doctrine/extensions/issues/3","id":132626183,"user":{"login":"jee7","id":3455815,"avatar_url":"https://avatars.githubusercontent.com/u/3455815?v=3","gravatar_id":"","url":"https://api.github.com/users/jee7","html_url":"https://github.com/jee7","followers_url":"https://api.github.com/users/jee7/followers","following_url":"https://api.github.com/users/jee7/following{/other_user}","gists_url":"https://api.github.com/users/jee7/gists{/gist_id}","starred_url":"https://api.github.com/users/jee7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jee7/subscriptions","organizations_url":"https://api.github.com/users/jee7/orgs","repos_url":"https://api.github.com/users/jee7/repos","events_url":"https://api.github.com/users/jee7/events{/privacy}","received_events_url":"https://api.github.com/users/jee7/received_events","type":"User","site_admin":false},"created_at":"2015-08-19T14:52:40Z","updated_at":"2015-08-19T14:52:40Z","body":"Ok, what about now?\r\n\r\nI removed the register from the ExtensionManager. Added a UploadableServiceProvider that now registers the uploadableListener singleton. Users need to add that service provider to their application conf. In addition to enabling it in the doctrine conf.\r\n\r\napp.php\r\n```\r\n'providers' => [\r\n        ...\r\n        LaravelDoctrine\\ORM\\DoctrineServiceProvider::class,\r\n        LaravelDoctrine\\Extensions\\Uploadable\\UploadableServiceProvider::class,\r\n]\r\n```\r\n\r\ndoctrine.php\r\n```\r\n'extensions' => [\r\n        ...\r\n        LaravelDoctrine\\Extensions\\Uploadable\\UploadableExtension::class,\r\n],\r\n```"}}