{"action":"created","issue":{"url":"https://api.github.com/repos/erichard/SublimePHPCompanion/issues/75","repository_url":"https://api.github.com/repos/erichard/SublimePHPCompanion","labels_url":"https://api.github.com/repos/erichard/SublimePHPCompanion/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/erichard/SublimePHPCompanion/issues/75/comments","events_url":"https://api.github.com/repos/erichard/SublimePHPCompanion/issues/75/events","html_url":"https://github.com/erichard/SublimePHPCompanion/issues/75","id":153744608,"number":75,"title":"using classes don't work, but methods work","user":{"login":"alfredbez","id":1001186,"avatar_url":"https://avatars.githubusercontent.com/u/1001186?v=3","gravatar_id":"","url":"https://api.github.com/users/alfredbez","html_url":"https://github.com/alfredbez","followers_url":"https://api.github.com/users/alfredbez/followers","following_url":"https://api.github.com/users/alfredbez/following{/other_user}","gists_url":"https://api.github.com/users/alfredbez/gists{/gist_id}","starred_url":"https://api.github.com/users/alfredbez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alfredbez/subscriptions","organizations_url":"https://api.github.com/users/alfredbez/orgs","repos_url":"https://api.github.com/users/alfredbez/repos","events_url":"https://api.github.com/users/alfredbez/events{/privacy}","received_events_url":"https://api.github.com/users/alfredbez/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-09T10:14:43Z","updated_at":"2016-05-09T10:59:45Z","closed_at":null,"body":"I'm working on a [Symfony-project](https://github.com/symfony/symfony) and I installed my project via the [symfony-installer](https://github.com/symfony/symfony-installer)\r\n```\r\n$ symfony new debugSublime\r\n```\r\n\r\nWhen I try to import the [`Request`-class](https://github.com/symfony/symfony/blob/b85ab60b70f0dcff62ac8438e91e7a93c44823da/src/Symfony/Component/HttpFoundation/Request.php#L29) in one of my files it fails, however typing `createFromGlobals` and running the `find_use` command generates `use Symfony\\Component\\HttpFoundation\\createFromGlobals;` which [is only a method](https://github.com/symfony/symfony/blob/b85ab60b70f0dcff62ac8438e91e7a93c44823da/src/Symfony/Component/HttpFoundation/Request.php#L265), not a class.\r\n\r\nI took a look in the index via `Goto` > `Goto Symbol in Project...`. The symbol `createFromGlobals` is in my Index, but `Request` is missing.\r\n\r\nI closed Sublime Text deleted the index (`rm -rf ~/.config/sublime-text/Index`) and open it again, same result.\r\n\r\nPath to `Request` in my project: `/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Request.php`.\r\n\r\nHere is my demo-code:\r\n```php\r\n<?php\r\n\r\nnamespace AppBundle\\Controller;\r\n\r\nuse Symfony\\Component\\HttpFoundation\\createFromGlobals;\r\n\r\nclass DefaultController extends Controller\r\n{\r\n    public function indexAction()\r\n    {\r\n        $request = new Request;\r\n        $qhy = new createFromGlobals;\r\n    }\r\n}\r\n\r\n```\r\n\r\n---\r\nAm I doing something wrong?"},"comment":{"url":"https://api.github.com/repos/erichard/SublimePHPCompanion/issues/comments/217835344","html_url":"https://github.com/erichard/SublimePHPCompanion/issues/75#issuecomment-217835344","issue_url":"https://api.github.com/repos/erichard/SublimePHPCompanion/issues/75","id":217835344,"user":{"login":"erichard","id":651041,"avatar_url":"https://avatars.githubusercontent.com/u/651041?v=3","gravatar_id":"","url":"https://api.github.com/users/erichard","html_url":"https://github.com/erichard","followers_url":"https://api.github.com/users/erichard/followers","following_url":"https://api.github.com/users/erichard/following{/other_user}","gists_url":"https://api.github.com/users/erichard/gists{/gist_id}","starred_url":"https://api.github.com/users/erichard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erichard/subscriptions","organizations_url":"https://api.github.com/users/erichard/orgs","repos_url":"https://api.github.com/users/erichard/repos","events_url":"https://api.github.com/users/erichard/events{/privacy}","received_events_url":"https://api.github.com/users/erichard/received_events","type":"User","site_admin":false},"created_at":"2016-05-09T10:59:44Z","updated_at":"2016-05-09T10:59:44Z","body":"How do you run the `find_use` command ?"}}