{"action":"created","issue":{"url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/issues/398","labels_url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/issues/398/labels{/name}","comments_url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/issues/398/comments","events_url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/issues/398/events","html_url":"https://github.com/sensiolabs/SensioGeneratorBundle/pull/398","id":97680013,"number":398,"title":"Added a new generate:command command","user":{"login":"javiereguiluz","id":73419,"avatar_url":"https://avatars.githubusercontent.com/u/73419?v=3","gravatar_id":"","url":"https://api.github.com/users/javiereguiluz","html_url":"https://github.com/javiereguiluz","followers_url":"https://api.github.com/users/javiereguiluz/followers","following_url":"https://api.github.com/users/javiereguiluz/following{/other_user}","gists_url":"https://api.github.com/users/javiereguiluz/gists{/gist_id}","starred_url":"https://api.github.com/users/javiereguiluz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javiereguiluz/subscriptions","organizations_url":"https://api.github.com/users/javiereguiluz/orgs","repos_url":"https://api.github.com/users/javiereguiluz/repos","events_url":"https://api.github.com/users/javiereguiluz/events{/privacy}","received_events_url":"https://api.github.com/users/javiereguiluz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/labels/Feature","name":"Feature","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-28T11:16:03Z","updated_at":"2015-07-29T07:19:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/pulls/398","html_url":"https://github.com/sensiolabs/SensioGeneratorBundle/pull/398","diff_url":"https://github.com/sensiolabs/SensioGeneratorBundle/pull/398.diff","patch_url":"https://github.com/sensiolabs/SensioGeneratorBundle/pull/398.patch"},"body":"This fixes #332.\r\n\r\nIf you execute the following:\r\n\r\n```bash\r\n$ php app/console generate:command AppBundle app:publish-posts\r\n```\r\n\r\nThis command generates the following class:\r\n\r\n```php\r\n<?php\r\n\r\nnamespace AppBundle\\Command;\r\n\r\nuse Symfony\\Bundle\\FrameworkBundle\\Command\\ContainerAwareCommand;\r\nuse Symfony\\Component\\Console\\Input\\InputArgument;\r\nuse Symfony\\Component\\Console\\Input\\InputInterface;\r\nuse Symfony\\Component\\Console\\Input\\InputOption;\r\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\r\n\r\nclass AppPublishPostsCommand extends ContainerAwareCommand\r\n{\r\n    protected function configure()\r\n    {\r\n        $this\r\n            ->setName('app:publish-posts')\r\n            ->setDescription('...')\r\n            ->addArgument('argument', InputArgument::OPTIONAL, 'Argument description')\r\n            ->addOption('option', null, InputOption::VALUE_NONE, 'Option description')\r\n        ;\r\n    }\r\n\r\n    protected function execute(InputInterface $input, OutputInterface $output)\r\n    {\r\n        $argument = $input->getArgument('argument');\r\n\r\n        if ($input->getOption('option')) {\r\n            // ...\r\n        }\r\n\r\n        $output->writeln('Command result.');\r\n    }\r\n\r\n}\r\n```\r\n\r\n**Note**  there ae two tests failing. I need help to solve this problem. Thanks!\r\n"},"comment":{"url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/issues/comments/125867620","html_url":"https://github.com/sensiolabs/SensioGeneratorBundle/pull/398#issuecomment-125867620","issue_url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/issues/398","id":125867620,"user":{"login":"xabbuh","id":1957048,"avatar_url":"https://avatars.githubusercontent.com/u/1957048?v=3","gravatar_id":"","url":"https://api.github.com/users/xabbuh","html_url":"https://github.com/xabbuh","followers_url":"https://api.github.com/users/xabbuh/followers","following_url":"https://api.github.com/users/xabbuh/following{/other_user}","gists_url":"https://api.github.com/users/xabbuh/gists{/gist_id}","starred_url":"https://api.github.com/users/xabbuh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xabbuh/subscriptions","organizations_url":"https://api.github.com/users/xabbuh/orgs","repos_url":"https://api.github.com/users/xabbuh/repos","events_url":"https://api.github.com/users/xabbuh/events{/privacy}","received_events_url":"https://api.github.com/users/xabbuh/received_events","type":"User","site_admin":false},"created_at":"2015-07-29T07:19:18Z","updated_at":"2015-07-29T07:19:18Z","body":"@javiereguiluz Which tests are you talking about?"}}