{"action":"closed","issue":{"url":"https://api.github.com/repos/sinergi/gearman/issues/10","labels_url":"https://api.github.com/repos/sinergi/gearman/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/sinergi/gearman/issues/10/comments","events_url":"https://api.github.com/repos/sinergi/gearman/issues/10/events","html_url":"https://github.com/sinergi/gearman/issues/10","id":68523622,"number":10,"title":"Simple Test Question","user":{"login":"tegansnyder","id":1200195,"avatar_url":"https://avatars.githubusercontent.com/u/1200195?v=3","gravatar_id":"","url":"https://api.github.com/users/tegansnyder","html_url":"https://github.com/tegansnyder","followers_url":"https://api.github.com/users/tegansnyder/followers","following_url":"https://api.github.com/users/tegansnyder/following{/other_user}","gists_url":"https://api.github.com/users/tegansnyder/gists{/gist_id}","starred_url":"https://api.github.com/users/tegansnyder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tegansnyder/subscriptions","organizations_url":"https://api.github.com/users/tegansnyder/orgs","repos_url":"https://api.github.com/users/tegansnyder/repos","events_url":"https://api.github.com/users/tegansnyder/events{/privacy}","received_events_url":"https://api.github.com/users/tegansnyder/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-14T23:13:34Z","updated_at":"2015-04-15T01:41:08Z","closed_at":"2015-04-15T01:41:08Z","body":"I'm trying to do a simple test and having some issue. I'm hoping you might be able to point me in the right direction.\r\n\r\n#### composer.json\r\n```json\r\n{\r\n    \"name\" : \"worker/supervisor\",\r\n    \"description\" : \"Supervisor\",\r\n    \"require\": {\r\n        \"sinergi/gearman\": \"dev-master\"\r\n    },\r\n    \"autoload\": {\r\n        \"psr-4\": {\r\n            \"ProjectRoot\\\\\" : \"\",\r\n            \"Crawler\\\\Supervisor\\\\\": \"code/\"\r\n        }\r\n    }\r\n}\r\n```\r\n\r\n#### bootstrap.php\r\n```\r\n<?php\r\nrequire_once('vendor/autoload.php');\r\n\r\nuse Sinergi\\Gearman\\BootstrapInterface;\r\nuse Sinergi\\Gearman\\Application;\r\nuse Crawler\\Supervisor\\CrawlJob;\r\n\r\nclass Bootstrap implements BootstrapInterface\r\n{\r\n    public function run(Application $application)\r\n    {\r\n        $application->add(new CrawlJob());\r\n\r\n    }\r\n}\r\n```\r\n\r\n#### code/CrawlJob.php\r\n```php\r\n<?php\r\nnamespace Crawler\\Supervisor;\r\n\r\nuse Sinergi\\Gearman\\JobInterface;\r\nuse GearmanJob;\r\n\r\nclass CrawlJob implements JobInterface\r\n{\r\n    public function getName()\r\n    {\r\n        return 'CrawlJob';\r\n    }\r\n\r\n    public function execute(GearmanJob $job = null)\r\n    {\r\n        // Do something\r\n    }\r\n}\r\n```\r\n\r\nWhen I try and execute using the following command:\r\n```\r\nphp vendor/bin/gearman start --daemon=false --bootstrap=\"bootstrap.php\" \\\r\n--class=\"Bootstrap\" --server=\"192.168.59.104:49157\"\r\n```\r\n\r\nI get this error:\r\n```\r\nStarting gearman-handler: [ OK ]\r\nPHP Fatal error:  Class 'Sinergi\\Gearman\\GearmanWorker' not found in vendor/sinergi/gearman/src/Gearman/Worker.php on line 59\r\n```\r\n\r\nI'm I just encountering a Namespace issue somehow? Any help would be appreciated. Thanks!\r\n"}}