laravel/framework — pull request #5907 by crynobone (2014-09-29 12:04:48+00:00)
Title: Refactor AppNameCommand and AppNamespaceDetectorTrait:

* Allow `AppNamespaceDetectorTrait::getAppNamespace()` to specify custom path allowing it to be reusable for other purpose.
* Move app namespace detection and loading of `composer.json` when the command is fired (and not on every artisan request).
* Hardcode `AppNameCommand::$currentRoot` to "app" path since the whole command rely on hardcoded `$this->laravel['path']`.

Signed-off-by: crynobone