{"action":"created","issue":{"url":"https://api.github.com/repos/symfony/symfony/issues/16496","repository_url":"https://api.github.com/repos/symfony/symfony","labels_url":"https://api.github.com/repos/symfony/symfony/issues/16496/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/16496/comments","events_url":"https://api.github.com/repos/symfony/symfony/issues/16496/events","html_url":"https://github.com/symfony/symfony/issues/16496","id":115736533,"number":16496,"title":"Command: no helpful error message when something is wrong with constructor","user":{"login":"flip111","id":2244480,"avatar_url":"https://avatars.githubusercontent.com/u/2244480?v=3","gravatar_id":"","url":"https://api.github.com/users/flip111","html_url":"https://github.com/flip111","followers_url":"https://api.github.com/users/flip111/followers","following_url":"https://api.github.com/users/flip111/following{/other_user}","gists_url":"https://api.github.com/users/flip111/gists{/gist_id}","starred_url":"https://api.github.com/users/flip111/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flip111/subscriptions","organizations_url":"https://api.github.com/users/flip111/orgs","repos_url":"https://api.github.com/users/flip111/repos","events_url":"https://api.github.com/users/flip111/events{/privacy}","received_events_url":"https://api.github.com/users/flip111/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/symfony/symfony/labels/Console","name":"Console","color":"DDDDDD"},{"url":"https://api.github.com/repos/symfony/symfony/labels/Enhancement","name":"Enhancement","color":"02d7e1"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-11-08T14:21:57Z","updated_at":"2016-04-01T16:59:54Z","closed_at":null,"body":"I have a Command class with nothing really special in it. The configure method names the command `user:create`, when i make the constructor like this\r\n\r\n```php\r\n  public function __construct() {\r\n    parent::__construct();\r\n  }\r\n```\r\nEverything is fine.\r\n\r\nWhen i make it like this\r\n```php\r\n  public function __construct($name) {\r\n    parent::__construct($name);\r\n  }\r\n```\r\n\r\nI get error\r\n```\r\n[InvalidArgumentException]\r\nThere are no commands defined in the \"user\" namespace.\r\n```\r\n\r\nExpected to tell me something about the constructor function"},"comment":{"url":"https://api.github.com/repos/symfony/symfony/issues/comments/204470965","html_url":"https://github.com/symfony/symfony/issues/16496#issuecomment-204470965","issue_url":"https://api.github.com/repos/symfony/symfony/issues/16496","id":204470965,"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":"2016-04-01T16:59:54Z","updated_at":"2016-04-01T16:59:54Z","body":"Throwing an exception can be considered a BC break as the application did not break before. We will need to check if we can just output a warning message in the application."}}