{"action":"created","issue":{"url":"https://api.github.com/repos/sensiolabs/SensioDistributionBundle/issues/283","repository_url":"https://api.github.com/repos/sensiolabs/SensioDistributionBundle","labels_url":"https://api.github.com/repos/sensiolabs/SensioDistributionBundle/issues/283/labels{/name}","comments_url":"https://api.github.com/repos/sensiolabs/SensioDistributionBundle/issues/283/comments","events_url":"https://api.github.com/repos/sensiolabs/SensioDistributionBundle/issues/283/events","html_url":"https://github.com/sensiolabs/SensioDistributionBundle/issues/283","id":175487040,"number":283,"title":"ScriptHandler use wrong directories by composer install","user":{"login":"joachimdoerr","id":1191549,"avatar_url":"https://avatars.githubusercontent.com/u/1191549?v=3","gravatar_id":"","url":"https://api.github.com/users/joachimdoerr","html_url":"https://github.com/joachimdoerr","followers_url":"https://api.github.com/users/joachimdoerr/followers","following_url":"https://api.github.com/users/joachimdoerr/following{/other_user}","gists_url":"https://api.github.com/users/joachimdoerr/gists{/gist_id}","starred_url":"https://api.github.com/users/joachimdoerr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joachimdoerr/subscriptions","organizations_url":"https://api.github.com/users/joachimdoerr/orgs","repos_url":"https://api.github.com/users/joachimdoerr/repos","events_url":"https://api.github.com/users/joachimdoerr/events{/privacy}","received_events_url":"https://api.github.com/users/joachimdoerr/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-09-07T12:14:18Z","updated_at":"2016-09-12T12:33:26Z","closed_at":"2016-09-12T12:06:21Z","body":"I install SF3 via `symfony new my_project`. \r\nThan i remove the var, vendor, composer.lock and parameters.yml files\r\n\r\n```\r\ncd my_project\r\nrm -rf var\r\nrm -rf vendor\r\nrm composer.lock\r\nrm app/config/parameters.yml\r\n```\r\nSo far so good. For next i will try to execute the install process over composer `composer install`\r\n\r\nResult: \r\n\r\n```\r\n.\r\n.\r\n.\r\n> Incenteev\\ParameterHandler\\ScriptHandler::buildParameters\r\nUpdating the \"app/config/parameters.yml\" file\r\n> Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap\r\n> Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache\r\nCould not open input file: app/console\r\nScript Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache handling the symfony-scripts event terminated with an exception\r\n\r\n                                                                             \r\n  [RuntimeException]                                                         \r\n  An error occurred when executing the \"'cache:clear --no-warmup'\" command:  \r\n  Could not open input file: app/console                                     \r\n  .                                                                                                                                                 \r\n``` \r\n\r\nThe `bootstrap.php.cache` is written in the `app` folder.\r\n\r\n```\r\n➜  my_project cd app \r\n➜  app l\r\ntotal 144\r\ndrwxr-xr-x   9 joachimdoerr  staff    306 Sep  7 14:06 ./\r\ndrwxr-xr-x  13 joachimdoerr  staff    442 Sep  7 13:53 ../\r\n-rw-r--r--   1 joachimdoerr  staff    143 Sep  3 18:02 .htaccess\r\n-rw-r--r--   1 joachimdoerr  staff    101 Sep  3 18:02 AppCache.php\r\n-rw-r--r--   1 joachimdoerr  staff   1619 Sep  3 18:02 AppKernel.php\r\n-rw-r--r--   1 joachimdoerr  staff    262 Sep  3 18:02 autoload.php\r\n-rw-r--r--   1 joachimdoerr  staff  55029 Sep  7 14:06 bootstrap.php.cache\r\ndrwxr-xr-x  12 joachimdoerr  staff    408 Sep  7 13:53 config/\r\ndrwxr-xr-x   3 joachimdoerr  staff    102 Sep  3 18:02 Resources/\r\n➜  app \r\n```\r\n\r\nThe expected result is that the `bootstrap.php.cache` file is written into the `var` folder. \r\n\r\nThe other expected results are the creation of `log` folders etc. is missing because the process is broken by the trying to use the `app/console`. In SF3 the console is in the `bin` folder."},"comment":{"url":"https://api.github.com/repos/sensiolabs/SensioDistributionBundle/issues/comments/246333171","html_url":"https://github.com/sensiolabs/SensioDistributionBundle/issues/283#issuecomment-246333171","issue_url":"https://api.github.com/repos/sensiolabs/SensioDistributionBundle/issues/283","id":246333171,"user":{"login":"HeahDude","id":10107633,"avatar_url":"https://avatars.githubusercontent.com/u/10107633?v=3","gravatar_id":"","url":"https://api.github.com/users/HeahDude","html_url":"https://github.com/HeahDude","followers_url":"https://api.github.com/users/HeahDude/followers","following_url":"https://api.github.com/users/HeahDude/following{/other_user}","gists_url":"https://api.github.com/users/HeahDude/gists{/gist_id}","starred_url":"https://api.github.com/users/HeahDude/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HeahDude/subscriptions","organizations_url":"https://api.github.com/users/HeahDude/orgs","repos_url":"https://api.github.com/users/HeahDude/repos","events_url":"https://api.github.com/users/HeahDude/events{/privacy}","received_events_url":"https://api.github.com/users/HeahDude/received_events","type":"User","site_admin":false},"created_at":"2016-09-12T12:33:26Z","updated_at":"2016-09-12T12:33:26Z","body":"@joachimdoerr ok thanks, I've opened https://github.com/symfony/symfony-installer/issues/277."}}
{"actor":{"display_login":"HeahDude"}}