BrianHenryIE / strauss

Prefix PHP namespaces and classnames to allow multiple versions of libraries to exist without conflict.
https://brianhenryie.github.io/strauss/
MIT License
142 stars 23 forks source link

Remove wrong information about zero configuration #85

Closed sovetski closed 8 months ago

sovetski commented 8 months ago

Hi,

On the documentation we can see "Strauss potentially requires zero configuration", but when we just install the library and run the code, it says:

[info] Loading config...
[error] Prefix not set. Please set `namespace_prefix`, `classmap_prefix` in composer.json/extra/strauss.
BrianHenryIE commented 8 months ago

Yes, potentially, depending on your existing composer.json. See:

https://github.com/BrianHenryIE/strauss/blob/6cb008b38c05ce5cd316b5cdf17d0b43621ef39a/tests/Unit/Composer/Extra/StraussConfigTest.php#L177-L206