diff --git a/README.md b/README.md index 4d9534c..716502f 100644 --- a/README.md +++ b/README.md @@ -58,3 +58,4 @@ Documentation * [Unknown namespace - (Unregistered)](docs/exceptions/unregisteredRoot.md) * [Unknown namespace - (Registered)](docs/exceptions/unknownSubNamespace.md) +* [Missing composer.json](docs/exceptions/missingComposerConfig.md) diff --git a/docs/exceptions/missingComposerConfig.md b/docs/exceptions/missingComposerConfig.md new file mode 100644 index 0000000..4e035b4 --- /dev/null +++ b/docs/exceptions/missingComposerConfig.md @@ -0,0 +1,36 @@ +Missing composer.json +--------------------- + +Example PHP: +``` + Could not locate composer.json. You can get around this by setting ClassFinder::$appRoot manually. + +ClassFinder requires a composer.json to load autoloading settings. In this situation, ClassFinder wasn't able to +find it when recursively searching for it. You will need to tell ClassFinder where the root of your application is - this +is the directory that contains the composer.json configuration and where classes will be searched out of. + +``` +