{"action":"created","issue":{"url":"https://api.github.com/repos/bolt/bolt/issues/3594","labels_url":"https://api.github.com/repos/bolt/bolt/issues/3594/labels{/name}","comments_url":"https://api.github.com/repos/bolt/bolt/issues/3594/comments","events_url":"https://api.github.com/repos/bolt/bolt/issues/3594/events","html_url":"https://github.com/bolt/bolt/issues/3594","id":82061315,"number":3594,"title":"Centralized storage of all paths, probably paths.yml","user":{"login":"Boorj","id":2145313,"avatar_url":"https://avatars.githubusercontent.com/u/2145313?v=3","gravatar_id":"","url":"https://api.github.com/users/Boorj","html_url":"https://github.com/Boorj","followers_url":"https://api.github.com/users/Boorj/followers","following_url":"https://api.github.com/users/Boorj/following{/other_user}","gists_url":"https://api.github.com/users/Boorj/gists{/gist_id}","starred_url":"https://api.github.com/users/Boorj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Boorj/subscriptions","organizations_url":"https://api.github.com/users/Boorj/orgs","repos_url":"https://api.github.com/users/Boorj/repos","events_url":"https://api.github.com/users/Boorj/events{/privacy}","received_events_url":"https://api.github.com/users/Boorj/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bolt/bolt/labels/Wontfix","name":"Wontfix","color":"DDDDDD"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-05-28T18:11:49Z","updated_at":"2015-06-18T02:53:46Z","closed_at":null,"body":"Make commonly used paths relative, and gather all paths to one file.\r\n\r\nAll those lines like\r\n```php\r\nrequire_once $this['resources']->getPath('root/vendor/symfony/locale/Symfony/Component/Locale/Resources/stubs/functions.php');\r\n```\r\nare quite frustrating because of disability to reorganize some folders.\r\n\r\nAlso weird solution\r\n```php\r\n'monolog.logfile' => $this['resources']->getPath('cache') . '/' . $this['config']->get('general/debuglog/filename')\r\n```\r\nAlso translations algorythm has weird directory dependencies\r\n```php\r\n$path = '/resources/translations/' . $locale . '/' . $domain . '.' . $locale . '.yml';\r\n//...\r\nif (strlen($locale) == 5 && !is_dir($this->app['paths']['apppath'] . $path)) { //...\r\n// and if i want to keep my contenttype translations with my project files?\r\n```\r\n![024027](https://cloud.githubusercontent.com/assets/2145313/7867296/fdcc2be6-0596-11e5-8acb-7ad85ef8ff10.jpg)\r\nAnd all those absolute paths that make loose coupling impossible could be avoided.\r\n![board](https://cloud.githubusercontent.com/assets/2145313/7867330/361ca2aa-0597-11e5-9545-39fdc36297f0.jpg)\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/bolt/bolt/issues/comments/113021104","html_url":"https://github.com/bolt/bolt/issues/3594#issuecomment-113021104","issue_url":"https://api.github.com/repos/bolt/bolt/issues/3594","id":113021104,"user":{"login":"Boorj","id":2145313,"avatar_url":"https://avatars.githubusercontent.com/u/2145313?v=3","gravatar_id":"","url":"https://api.github.com/users/Boorj","html_url":"https://github.com/Boorj","followers_url":"https://api.github.com/users/Boorj/followers","following_url":"https://api.github.com/users/Boorj/following{/other_user}","gists_url":"https://api.github.com/users/Boorj/gists{/gist_id}","starred_url":"https://api.github.com/users/Boorj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Boorj/subscriptions","organizations_url":"https://api.github.com/users/Boorj/orgs","repos_url":"https://api.github.com/users/Boorj/repos","events_url":"https://api.github.com/users/Boorj/events{/privacy}","received_events_url":"https://api.github.com/users/Boorj/received_events","type":"User","site_admin":false},"created_at":"2015-06-18T02:53:46Z","updated_at":"2015-06-18T02:53:46Z","body":"Mentioned above: exceptions are accepted. You can call autoload.php directly in index.php and set the vendor directory variable inside autoload.php. And for config.dir variable you can made an exception and define that location directly in index.php.\r\nActually, good way is to call different front controllers for different environment, so each of them has it's own set of variables. In my case i send request first to app.php/app_dev.php that includes index.php. So all dirs could be set directly there (i know that yaml loader is not loaded at that point, but it could be also solved)\r\n"}}