{"action":"created","issue":{"url":"https://api.github.com/repos/symfony/symfony/issues/18986","repository_url":"https://api.github.com/repos/symfony/symfony","labels_url":"https://api.github.com/repos/symfony/symfony/issues/18986/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/18986/comments","events_url":"https://api.github.com/repos/symfony/symfony/issues/18986/events","html_url":"https://github.com/symfony/symfony/issues/18986","id":158850657,"number":18986,"title":"No class found while composer install inspite of setting env var to prod","user":{"login":"premsompura","id":10262156,"avatar_url":"https://avatars.githubusercontent.com/u/10262156?v=3","gravatar_id":"","url":"https://api.github.com/users/premsompura","html_url":"https://github.com/premsompura","followers_url":"https://api.github.com/users/premsompura/followers","following_url":"https://api.github.com/users/premsompura/following{/other_user}","gists_url":"https://api.github.com/users/premsompura/gists{/gist_id}","starred_url":"https://api.github.com/users/premsompura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/premsompura/subscriptions","organizations_url":"https://api.github.com/users/premsompura/orgs","repos_url":"https://api.github.com/users/premsompura/repos","events_url":"https://api.github.com/users/premsompura/events{/privacy}","received_events_url":"https://api.github.com/users/premsompura/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-06-07T06:44:22Z","updated_at":"2016-06-07T09:03:56Z","closed_at":null,"body":"symfony version: 3.0.1\r\nI have set SYMFONY_ENV=prod\r\n\r\n```\r\n$ sudo composer install --no-dev\r\nLoading composer repositories with package information\r\nInstalling dependencies from lock file\r\nNothing to install or update\r\nGenerating autoload files\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\nPHP Fatal error:  Class 'Sensio\\Bundle\\GeneratorBundle\\SensioGeneratorBundle' not found in /usr/share/nginx/decorama/app/AppKernel.php on line 26\r\nScript Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache handling the post-install-cmd 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  PHP Fatal error:  Class 'Sensio\\Bundle\\GeneratorBundle\\SensioGeneratorBundle' not found in /usr/share/nginx/decorama/app/AppKernel.php on line 26\r\n\r\n```\r\nbut when i run this command after previous command:\r\n```\r\n$ php bin/console cache:clear\r\n \r\n // Clearing the cache for the prod environment with debug false\r\n\r\n                                                                                                                        \r\n [OK] Cache for the \"prod\" environment (debug=false) was successfully cleared.  \r\n```\r\nbut with sudo\r\n\r\n```\r\nsudo php bin/console cache:clear\r\nPHP Fatal error:  Class 'Sensio\\Bundle\\GeneratorBundle\\SensioGeneratorBundle' not found in /usr/share/nginx/decorama/app/AppKernel.php on line 26\r\n```\r\nwhats wrong?"},"comment":{"url":"https://api.github.com/repos/symfony/symfony/issues/comments/224222061","html_url":"https://github.com/symfony/symfony/issues/18986#issuecomment-224222061","issue_url":"https://api.github.com/repos/symfony/symfony/issues/18986","id":224222061,"user":{"login":"premsompura","id":10262156,"avatar_url":"https://avatars.githubusercontent.com/u/10262156?v=3","gravatar_id":"","url":"https://api.github.com/users/premsompura","html_url":"https://github.com/premsompura","followers_url":"https://api.github.com/users/premsompura/followers","following_url":"https://api.github.com/users/premsompura/following{/other_user}","gists_url":"https://api.github.com/users/premsompura/gists{/gist_id}","starred_url":"https://api.github.com/users/premsompura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/premsompura/subscriptions","organizations_url":"https://api.github.com/users/premsompura/orgs","repos_url":"https://api.github.com/users/premsompura/repos","events_url":"https://api.github.com/users/premsompura/events{/privacy}","received_events_url":"https://api.github.com/users/premsompura/received_events","type":"User","site_admin":false},"created_at":"2016-06-07T09:03:56Z","updated_at":"2016-06-07T09:03:56Z","body":"okay, now it is giving\r\n```\r\n[Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException]  \r\n  You have requested a non-existent parameter \"database.host\". Did you mean on  \r\n  e of these: \"database_host\", \"database_port\"?\r\n```\r\nfor env var that i exported\r\n\r\nexport SYMFONY_DATABASE_HOST=127.0.0.1\r\nexport SYMFONY_DATABASE_PORT=3306\r\nexport SYMFONY_DATABASE_NAME=something\r\nexport SYMFONY_DATABASE_USER=someuser\r\nexport SYMFONY_DATABASE_PASSWORD=password\r\n"}}
{"actor":{"display_login":"premsompura"}}