{"action":"created","issue":{"url":"https://api.github.com/repos/bcit-ci/CodeIgniter4/issues/460","repository_url":"https://api.github.com/repos/bcit-ci/CodeIgniter4","labels_url":"https://api.github.com/repos/bcit-ci/CodeIgniter4/issues/460/labels{/name}","comments_url":"https://api.github.com/repos/bcit-ci/CodeIgniter4/issues/460/comments","events_url":"https://api.github.com/repos/bcit-ci/CodeIgniter4/issues/460/events","html_url":"https://github.com/bcit-ci/CodeIgniter4/issues/460","id":219493141,"number":460,"title":"Wrong ROOTPATH on console","user":{"login":"eddmash","id":5079225,"avatar_url":"https://avatars2.githubusercontent.com/u/5079225?v=3","gravatar_id":"","url":"https://api.github.com/users/eddmash","html_url":"https://github.com/eddmash","followers_url":"https://api.github.com/users/eddmash/followers","following_url":"https://api.github.com/users/eddmash/following{/other_user}","gists_url":"https://api.github.com/users/eddmash/gists{/gist_id}","starred_url":"https://api.github.com/users/eddmash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eddmash/subscriptions","organizations_url":"https://api.github.com/users/eddmash/orgs","repos_url":"https://api.github.com/users/eddmash/repos","events_url":"https://api.github.com/users/eddmash/events{/privacy}","received_events_url":"https://api.github.com/users/eddmash/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-04-05T07:32:39Z","updated_at":"2017-04-11T04:08:13Z","closed_at":"2017-04-07T04:27:14Z","body":"The ROOTPATH on console is wrong which has the effect composer autoloader is never required.\r\n\r\nIf i create a command at ` application/Commands/Powerorm.php`\r\n\r\n```\r\nnamespace App\\Commands;\r\n\r\nuse CodeIgniter\\CLI\\BaseCommand; \r\n\r\nclass Powerorm extends BaseCommand\r\n{\r\n    protected $group = 'Powerorm';\r\n    protected $name  = 'powerorm';\r\n    protected $description = 'Displays powerorm commands.';\r\n\r\n\r\n    public function run(array $params)\r\n    {\r\n        var_dump(realpath(ROOTPATH));\r\n    }\r\n}\r\n```\r\nThe output i get is `/opt/lampp/htdocs/ci4/public` where instead of  `/opt/lampp/htdocs/ci4` which is what i get when i run \r\n\r\n> var_dump(realpath(ROOTPATH));\r\n\r\nOn the view.\r\n\r\nThis also has the side effect of, i am not able to use packages on the vendor folder in my command. since composer autloader is never required on the system/bootstrap.php\r\n\r\ne.g. if i try the dump() method found on symfony/var-dumper which is already on my vendor.\r\n\r\n```\r\nType:        Error\r\nMessage:     Call to undefined function App\\Commands\\dump()\r\nFilename:    /opt/lampp/htdocs/ci4/application/Commands/Powerorm.php\r\nLine Number: 27\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/bcit-ci/CodeIgniter4/issues/comments/293144262","html_url":"https://github.com/bcit-ci/CodeIgniter4/issues/460#issuecomment-293144262","issue_url":"https://api.github.com/repos/bcit-ci/CodeIgniter4/issues/460","id":293144262,"user":{"login":"lonnieezell","id":51931,"avatar_url":"https://avatars1.githubusercontent.com/u/51931?v=3","gravatar_id":"","url":"https://api.github.com/users/lonnieezell","html_url":"https://github.com/lonnieezell","followers_url":"https://api.github.com/users/lonnieezell/followers","following_url":"https://api.github.com/users/lonnieezell/following{/other_user}","gists_url":"https://api.github.com/users/lonnieezell/gists{/gist_id}","starred_url":"https://api.github.com/users/lonnieezell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lonnieezell/subscriptions","organizations_url":"https://api.github.com/users/lonnieezell/orgs","repos_url":"https://api.github.com/users/lonnieezell/repos","events_url":"https://api.github.com/users/lonnieezell/events{/privacy}","received_events_url":"https://api.github.com/users/lonnieezell/received_events","type":"User","site_admin":false},"created_at":"2017-04-11T04:08:13Z","updated_at":"2017-04-11T04:08:13Z","body":"What do you mean when you say \"the Console is broken\"? Using the latest version of the code I'm able to list the commands, etc. Seems to be working correctly for me. What are you seeing? "}}
{"actor":{"display_login":"lonnieezell"}}